Message ID | 20240129141600.2592-1-ansuelsmth@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-42872-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp594614dyb; Mon, 29 Jan 2024 06:17:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFww1B6TUxJJj5YOOR7xutBdKMOVIf7xC8TB/jzvKf6OwpJCy5MrCdBhm3KZgwZeXyQm4Zg X-Received: by 2002:a05:6402:f93:b0:55e:f047:92f6 with SMTP id eh19-20020a0564020f9300b0055ef04792f6mr2171471edb.38.1706537848030; Mon, 29 Jan 2024 06:17:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706537848; cv=pass; d=google.com; s=arc-20160816; b=0Y7p1n4OuwfcPm6TYuVsDVVDaPxgfGeYOLsm2mfBhgPCHgz1ORm7BvTPaqcPpMpIx8 ndRdtKaFeszDtfFutw7+RWRzA1m0ITJVVtyf/fpqwrq030Fjf8bYZIKuz/G+Ka/jV8qQ Wg/lZuRHWS8gwXc8L1leqB8Qh+aL3xTKA7xOLwZV6Bf9A5xkGiGVPA4vdeBTDaX9xMBP dDNGU0D46ilXwlnkMnTjHxpHvSl7MJdcW3cDLdcS2XMDAb/lV5XXHelDc63bFOBPyP1/ 8cpEz/3ciilSdus9I+8msVMpzlaGyFn21JG74XHwMtKUdt7uL1oH105lX9/axayJdsp6 0kAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=lbzAJ0F2mFrz3jQVdwTJPWtdp7o4RjOP6PbQdpOhSSQ=; fh=Iyluyi+pL1Y89v4+Zp6P1bYIkzAQGHSGRXZKPoY9+Kk=; b=HLjlJoJdIH0SZwn+IdSzKH/OhuEscuWTHVWr394eYNbw01O/Dh5v4ne1h6G59qLIkQ NZq/wJe2XuCsAgyNX7q3dqok4qJsu/SB/NDGmh0+jvD+5rKn9ngD4+0PZ0+09bF3+iaD gbjAKIAQE6D2s/XEh8ScIOndMIIu5hkZ2zrBInVJ/H+YnHohMwqooQmJG0HBEOyW40KU rIWM1qN4ktWuVt04+sEnrVi1CNP3id69hZZhVoyJCDVVI8TEelCS9Uzu187C0BJQdCw/ f2ZlEqUvpcT5pjDkYNIsfqOnFNUXHO62iG+80uwrxRjcbaj5q3PdRJR3medOABI+YyzX lIyQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="CzD8R0/r"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-42872-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42872-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u25-20020a50d519000000b0055eeadefccbsi1412174edi.654.2024.01.29.06.17.27 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:17:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42872-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="CzD8R0/r"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-42872-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42872-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9E8421F22212 for <ouuuleilei@gmail.com>; Mon, 29 Jan 2024 14:17:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D82B664D2; Mon, 29 Jan 2024 14:16:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CzD8R0/r" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7785465BC4; Mon, 29 Jan 2024 14:16:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706537800; cv=none; b=Z5luHKSpcp9p8gAIT8DMBIEVlXoT1DuBnVQF52ppR2gZQWD1fSwO+FNdIX06ox2/a0EwsM2Vlv2R+yLC8yYyx5ULlI5XWPvhuLBLf2/sIcSGvsOXU5VG/Oa/SPEdrXUTSPB8OO6CHeDn4fYFPw8+k15aM1yNwRFbQH32UdU8TpU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706537800; c=relaxed/simple; bh=T5c1Dbp1sJsEszxptNZeBvyymhs1/yh2Ifd/y4EA61I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=krsCHnIoVoHaq4fD1/9ixU35mm8xMKCYyRIgjYBzc2+GcK2bOR/rMy+wVgqN5fLy6GJsy1NmGRIQfT3aaZ1aTzPZmEOcb3uilY1w7+4rs+VRK1GhSyl99ompUE3WWNSRikbHz6KuLcvNI5J6RSug07Zp47FkEvr/ir2zbiSTDb4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CzD8R0/r; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-51115621f4fso728140e87.3; Mon, 29 Jan 2024 06:16:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706537796; x=1707142596; 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=lbzAJ0F2mFrz3jQVdwTJPWtdp7o4RjOP6PbQdpOhSSQ=; b=CzD8R0/rAPcdP/X0jvCwHEvsKMOs7qweanJAJDDt/FBx4keNoR6QD7FM7OuD6E8pNE HpepxjPoaYnAJ8kGnh0vQpGBECfiziVcK5IMouQQfWR22BFeYb3qvraJTJhp6zw2dhLR ll4Gh3am8SMJanPTrrqCWYzG8AgEOz7JNPCfJ+LYPZSf/0JNhjfTnhc5R7aGgC+g9I2s Xo+DnDeDCVX20Wmnuw+GlFhjpQHz3fuetdRmADSJJBAF0EfLoCtjFVgLcJxkk4KmVqEp 2UZFWM4ivCz8wszNzHuWl4Z+bP5LBMjwVjRQ3AscBsjhgyEbL2Gu446giTQl5pFiLlJ1 Fiwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706537796; x=1707142596; 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=lbzAJ0F2mFrz3jQVdwTJPWtdp7o4RjOP6PbQdpOhSSQ=; b=UsNXZoS+/Z21y1ynT8R4jfxjKKKOTNa5Sv7pwGOY3Cak3BLouqEi/HVeA0LMAICCCS oTBxDA0mD8lzz2ru2++sk6ZfysbopvMdKp7ddlvdNXrjxL+7wQwG/+4oRgHiGQgjRrgQ JejseLMi33xbLiyg2wUrW6N3VN79WQm6gL1xPgedTkjqgQv/b6H7EXOTXSsqaHGmLLX2 2w9mN47INTACEe2FlV/DJkW5MeaIWNOLoGpyivL0ZDa2yHf5pYgvwq/Fy7MP5K+bWDOI BS5Y/AHIDL3dHQKW0oMYVQJwKDyzC5xGjgNIyzmSOONwytzMoaG8La1jSNHm5K6msRdv Fk4g== X-Gm-Message-State: AOJu0YyHOGVsIblXPP5zU1c0WxsUf4WWRfl4Jxa7bkUHcfsr/E0c1IjD bAKTEUs9S7Nma0ZBw0er/kzyBWhuVs9JmadP/+TJgbYuGroyK3yv X-Received: by 2002:a05:6512:1082:b0:50e:75ee:ec4c with SMTP id j2-20020a056512108200b0050e75eeec4cmr4819222lfg.11.1706537796100; Mon, 29 Jan 2024 06:16:36 -0800 (PST) Received: from localhost.localdomain ([78.208.142.203]) by smtp.googlemail.com with ESMTPSA id cu12-20020a170906ba8c00b00a27a32e6502sm3919470ejd.117.2024.01.29.06.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:16:35 -0800 (PST) From: Christian Marangi <ansuelsmth@gmail.com> To: Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org Cc: Christian Marangi <ansuelsmth@gmail.com> Subject: [net-next PATCH v4 0/5] net: phy: split at803x Date: Mon, 29 Jan 2024 15:15:18 +0100 Message-ID: <20240129141600.2592-1-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789434630309799606 X-GMAIL-MSGID: 1789434630309799606 |
Series |
net: phy: split at803x
|
|
Message
Christian Marangi
Jan. 29, 2024, 2:15 p.m. UTC
This is the last patchset of a long series of cleanup and preparation to make at803x better maintainable and permit the addition of other QCOM PHY Families. A shared library modules is created since many QCOM PHY share similar/exact implementation and are reused. This series doesn't introduce any new code but just move the function around and introduce a new module for all the functions that are shared between the 3 different PHY family. Since the drivers are actually detached, new probe function are introduced that allocate the specific priv struct for the PHYs. After this patch, qca808x will be further generalized as LED and cable test function are also used by the QCA807x PHYs. This is just for reference and the additional function move will be done on the relates specific series. This is also needed in preparation for the introduction of qca807x PHYs family and PHY package concept. Changes v4: - Add Reviwed-by tag - Correctly sort new define in makefile Changes v3: - Fix compilation error on testing single change till patch 4. (improve bisectability of the series) Changes v2: - Out of RFC (at808x dependency got merged) Christian Marangi (5): net: phy: move at803x PHY driver to dedicated directory net: phy: qcom: create and move functions to shared library net: phy: qcom: deatch qca83xx PHY driver from at803x net: phy: qcom: move additional functions to shared library net: phy: qcom: detach qca808x PHY driver from at803x drivers/net/phy/Kconfig | 7 +- drivers/net/phy/Makefile | 2 +- drivers/net/phy/at803x.c | 2759 --------------------------- drivers/net/phy/qcom/Kconfig | 22 + drivers/net/phy/qcom/Makefile | 5 + drivers/net/phy/qcom/at803x.c | 1140 +++++++++++ drivers/net/phy/qcom/qca808x.c | 934 +++++++++ drivers/net/phy/qcom/qca83xx.c | 275 +++ drivers/net/phy/qcom/qcom-phy-lib.c | 429 +++++ drivers/net/phy/qcom/qcom.h | 120 ++ 10 files changed, 2927 insertions(+), 2766 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/qca808x.c create mode 100644 drivers/net/phy/qcom/qca83xx.c create mode 100644 drivers/net/phy/qcom/qcom-phy-lib.c create mode 100644 drivers/net/phy/qcom/qcom.h
Comments
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Mon, 29 Jan 2024 15:15:18 +0100 you wrote: > This is the last patchset of a long series of cleanup and > preparation to make at803x better maintainable and permit > the addition of other QCOM PHY Families. > > A shared library modules is created since many QCOM PHY share > similar/exact implementation and are reused. > > [...] Here is the summary with links: - [net-next,v4,1/5] net: phy: move at803x PHY driver to dedicated directory https://git.kernel.org/netdev/net-next/c/9e56ff53b411 - [net-next,v4,2/5] net: phy: qcom: create and move functions to shared library https://git.kernel.org/netdev/net-next/c/6fb760972c49 - [net-next,v4,3/5] net: phy: qcom: deatch qca83xx PHY driver from at803x https://git.kernel.org/netdev/net-next/c/2e45d404d99d - [net-next,v4,4/5] net: phy: qcom: move additional functions to shared library https://git.kernel.org/netdev/net-next/c/249d2b80e4db - [net-next,v4,5/5] net: phy: qcom: detach qca808x PHY driver from at803x https://git.kernel.org/netdev/net-next/c/c89414adf2ec You are awesome, thank you!