From patchwork Thu Dec 14 00:44:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 18021 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:3b04:b0:fb:cd0c:d3e with SMTP id c4csp8220677dys; Wed, 13 Dec 2023 16:45:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHzE1r2XV1MlhJuyYEFMnIQQ61f0/MwPWV5WSPQUV0jwvnsE8a3PBXtxXnCzWNJ6hEYkOj2 X-Received: by 2002:a05:6808:1390:b0:3b9:e725:4362 with SMTP id c16-20020a056808139000b003b9e7254362mr11219432oiw.15.1702514756514; Wed, 13 Dec 2023 16:45:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702514756; cv=none; d=google.com; s=arc-20160816; b=taWNs3p8ow+HDx6lgHhbG+mDRXhQXHodMRLeftV4Kx09WC97GkheYKi70CXJGYmSy3 wH1PkEMqAOPTTHFP62EMLbRvHIU2Jrw6PbztfK76StS6dJCeSjQ8au/Nw4HWy9ZJYGOO ktGxYjekzUCFBuDNQV1tXJ7ks3Biz+rBK3Va2pMakybA7jsaTrEkNYGQ5SAlOhC8HjzI QAUi4v2+JoP0k9v6XmwSeS0YgTmTe0kTedV1qfOPxlKn+Qv7iqt/I8HUoKYnI3tdW0pF y5xNzN3nlIa1p35CiBMF3jpZBuQJwz5MPgtkUJ/5bQjHictO1zfka/lNj9gtJToMOjee hXYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xkA8aX9W2l8y7Uc6nvmkEm2CKe+7epzMhiOOcqw7Ijs=; fh=utmrxdkgikAlLxVfQI1kldUG+rNjhrLN+3fAlOYj01s=; b=aMMQqmi0OJa2S2oB9+VFFRwVmDxohQIYUByOub38GByn1AdnjBILQpcwLUNoO7iih2 SV4lk1m8OUlx3a3sh0hTWn7CzRTTytbSr8jCxgVTKQLc442Evu7/h0/4+1YMuylWbMrp WSmKF2ApRvD1XfVs1c3Bmhgj1u7cTadilpJdyBCO96S0YGtna6etjpkw8pGmQDGiyjl2 MrEICY71mGxAQXCY3pejRU2om6Aek66+75UARAD3nSa07OX293S1GXdJ5sX/FIC1lSmk IaacyHgRdZ4m8Oizn10+traJepCNnab17czcTmiziDk0SrzhfIkR5TytYXfs+HHmOoIr ohhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UmMgpd8V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id y23-20020a056a00181700b006ce35e17cabsi10431399pfa.21.2023.12.13.16.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 16:45:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UmMgpd8V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0758D8027490; Wed, 13 Dec 2023 16:45:54 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442805AbjLNApf (ORCPT + 99 others); Wed, 13 Dec 2023 19:45:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229739AbjLNApe (ORCPT ); Wed, 13 Dec 2023 19:45:34 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFAA59A; Wed, 13 Dec 2023 16:45:40 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-33644eeb305so293361f8f.1; Wed, 13 Dec 2023 16:45:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702514739; x=1703119539; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xkA8aX9W2l8y7Uc6nvmkEm2CKe+7epzMhiOOcqw7Ijs=; b=UmMgpd8VdyrArXjJbggI9HI7EPmxBYu0iUawAFA+4do1RwusWAs9Fqgq25jGUr9Nwh /S2LOS5DmwhVgEuASgm8R2TpHyDhKTGqdBaNXIlGhdldZgA08UjJATCv1z2gS3cFRIUg yvAFUvJG2LktOSbdqSs84KyoWdOwhtGXIqi3bgoxoD8UGIFTvnohVD/Buq8eB6Ci0m/j nCBq62iw6PSrOXOeO27CqDFv4o0CZBIuqa4C4eNemk0dApvAX7pUabPKeHaleHbVGnJ6 3BY+HEiXnZNFmuXLBuXbwclkU9jq4DgR8GZEtIHRajbBRirNQe1mZK+xONuwAoMh0KZw SIag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702514739; x=1703119539; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xkA8aX9W2l8y7Uc6nvmkEm2CKe+7epzMhiOOcqw7Ijs=; b=EaiUHGZadRKGKJJkgrvWSKmTM6fVoMWdIMzwZqlnFWGF0cXSTB5WyRV4e+DsknYC/m Ze0XAAjjUv7UVFj7D6sXFOqiUwZfzZaGEVtQB1dk37dxa6FCSgV9A5OFbSgzW4PrM2A7 McKbkQwqNQpz4868hQvUzDWTiAfZQPRXecqDL+zWeF+2aSjwgIaD2sjtIUEN38BYH8Zy 44wugBxnNpINodr9orDzY+jK1JCAVyh4WLHonuLVC+hrcQHFEDuhECUArlK1vB+ZXin4 Ooe2EXoP1EyAEpuiTiSfDoQ48tr0k8CZecacHzNnI1HSdJ7YtOfXTheR2/gHlllACiOl G1yA== X-Gm-Message-State: AOJu0YwEIOR+9ksoZiC2NzMmhNN0pjZJmoviyr2A1esEkESG8nlolLZY uLuFEIZ2ODiIpO458tUWbbA= X-Received: by 2002:a05:6000:a8c:b0:336:4440:b94f with SMTP id dh12-20020a0560000a8c00b003364440b94fmr389862wrb.124.1702514738927; Wed, 13 Dec 2023 16:45:38 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id g15-20020adfe40f000000b003364470f30bsm959013wrm.52.2023.12.13.16.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 16:45:38 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Christian Marangi Subject: [net-next PATCH 0/2] net: phy: at803x: additional cleanup for qca808x Date: Thu, 14 Dec 2023 01:44:30 +0100 Message-Id: <20231214004432.16702-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 16:45:54 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785216113350562215 X-GMAIL-MSGID: 1785216113350562215 This small series is a preparation for the big code split. While the qca808x code is waiting to be reviwed and merged, we can further cleanup and generalize shared functions between at803x and qca808x. With these last 2 patch everything is ready to move the driver to a dedicated directory and split the code by creating a library module for the few shared functions between the 2 driver. Eventually at803x can be further cleaned and generalized but everything will be already self contained and related only to at803x family of PHYs. Christian Marangi (2): net: phy: at803x: move specific qca808x config_aneg to dedicated function net: phy: at803x: make read specific status function more generic drivers/net/phy/at803x.c | 92 +++++++++++++++++++++++++--------------- 1 file changed, 58 insertions(+), 34 deletions(-)