From patchwork Wed Jan 10 11:57:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 186849 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp739882dyi; Wed, 10 Jan 2024 03:59:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGCF1Y2JAORIsvRqe0cq9SfK8JMTEgGJCEIjLDZyMpw4umGIBbwHJCNljsg6IYxoHjGgLbi X-Received: by 2002:a05:6871:a6a7:b0:1fb:2188:5b96 with SMTP id wh39-20020a056871a6a700b001fb21885b96mr592561oab.24.1704887972091; Wed, 10 Jan 2024 03:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704887972; cv=none; d=google.com; s=arc-20160816; b=aZj+pHCkOqEmYpdjleUtXpLsHtlcvwSzQwqiV9zuoPoCWymGuyDNBDKUBGUOOjo8Tt vDpCmdYvJRjYafdOqYDJosUryWbCRCt7fISv+W8TQ1qQT4/f9p4ccI1Q/8j6k0Dege76 bhVideJT04xE2mEK5JBIes9kYwk+VYjWRxopdthyetxmhSe6ojF8j3qm8mnA7LqriIIg GAh6pAnoi5YSaXsPaZqjGpx0k9SqaKwdwDOK83LYiXtwO6xausIhtnX8Cxf7BdVqHYa8 pecC4zu7rJqHwYJA27vHMf7toF3amPLsCegL33+pi6iLgJ+Jo7obe6JacQ76NaIxlj4r 9qrg== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qErZgVbIpW2hhNOx9D4TD62wOg8Av2z8ODUtyRaOH5c=; fh=M/Mg9TtngevyqXgZJCTwFV5p5//1sl9LEorA0JOhC3o=; b=AEZzaeS3fgJvLd2ifrb6mt6NWUiT3yQTYSS7VCBzH980SBmY7Q9TZUxdh8F3qlct2m ZpiqSL1QIZZBouAjFKYFvGc2a6pjpjetW0+PgRzI8NbacgmsVPkVm8HGeoKt4vE8p8Wt 0Mld4YOrqdXjCKgpocm/mcy1esS/b8lzW2g1RPk60bsflTV4j3wCQ9Gjvj3FwV06owG8 CRhO1mIwHwY3OTXB0qEdg+hd2brQnEwnSmGl2fBNTmx6ydlTLszMpWeVsOcuUv0tnb2N yHCr4XP/yInLBW84Pcptp9o2LiZaeDCiAgSIwkTKO7wq6wkewQLGw1VyxauvhXh0A32s Ww/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RKnZ5pgb; spf=pass (google.com: domain of linux-kernel+bounces-22147-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22147-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id r6-20020a632b06000000b005cdc07fbef4si3590137pgr.736.2024.01.10.03.59.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 03:59:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-22147-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RKnZ5pgb; spf=pass (google.com: domain of linux-kernel+bounces-22147-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-22147-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C761728936E for ; Wed, 10 Jan 2024 11:59:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2F4848CD6; Wed, 10 Jan 2024 11:58:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="RKnZ5pgb" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 5BDAE482FE; Wed, 10 Jan 2024 11:57:58 +0000 (UTC) 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-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40e5508ecb9so11460465e9.3; Wed, 10 Jan 2024 03:57:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704887876; x=1705492676; 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=qErZgVbIpW2hhNOx9D4TD62wOg8Av2z8ODUtyRaOH5c=; b=RKnZ5pgbw6/9vd/gUJzR7+7mHNQBW8dA3rnz84Ywok7KMlbzJIVhOWmUeR7rrCoKKr /p5hl1gKw+K94MJ6a3EJ76Eu9tR/bEgQZDttL+GWv29RehVCL3GnH7R/uwaDxDG2y3LY a45gY+zEru8bo6CorS8pcGvnEb2IuTFBQ1k2IkgLqZYas7q5V8GOmrtrgR6yFA6JrfP0 J8D0zxVqST9SSR/+XAbX3MLl7c0sfUcy0oiswiqxkgYtB8Chh6WxRliN3lTzMhdBlkCL 4XxgtZQA5q7l0OTfXglzszPRt6R0w693HtIy3nv3wKkve5nuNmjZwgqxZXeYoNEduEqt 07jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704887876; x=1705492676; 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=qErZgVbIpW2hhNOx9D4TD62wOg8Av2z8ODUtyRaOH5c=; b=a+qn/4/g8sdOKMdyBlZe0v9NsaqNrrH0X0csKS6qOL0qVSdpStGEe+2s+oUCh0v7V3 fs7ktwq46leslQBNceAgn/XKrO7CTRSDWwijQDnfCqcy4snxfZjzIN1xbuMjVbtMDRzR whstAhcnUzUqCi0UIOQbhk3HIk3Y4BOWNKKb4eb3bwloqWaNq0hd7uU8wZqT3TYlj5Ny YmzS4NJMumFEoosHzBLUR/j9WDjD69+dq+JrIrrPUzMy7yqgm+6zLuMsYrp2NNV4tU1H hCawyOPY8Fp37rldj3S8zwjAH4Ln06Y0OEpMeBt3YS1drQkY82Ym8wcQBwkTjuuOVD2U gLew== X-Gm-Message-State: AOJu0YwjO1EcxsMgXEf/OXkii9JaiURr1fI8MmgH6ja/IGKwH8Uv6UQg yBo11KbOuuy7Z98hphYoc0HGCbU6LvU= X-Received: by 2002:a7b:c8d0:0:b0:40d:56a1:2538 with SMTP id f16-20020a7bc8d0000000b0040d56a12538mr532122wml.62.1704887876240; Wed, 10 Jan 2024 03:57:56 -0800 (PST) Received: from localhost.localdomain ([78.209.40.150]) by smtp.googlemail.com with ESMTPSA id f17-20020a05600c155100b0040d62f89381sm1962136wmg.35.2024.01.10.03.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 03:57:55 -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 RFC PATCH 1/5] net: phy: move at803x PHY driver to dedicated directory Date: Wed, 10 Jan 2024 12:57:31 +0100 Message-ID: <20240110115741.17300-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240110115741.17300-1-ansuelsmth@gmail.com> References: <20240110115741.17300-1-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787704610246186402 X-GMAIL-MSGID: 1787704610246186402 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 9e2672800f0b..e261e58bf158 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig @@ -335,12 +335,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 6097afd44392..59b1cb5b14fa 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-y += qcom/ ifdef CONFIG_AX88796B_RUST_PHY obj-$(CONFIG_AX88796B_PHY) += ax88796b_rust.o else 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