From patchwork Thu Nov 2 15:00:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 160912 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp413739vqu; Thu, 2 Nov 2023 08:01:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHL0YCnFdNNwttR58hBz+GieFXOZ7j9X3k/rqiWpigwdo8zZuyft3kzobTPenGgYVDAmhG9 X-Received: by 2002:a05:6a20:a89c:b0:16a:4480:647f with SMTP id ca28-20020a056a20a89c00b0016a4480647fmr17743334pzb.19.1698937278627; Thu, 02 Nov 2023 08:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698937278; cv=none; d=google.com; s=arc-20160816; b=G1Ev9sq43yldK1rnPAmcyeEafCzx7yMdhcRlJUcLSpxh0T2CimV3nHIpGXqhY1Z9QM ihqGi9t9fzv9Ej1uV+jgdBC0zGP7DQSHrpXn+qPRAJDkK/mWdPRzF6wuWmMhdINKDt6d TOWklBwK/oOCwplo9c1NJVVfq4N5FJJ+X1xUMWPYf2skY0uHW5rv0d7Ud86o+cJb034l np4TqOM5h2j2Z+FD6QWJrR07DFzV8d/m+DpmxJL/bwNBF42UkQmCcMo60pzcR8QhNDQF /engGGwfyXu0BVAEbD0B9Bo/jvAOkqj9Rq3XywfBPMwiz7EpgblZaoj0Nx17iDrqYLwg u71Q== 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:to:from:dkim-signature; bh=nMTNI3kD94iAluT+NCSsO8HtvVIU2GAC+4QL2a8gV9o=; fh=I/Kz7MSre+2qRLjVjcZntRASCdU+NKlmPcIFMKIlxTY=; b=Rlb2n+Ir/7w5acsmmHWmk4Z3YYKnE81mtVqsjRohyrs+hTefETE5Xt4pqlYNfbSexO F6+kOkusWNUulVxnF5xRuAOUXlg1P6n19VV5nxKwceFVM/BV4xREBu+RAh4cZn1d6lGH qoMQv6qiQbyNtbPYdqnpPmr4En8wZBlwG14p8J8RXHONcyPZ+RKZyQYQ6f+yOdf0tvj7 t/qtPyNuTihXT70C3cLfPPYWUeK3lHBw+SjlT6KkmL0FPaVtTXRQLaSYRif3tPxCVfIx OKiytB3tOJySX5JGbdBL9Q/1PtptvLJYOXkcDUw3tmGok6rWTyPJ9QbB0K9cksrhDj1s cd4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DvqYyotm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y11-20020a656c0b000000b005ae39764b64si1971602pgu.135.2023.11.02.08.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 08:01:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=DvqYyotm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id F3D568055414; Thu, 2 Nov 2023 08:01:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230205AbjKBPA7 (ORCPT + 35 others); Thu, 2 Nov 2023 11:00:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232970AbjKBPA5 (ORCPT ); Thu, 2 Nov 2023 11:00:57 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF302187; Thu, 2 Nov 2023 08:00:53 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2c518a1d83fso13973661fa.3; Thu, 02 Nov 2023 08:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698937252; x=1699542052; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=nMTNI3kD94iAluT+NCSsO8HtvVIU2GAC+4QL2a8gV9o=; b=DvqYyotmJ382n/+0K6cvwDJiGf/9BsZozIzXKSNr+G9zZEOZqNF/kc8OCqHAxcfj1D A2kE0kNWctoZ4wyzzUBNI+EuWquVcoBVpBUngSsrHpkqBv/IlQjH6Y5zPHnAZz4EwWAk zr+XE3aGj7KQ0G1AFxP18ZBQKEu7W0zqRpWEowC3sW+/lBVlGMh4RfX0sNExUz6IO5bC CQ3qyrCs8OLO/wT6Q0PWo3Kaedsl6wp5dqqi4xeq6EBoEkk76FI7OAkRpma+VO3AcJ9H I9XmFWF3ir2iK1CWgvVUb4ZfdYQ+fCS0woK+fR3rGPDKRu9K9QS9lPak/22ddKAMbVab fuBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698937252; x=1699542052; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nMTNI3kD94iAluT+NCSsO8HtvVIU2GAC+4QL2a8gV9o=; b=FEs822jaUQ+47/jiLoNgCj4r4Mx+T6ObcSHzEwJQxomR8mDiWBvDh6VzkG3Sz2yxla CwRyGHdakzonCb3IZ5zQTzNPCKHs3kWOImfZ/l6uUVRkXaxqon/TVI6Ek1GYdF6fvGW6 YL3Tw8RO4AwH5S5fXzxEcXPMjYxmF4iq4vLC8ZeJJ+p4UMNaW0yVrApTXeqJ7NZ+8IFx fltt26LGidphv+jLRXBN/4YrHF5OLxjwjxbC7aeSKGmembAyRGiiyDlxHLar7TLSCN6f aEIf9NLEAiVXZYMQ/IhgkxLuY/TcxIZBXbixft90olnVaLGKZKs7OT+IbaGNEX8rfQhf awcw== X-Gm-Message-State: AOJu0YzlOZLbEIinV6LAuH8V9K0hI7aRhGqPLweQUArTAtlA9txZbWoq /UfyQ9/LXFlIu1NRkVT+S4A= X-Received: by 2002:a05:651c:c98:b0:2c5:13b1:b450 with SMTP id bz24-20020a05651c0c9800b002c513b1b450mr19282413ljb.26.1698937251469; Thu, 02 Nov 2023 08:00:51 -0700 (PDT) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id j15-20020a05600c130f00b003fbe4cecc3bsm3131007wmf.16.2023.11.02.08.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 08:00:46 -0700 (PDT) From: Christian Marangi To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andrew Lunn , Heiner Kallweit , Russell King , Christian Marangi , Robert Marko , Vladimir Oltean , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [net-next RFC PATCH v3 1/4] net: phy: aquantia: move to separate directory Date: Thu, 2 Nov 2023 16:00:29 +0100 Message-Id: <20231102150032.10740-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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 08:01:15 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781464856012786936 X-GMAIL-MSGID: 1781464856012786936 Move aquantia PHY driver to separate driectory in preparation for firmware loading support to keep things tidy. Signed-off-by: Christian Marangi --- Changes v3: - Add this patch drivers/net/phy/Kconfig | 7 ++----- drivers/net/phy/Makefile | 6 +----- drivers/net/phy/aquantia/Kconfig | 5 +++++ drivers/net/phy/aquantia/Makefile | 6 ++++++ drivers/net/phy/{ => aquantia}/aquantia.h | 0 drivers/net/phy/{ => aquantia}/aquantia_hwmon.c | 0 drivers/net/phy/{ => aquantia}/aquantia_main.c | 0 7 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 drivers/net/phy/aquantia/Kconfig create mode 100644 drivers/net/phy/aquantia/Makefile rename drivers/net/phy/{ => aquantia}/aquantia.h (100%) rename drivers/net/phy/{ => aquantia}/aquantia_hwmon.c (100%) rename drivers/net/phy/{ => aquantia}/aquantia_main.c (100%) diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 421d2b62918f..4b2451dd6c45 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig @@ -68,6 +68,8 @@ config SFP comment "MII PHY device drivers" +source "drivers/net/phy/aquantia/Kconfig" + config AMD_PHY tristate "AMD and Altima PHYs" help @@ -96,11 +98,6 @@ config ADIN1100_PHY Currently supports the: - ADIN1100 - Robust,Industrial, Low Power 10BASE-T1L Ethernet PHY -config AQUANTIA_PHY - tristate "Aquantia PHYs" - help - Currently supports the Aquantia AQ1202, AQ2104, AQR105, AQR405 - config AX88796B_PHY tristate "Asix PHYs" help diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile index c945ed9bd14b..f65e85c91fc1 100644 --- a/drivers/net/phy/Makefile +++ b/drivers/net/phy/Makefile @@ -35,11 +35,7 @@ obj-y += $(sfp-obj-y) $(sfp-obj-m) obj-$(CONFIG_ADIN_PHY) += adin.o obj-$(CONFIG_ADIN1100_PHY) += adin1100.o obj-$(CONFIG_AMD_PHY) += amd.o -aquantia-objs += aquantia_main.o -ifdef CONFIG_HWMON -aquantia-objs += aquantia_hwmon.o -endif -obj-$(CONFIG_AQUANTIA_PHY) += aquantia.o +obj-$(CONFIG_AQUANTIA_PHY) += aquantia/ obj-$(CONFIG_AT803X_PHY) += at803x.o obj-$(CONFIG_AX88796B_PHY) += ax88796b.o obj-$(CONFIG_BCM54140_PHY) += bcm54140.o diff --git a/drivers/net/phy/aquantia/Kconfig b/drivers/net/phy/aquantia/Kconfig new file mode 100644 index 000000000000..226146417a6a --- /dev/null +++ b/drivers/net/phy/aquantia/Kconfig @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0-only +config AQUANTIA_PHY + tristate "Aquantia PHYs" + help + Currently supports the Aquantia AQ1202, AQ2104, AQR105, AQR405 diff --git a/drivers/net/phy/aquantia/Makefile b/drivers/net/phy/aquantia/Makefile new file mode 100644 index 000000000000..346f350bc084 --- /dev/null +++ b/drivers/net/phy/aquantia/Makefile @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 +aquantia-objs += aquantia_main.o +ifdef CONFIG_HWMON +aquantia-objs += aquantia_hwmon.o +endif +obj-$(CONFIG_AQUANTIA_PHY) += aquantia.o diff --git a/drivers/net/phy/aquantia.h b/drivers/net/phy/aquantia/aquantia.h similarity index 100% rename from drivers/net/phy/aquantia.h rename to drivers/net/phy/aquantia/aquantia.h diff --git a/drivers/net/phy/aquantia_hwmon.c b/drivers/net/phy/aquantia/aquantia_hwmon.c similarity index 100% rename from drivers/net/phy/aquantia_hwmon.c rename to drivers/net/phy/aquantia/aquantia_hwmon.c diff --git a/drivers/net/phy/aquantia_main.c b/drivers/net/phy/aquantia/aquantia_main.c similarity index 100% rename from drivers/net/phy/aquantia_main.c rename to drivers/net/phy/aquantia/aquantia_main.c