Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4290009rdh; Tue, 28 Nov 2023 18:12:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IFybhnzEqyP3cnW43tEQuelQWyFOdxPT5c5DaZP41n5EgvQM1nvBn5GK9NkkqSO7o6JVhXb X-Received: by 2002:a17:902:e5c7:b0:1cf:a4e8:d2be with SMTP id u7-20020a170902e5c700b001cfa4e8d2bemr19908220plf.12.1701223971768; Tue, 28 Nov 2023 18:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701223971; cv=none; d=google.com; s=arc-20160816; b=tNcp1tmJWYsDh7BqmLlqrx0lof2y0cYnbzvH5hrsZbGYWKknh+6o9YLj0J6oIew6S+ oOWoFbwv7HiEmlEsIGwmkHDRyB7Xc4vv9RaVUOffGBBgUhWXH11eQSWgG4xrjIuhzjXQ ltozjX/z3xJTtiEo8FRdOL1mDzhcFKvLNeuBUyqzNw1G2zLoZgmqpQyUF4QyQkeBphlj tMYbJbcSrInLn/HUM5vt1sppj0TjJM/1CeNSAndvJluJoE3KLYiG9guMZOOFgBoeoO3o YbD7l0CqmICOXbEiIJagFhspMQZyO4WnvJt9OJIY/lFw3UoJqSnBi9tt0WcoRGwrIZkm ZADQ== 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=tgQ89J9c3uszO6o9xy/pNVP40wp2tzxLJEUGDYsTDYE=; fh=M/Mg9TtngevyqXgZJCTwFV5p5//1sl9LEorA0JOhC3o=; b=gIXA4a8BDH1/4DLW8cDuBYAJHxHX5T66zGPpK6ROBPKC3TOJBcY17GXlTs1O2rIpa9 g7Wc2f6pv31sQvZZptC6sXggUYXo2XrXseohTgN2arswJMjEVJ2rKmyhazRHKzRYAkSR rtYddbI5r/vI6xlmsi3h6/1vS4aDOX71T4KC0zRO5Q087M1pnfnAo1DDC7Bv/jtsojvC jhyamofOjvgvHs3zr1Xedd5iBvbPRRhjyT/oLXDp4P0wTo1p81TBs6vwzuNPUCuf+PlQ dzSVYd+4OtbOIae1+c4jFl+dEHvf6rAYZMkXIT5jpjh5S9umKltwRhkQLtjRlGA7qRcJ 1tLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k8My24x8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id q16-20020a170902dad000b001cfa53f2020si4780728plx.151.2023.11.28.18.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:12:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k8My24x8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 36CB080A9AA1; Tue, 28 Nov 2023 18:12:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376742AbjK2CMZ (ORCPT + 99 others); Tue, 28 Nov 2023 21:12:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjK2CMY (ORCPT ); Tue, 28 Nov 2023 21:12:24 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D0D919BA; Tue, 28 Nov 2023 18:12:30 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-332e58d4219so3614548f8f.0; Tue, 28 Nov 2023 18:12:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701223949; x=1701828749; 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=tgQ89J9c3uszO6o9xy/pNVP40wp2tzxLJEUGDYsTDYE=; b=k8My24x8PwzpoY62fB8a5q3uwG2mIwFnmYIIeXcKua6nk0U0IzMAQ2AUcpb8A7E3Ke qAer8gMDRO9Jl2y7VG4IAihOK/KWTPsPsM8CMIfG/J2ZxUTA9xlUvzBf4DH6K4TcKeBH 4vwnafTr4m2SE3HAJALTz0HnCYNIztxgBENFM4ivkDoV5bvRSeXrHtXWjPJ1GTkht7JR F0F6HiV3cB/ihk3Q4/Wi8TMU9z2gQTpm6d3CkYTUAColJtWPSI96jfFawcJqE3zV1vOb +km3/enWob58YjFGgFJZvD6ZFydDSiRgk5my+Yoq26zYEc0PPvINQW8uOFriBX/Mvg6C P6zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701223949; x=1701828749; 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=tgQ89J9c3uszO6o9xy/pNVP40wp2tzxLJEUGDYsTDYE=; b=ljZMBMtl5l3GOTfV3zsSnX+NYcgweJUMa34ODBCdcgIu0h2sIwYX6Y5vV/7On7/+7M +G1RbiqFt5iH7LfIzAE5d3se4DMSJJAWrs8yDG4/0TzEbPg8HeWGVIDbxA37WbxjiTbX l133hLZH0YcJ6nC3qKTR63SdxrcuInLDwPsKFi6kuP2i48w4wV0+7Xby9QQytw5X57v5 gpVH9gxa+NZ6z1BTBog272u2tlm2DHK6g3UCNjmin4HAB1CeuaiZxeTtVV37TCQdzGOr G7WMMWQoWrLnYrK9YrjaT9S9YtJjc9NFgPVV0xMbIIqElq7eqIo7eVDgNYOjzoAF/W6z APvA== X-Gm-Message-State: AOJu0Yx8wh9jxgrTsAZb1HAYqoAB/2IaT+3hQvrDtazOdMoYgRIwgfWW 3gyJneEzEwKNL1IcPPlxgNQ= X-Received: by 2002:adf:ee90:0:b0:333:ed:82e7 with SMTP id b16-20020adfee90000000b0033300ed82e7mr5949287wro.10.1701223948601; Tue, 28 Nov 2023 18:12:28 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id b19-20020a05600c4e1300b0040648217f4fsm321406wmq.39.2023.11.28.18.12.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:12:28 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Christian Marangi Subject: [net-next PATCH 00/14] net: phy: at803x: cleanup + split Date: Wed, 29 Nov 2023 03:12:05 +0100 Message-Id: <20231129021219.20914-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 28 Nov 2023 18:12:46 -0800 (PST) The intention of this big series is to try to cleanup and split the big at803x PHY driver. It currently have 3 different family of PHY in it. at803x, qca83xx and qca808x. The current codebase required lots of cleanup and reworking to make the split possible as currently there is a greater use of adding special function matching the phy_id. This has been reworked to make the function actually generic and make the change only in more specific one. The result is the addition of micro additional function but that is for good as it massively simplify splitting the driver later. The main bonus of this cleanup is creating smaller PHY drivers since they won't have all the bloat of unused functions or extra condition (especially all the stuff related to regulators that are only handled by the at8031 PHY) Consider that this is all in preparation for the addition of qca807x PHY driver that will also uso some of the functions of at803x. New Kconfig are introduced for the split PHY driver as they are now built as separate PHY drivers. Christian Marangi (14): net: phy: at803x: fix passing the wrong reference for config_intr net: phy: at803x: move disable WOL for 8031 from probe to config net: phy: at803x: raname hw_stats functions to qca83xx specific name net: phy: at803x: move qca83xx stats out of generic at803x_priv struct net: phy: at803x: move qca83xx specific check in dedicated functions net: phy: at803x: move at8031 specific data out of generic at803x_priv net: phy: at803x: move at8035 specific DT parse to dedicated probe net: phy: at803x: drop specific PHY id check from cable test functions net: phy: at803x: remove specific qca808x check from at803x functions net: phy: at803x: drop usless probe for qca8081 PHY net: phy: at803x: make specific status mask more generic net: phy: move at803x PHY driver to dedicated directory net: phy: qcom: deatch qca83xx PHY driver from at803x net: phy: qcom: detach qca808x PHY driver from at803x drivers/net/phy/Kconfig | 7 +- drivers/net/phy/Makefile | 2 +- drivers/net/phy/at803x.c | 2248 -------------------------------- drivers/net/phy/qcom/Kconfig | 17 + drivers/net/phy/qcom/Makefile | 4 + drivers/net/phy/qcom/at803x.c | 1222 +++++++++++++++++ drivers/net/phy/qcom/common.c | 351 +++++ drivers/net/phy/qcom/qca808x.c | 550 ++++++++ drivers/net/phy/qcom/qca83xx.c | 275 ++++ drivers/net/phy/qcom/qcom.h | 124 ++ 10 files changed, 2545 insertions(+), 2255 deletions(-) delete mode 100644 drivers/net/phy/at803x.c create mode 100644 drivers/net/phy/qcom/Kconfig create mode 100644 drivers/net/phy/qcom/Makefile create mode 100644 drivers/net/phy/qcom/at803x.c create mode 100644 drivers/net/phy/qcom/common.c create mode 100644 drivers/net/phy/qcom/qca808x.c create mode 100644 drivers/net/phy/qcom/qca83xx.c create mode 100644 drivers/net/phy/qcom/qcom.h -- 2.40.1