From patchwork Wed Nov 29 02:12:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 171035 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a5a7:0:b0:403:3b70:6f57 with SMTP id d7csp68614vqn; Tue, 28 Nov 2023 18:13:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IFGJW6R2sEolSseW/4Kt9OXygSLI6fS1NbdemhE4XVN87TeXFF4/VsuVK29ZFdRF0raq6f2 X-Received: by 2002:a05:6808:1205:b0:3b5:66af:f8d6 with SMTP id a5-20020a056808120500b003b566aff8d6mr20654909oil.47.1701224021619; Tue, 28 Nov 2023 18:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701224021; cv=none; d=google.com; s=arc-20160816; b=HZOHaBePBsLqbZpL6Wk6aacGNR6aVwld74aIkB/GFTGD3ANy94gsugbtBxgxva4TT7 luzyjI2laJCMd1gyk7p5BfS/I2ypRvwVkkQtxrwKwzP+cvcg1xQddTqoilY7DeGwmCM+ hZpTkiQc8oUpar/V0/Dg8uYQzH7yvDnTv4SHwRKbWKCyoUCbRk9e3Qb4ZqW1I0mMidNq 0JGa9AtKM7SvlFo4/DfU+EiLhZGkyTaT7Fw6y2csEoCtJkv4gZD5e9BzLaOwy9gfS965 b/9ElJPe51pos/zftMgWd+1vt1Aw81f1kybh8B3BakpymN0C+TFxgyZRweiZyxDJozIq z2xg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=K01CrylXQ/Y0LBryWNGxMBkxZuhuQFBcceV1xDoH9h8=; fh=M/Mg9TtngevyqXgZJCTwFV5p5//1sl9LEorA0JOhC3o=; b=JaVWPWHM0WbTENmThaMkGX6sIUURGDLt7ZUQhbTh5ED4WvX/Oc/kektW3wYgNfpxrq UnKGsBtVfOdjWF9wjbngeEKybMmJhA1R4LJEV+Hi5MgMUU1at40PZ7on/2XL1b5rafD8 WXaG2iSiRzxrgOhvX3B32uw38zjcDvHipT/I2OYduCV3xA6NVm+m5oFaE/iplT8xncTh wNk/N06tbrAuh+YvXnTMScZX4IaQG8zSd9wFaZpoag+I42TtI0Lsn5qJS0dOh7ewO5Q0 C3f1jmoCFuYpTxzZD3fmsNZnrPQGGkjpjd/gWIeryLVenC38ONsMBjdQ4V6wRcIj9iEG aUSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FLUwBoKp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x18-20020aa793b2000000b006cd905021d4si5194900pff.367.2023.11.28.18.13.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:13:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FLUwBoKp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 132CA80ADED2; Tue, 28 Nov 2023 18:13:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376820AbjK2CNH (ORCPT + 99 others); Tue, 28 Nov 2023 21:13:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234863AbjK2CMm (ORCPT ); Tue, 28 Nov 2023 21:12:42 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFCE81BE3; Tue, 28 Nov 2023 18:12:42 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-4079ed65582so45792545e9.1; Tue, 28 Nov 2023 18:12:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701223961; x=1701828761; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=K01CrylXQ/Y0LBryWNGxMBkxZuhuQFBcceV1xDoH9h8=; b=FLUwBoKpERR+YlYg6EpXAJg9jMLr/rTIlRkxecxYYNmZTQnHwJIv9NlGgugmRuOo7R hzc07lgjacRUXpRSBiJF6EAoCQjfnJt566AI9+gCPcmLcoJ8LX3c7WzqqkAU0T9A5ZT6 U0//ztMdgKePrc0NdaflwCQl/Gt9RHciKKHzjCt1vVZZk1iO/vu60dhPjV5nXsl5QH0R G8lVklRYNDhGffWbP8jbl8OONVenEb1X8GFoIpvsYCa5y0XfK7GBz0AfwIv2TJnRP6oH 0PaAyBdMTB8B99WbzOENL+pS09Z+LeFETDWL/HKlOWkwjYw7S858Z61Oy2pSXeCgg5l7 RwnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701223961; x=1701828761; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K01CrylXQ/Y0LBryWNGxMBkxZuhuQFBcceV1xDoH9h8=; b=PZ6zxz6wt+wT/cIuU7RjQnR7orD6NhLK1VqOxQVp2nqw9vs3jwYOeBWHf+JxpZDtff EyCFK2CiYuyJkXudvg1d+aeDxubOe1JUACo2THnc+wv89cbRLw0QJkEz3QwyhfhJuvbp n62pKhvKCsY+/IsnG6ryuYC3/htRe7gvwAfsF4+9hln7ZbOp0bIKDbFvqKOl/aXnF4UH 7Chgkc1AlOj7TYRjiokVWMksyrCUKxsxuHnfun2Hg2r5DrKFMeb77Hb81rZS80+JMtmX ZjWGz9yiyJuJtQdT/EUInzrUn9vyc0qZrDY3MpU8Or1dkvTAfncpFKsd9bwqASv4Y5P5 ZACQ== X-Gm-Message-State: AOJu0YyV9VSn8BqlFBASwpopdMthI9JEfySyBdYaQecXaM+Jx+zAYR9p wcxRUEO1d/VdyN1OnW5gT2s= X-Received: by 2002:a05:600c:293:b0:409:787b:5ab5 with SMTP id 19-20020a05600c029300b00409787b5ab5mr11810494wmk.23.1701223961074; Tue, 28 Nov 2023 18:12:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 18:12:40 -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 12/14] net: phy: move at803x PHY driver to dedicated directory Date: Wed, 29 Nov 2023 03:12:17 +0100 Message-Id: <20231129021219.20914-13-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231129021219.20914-1-ansuelsmth@gmail.com> References: <20231129021219.20914-1-ansuelsmth@gmail.com> 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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 28 Nov 2023 18:13:35 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783862679623899667 X-GMAIL-MSGID: 1783862679623899667 In preparation for addition of other Qcom PHY and to tidy things up, move the at803x PHY driver to dedicated directory. The same order in the Kconfig selection is saved. Signed-off-by: Christian Marangi --- drivers/net/phy/Kconfig | 7 +------ drivers/net/phy/Makefile | 2 +- drivers/net/phy/qcom/Kconfig | 7 +++++++ drivers/net/phy/qcom/Makefile | 2 ++ drivers/net/phy/{ => qcom}/at803x.c | 0 5 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 drivers/net/phy/qcom/Kconfig create mode 100644 drivers/net/phy/qcom/Makefile rename drivers/net/phy/{ => qcom}/at803x.c (100%) diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 25cfc5ded1da..c47fe2302150 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig @@ -318,12 +318,7 @@ config NCN26000_PHY Currently supports the NCN26000 10BASE-T1S Industrial PHY with MII interface. -config AT803X_PHY - tristate "Qualcomm Atheros AR803X PHYs and QCA833x PHYs" - depends on REGULATOR - help - Currently supports the AR8030, AR8031, AR8033, AR8035 and internal - QCA8337(Internal qca8k PHY) model +source "drivers/net/phy/qcom/Kconfig" config QSEMI_PHY tristate "Quality Semiconductor PHYs" diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile index f65e85c91fc1..4ecf704d0e4b 100644 --- a/drivers/net/phy/Makefile +++ b/drivers/net/phy/Makefile @@ -36,7 +36,7 @@ obj-$(CONFIG_ADIN_PHY) += adin.o obj-$(CONFIG_ADIN1100_PHY) += adin1100.o obj-$(CONFIG_AMD_PHY) += amd.o obj-$(CONFIG_AQUANTIA_PHY) += aquantia/ -obj-$(CONFIG_AT803X_PHY) += at803x.o +obj-$(CONFIG_AT803X_PHY) += qcom/ obj-$(CONFIG_AX88796B_PHY) += ax88796b.o obj-$(CONFIG_BCM54140_PHY) += bcm54140.o obj-$(CONFIG_BCM63XX_PHY) += bcm63xx.o diff --git a/drivers/net/phy/qcom/Kconfig b/drivers/net/phy/qcom/Kconfig new file mode 100644 index 000000000000..2c274fbbe410 --- /dev/null +++ b/drivers/net/phy/qcom/Kconfig @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0-only +config AT803X_PHY + tristate "Qualcomm Atheros AR803X PHYs and QCA833x PHYs" + depends on REGULATOR + help + Currently supports the AR8030, AR8031, AR8033, AR8035 and internal + QCA8337(Internal qca8k PHY) model diff --git a/drivers/net/phy/qcom/Makefile b/drivers/net/phy/qcom/Makefile new file mode 100644 index 000000000000..6a68da8aaa7b --- /dev/null +++ b/drivers/net/phy/qcom/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +obj-$(CONFIG_AT803X_PHY) += at803x.o diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/qcom/at803x.c similarity index 100% rename from drivers/net/phy/at803x.c rename to drivers/net/phy/qcom/at803x.c