From patchwork Sat Jan 27 14:42:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 193014 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2395:b0:106:343:edcb with SMTP id gw21csp520135dyb; Sat, 27 Jan 2024 06:43:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEx7vx/khpuzuzLdaw93mhYuHak43cRMjNVg0L8FM1IFbnQl/ccKkCXv4Pi9xZm4sHU0sLO X-Received: by 2002:a17:902:6e02:b0:1d5:efcb:3cd1 with SMTP id u2-20020a1709026e0200b001d5efcb3cd1mr1510988plk.81.1706366638534; Sat, 27 Jan 2024 06:43:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706366638; cv=pass; d=google.com; s=arc-20160816; b=laXjtmfOzX5whdEP/QmAVeuPQEoI/3+XU4qD/77M9GdyWqmP4ab8suOG4x0H/9tJjL 1R9EfQWaMCCVbCJMiIq/XaXq4hf/xR0DxlSsBCkDyhLE71A8LvxJSFnazSI8NoAVmI6U QuRoqCwYWGU4kLwdlEsQLuzeajW4CqGdZoSVlr8cOK6ubbFrAvaZo7IjOtWsNNan+PMf DEdNBtvkYHBJwwXOGAW7o4exao+G9Y70wqVLPAH+TG0OnNUfRLfc538U8OXGsDVHk7Pj dzs+ung0835wISHcmW5DUkgk5xcuaZ9R1DDIgHtVw0xbr991nQs89P5P6OFNlmfLBta4 YEKg== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qErZgVbIpW2hhNOx9D4TD62wOg8Av2z8ODUtyRaOH5c=; fh=Iyluyi+pL1Y89v4+Zp6P1bYIkzAQGHSGRXZKPoY9+Kk=; b=g/m/UihzZ0ngQdAR0u5oyVU9FKnlZ6dDlEFYCITJ22QtxBUmvKB3NoMyR0oESAjV2m KkgnaEoXOb//lshIz3g2GUuHAKyy4j/0/pEivNA9Hfpdxt/n/OnXGa7+kNp3HMKwO6BV vRAcNoX+pPEHekceKaefOJbss7MnqYhZ4yscbvQ5f2rSZ1P39ynZ+qCpKBxfDQGrKk0o N8Z4tbQNiH8FYkjliKl3fl11cEObQSWi3kq2Q7yneUYKC8BODButxja1NtB7h0qsQKAf bDLpaViG/vB9D+EMvoF1CIa74byyI/31V3dCHaNrQ86NOi5EqIdHGV+E2jQoL64D3cIh i9Fg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cILTJDni; 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-41222-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41222-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. [139.178.88.99]) by mx.google.com with ESMTPS id p6-20020a170902e74600b001d70ec096dbsi2905682plf.70.2024.01.27.06.43.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 06:43:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41222-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cILTJDni; 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-41222-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41222-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 4AB3A282A40 for ; Sat, 27 Jan 2024 14:43:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 629C92C1B8; Sat, 27 Jan 2024 14:43:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cILTJDni" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.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 C1AB625779; Sat, 27 Jan 2024 14:43:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706366587; cv=none; b=uRVORgfdlmYsDvo3V1rpgFGNTK8rGYVu/LCDsYsuATM3wUekDsCg+0nuh7TdFfo3fX/a7hTLUjEfEEnEbLBhwp3ZmXpfvMZK4zWNOb2HULDFM0LdpKUFjuXA5Tc1MGENH1vMF8lHny760wieUfty+/tvuzolhxJhMxgrPoVBhhU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706366587; c=relaxed/simple; bh=08bKj4k6Nq1I8YpZDSCe/MeC7FBaqQkRVsTVQefgswM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YbdQ3hEskQTyutR1FGXabWBUrhIPnmehec7nRuPOYozYhNOqHx7fki2LFbioCkCyVELwGcciqXXvl2DdHewScrfHsPm0ZsjI/zE07tqJv1iUN5J8qLBtPY9GOraTnFYcqz3c2Jhukx4LluvsRTq773eiz/xLbbMTVV/OKM/sYz8= 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=cILTJDni; arc=none smtp.client-ip=209.85.128.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-wm1-f50.google.com with SMTP id 5b1f17b1804b1-40ee9e21f89so13644875e9.0; Sat, 27 Jan 2024 06:43:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706366584; x=1706971384; 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=cILTJDninBSNM9hNNGf86y5yT1nb3PhZirOCcb5njSqt7V6axYEvMvXaophxIANY+9 P/HsgH504WeA/KotpIwENlH3OOfyIUNxJbUp+DyB2yTxKM0hOO7GdlB3kQ84+HudXEJt FcLij7KG3Omb5yovIRNoucx6v5uwKfrEr48AdUR0UaJLwdRQpuKd8pfwwqZuvqNsgDTI EZGTxDv5a2EfdvrGXilCD96cwn5LmhwIIHpanw6K98YwHibuiTr3QjwtaAWYFI+bm2zA q2mf9cBA+zMx6C262E7rNWTqTlN5ph1udV5Zj0pkMczKHj8aPnjUnDBv17gJnKdNPkeD 5Jfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706366584; x=1706971384; 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=A3b4hudtsx297RpjU3LccV+IB+U/KN7jAXxeSE7H7gu8HkYBl6mGg/EhY0mCneQR5n uaAlr5iLsbS5e/weWbsgkqF/EK3BQ65NwTBTheLGypTAA2SB9DneqJo8qfCfcwyl/A0c oIocc+tQdzEkg7tuDNL/muEoeX1F1xnhlIVrr+vzg3y3k1PExePhtBfXLwzRAaZQi7xF T/gZ/NvXoX7LF5DgpeLgnIS7VQPtQihg8V2g79tMhP46ICCTVZ//1hhOyCP2QalrpE3k /NZiFyYPpANUHqB12ZJuBhatJv7s9mhLHg4fEnXQz21ELN+tCbv33t8Pn0D3gjPUwxEN rerQ== X-Gm-Message-State: AOJu0YwachyhAy9z9HBK4FuLMbR2oTG52Ysin0imuMYHaNbye0+Oobs+ /KQAGJRWvBIYmUK3kZeDWLpGOBzECWBcbVxtIoczFiT1AUB+uaWk X-Received: by 2002:a05:6000:156e:b0:33a:de9b:5ee8 with SMTP id 14-20020a056000156e00b0033ade9b5ee8mr954824wrz.170.1706366583614; Sat, 27 Jan 2024 06:43:03 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id a11-20020a05600c348b00b0040eef2aed28sm1412590wmq.23.2024.01.27.06.43.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 06:43:03 -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 v2 1/5] net: phy: move at803x PHY driver to dedicated directory Date: Sat, 27 Jan 2024 15:42:41 +0100 Message-ID: <20240127144252.24767-2-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240127144252.24767-1-ansuelsmth@gmail.com> References: <20240127144252.24767-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: 1789255104050982512 X-GMAIL-MSGID: 1789255104050982512 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