Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp413714rdb; Mon, 29 Jan 2024 06:17:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4p+Ptc8lnL7mivO/xf68UoH+WSsAjGSFs25Wi59XFkQZHSfYkJp+tf926Ikr9aotYcq3s X-Received: by 2002:a05:6402:3482:b0:55d:190:5a45 with SMTP id v2-20020a056402348200b0055d01905a45mr4756442edc.4.1706537838189; Mon, 29 Jan 2024 06:17:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706537838; cv=pass; d=google.com; s=arc-20160816; b=Rw9uIo/K2/1MiWunCzabfkJMf536qZicyxbmLs6zEEz7c1hd+PeSqCK11LyYEt4for Xi+0bGJA/XE2J4gaM+8DOkOYIAbUUuxGSLQkLbkEaVwJUF7ME5Npqvmge62o9rhD3pMs OHkmT233nz1RHWz0fIbu52RohYMO6FwRTJpW06zSzK+HvVxcJ14HQple7m+5+kuGOtDI 0vw6Mj2wvL6jejP9GDb+z9jxc77h109LH5hWJFWset7cA3KZepAugfsGPR3wrwDpXdMK Yn3dT2xvuiVhLZ0OvNpYclNP6jeycoHVP+d8zhAEGFM/3nB9Y4nP/5pvs9iiyj/I30bx j3lQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42872-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x5-20020a05640226c500b0055f16576808si481457edd.439.2024.01.29.06.17.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 06:17:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42872-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42872-linux.lists.archive=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 BBAEF1F24193 for ; Mon, 29 Jan 2024 14:17:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15705664B1; Mon, 29 Jan 2024 14:16:41 +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 To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 -- 2.43.0