From patchwork Thu Feb 15 15:30:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 201559 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp478005dyb; Thu, 15 Feb 2024 07:30:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWOQ+8llw8RArD1UElFGZ0njP+RDtUnX0STcrQS0DN3gxv/iIW7B9Umfjg9KH5N1yeQS+NdjTv330Zc+6VaGtzj0HLf3Q== X-Google-Smtp-Source: AGHT+IFK5DSCVLwip/rxIwazIFAI+15tkVsU7lKfpLqk0QwY2HB4woUoTg3/aa1jeYLAQTGavYQo X-Received: by 2002:a05:6a00:d5c:b0:6e0:df2d:e7fe with SMTP id n28-20020a056a000d5c00b006e0df2de7femr2611229pfv.11.1708011056171; Thu, 15 Feb 2024 07:30:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708011056; cv=pass; d=google.com; s=arc-20160816; b=S5WyJI1U4VQAv1e1qw859dx5tA3A4EvVuhsfvcfMv58p19N5yzjmX0BqmRvXqcaceI L0nWk2AhdhwqU6K6vGrew9E9XvvJghUXuzlUTYrW2qsZ/kDnlT9qftym4BTUR/D8VuHz 0JZ7QhYRtBGZnGdmuhHGAnYsIX2/93l9xLvgL21zocIHygQjafcPt0z/nx2YY0cY64oJ Hjsspk6g3HG3WVBjzMz5ilZYEW7HJJgqZcMsweZy9fR6ahCb9v4H0de6JqCYQHEgstE3 RfPryZhxyfTrFHQlRIS6oN2xOwG4FB4YrjA+rO2yrlMIw1rQQ0zjdqkTUTunqUBLwizm JQyA== 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:to:from :dkim-signature; bh=EzxJs9cxp9wBXtsvla3RFm6+Tnd21QJFktLvuH+bRvc=; fh=rzdvBmYGjuljFlgqU8aj2Fmqtc6TyyC5kPZUanoO+nE=; b=yBpWxCEVmuz7aeZaDlO1Y7IT5MHibYhKL3otn0L1SLDp4dpWY9DuFI7Ms/QWEnysOO /mk5Vb41YZbA1dsrMsWKEQTZsIC3AUeyNHPtpsFJSmYxR1dw8H+swZVmQYHqmGtDj10P 1qBaplmziRaCQxyKeRkHDgHwZxF66NY0x9HBbV/r0NL8RXuEAWmY3Tk9y+bjQy4MCQHj sTGQpfOs2MVrwaBPZZaLzdVJMqGoUpSygX8v5BfDj6fIcZAadhU5P8EJbt/xw8BcGsMg syf67lg0I6rJEdZmQduN5QBQCuP3G9dEPOXEzbRnDMLIIFdqTyRlU6QvoLg27QzOUZxc lkYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FYt1Y9IX; 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-67180-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67180-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 k199-20020a6284d0000000b006e111461719si1289204pfd.81.2024.02.15.07.30.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:30:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67180-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=FYt1Y9IX; 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-67180-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67180-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 38E46282A40 for ; Thu, 15 Feb 2024 15:30:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0350A13399B; Thu, 15 Feb 2024 15:30:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FYt1Y9IX" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (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 BB335133412; Thu, 15 Feb 2024 15:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708011022; cv=none; b=LhEYYBoYF9cX9P+iKnEnl3ECBvPlOirVp2a4EW5eH6G5xvEZ0QPYZJSsBVkcNtr9HxA8r+3vKbg+Q3+qDg1Dyr896STMK2FtJTJvueQNvRGrBBwHxN1bu4AKUZnwblQyHR72CEC0QEdLmY1TXe4F2Z2EcWUqR3BVyVFRieM3YPY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708011022; c=relaxed/simple; bh=zJC9CXq4dcvLk4nahJYJkn9RNZzyk2capY7kPps0jfg=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=Jf8GO54g48daf6UFpnWfT6VZv/+knLKC1lrNRmlnDdfsjtNp3lCy2tBFGFh9RpaU8WcEIqdcQwjNbyRT2rHUDJIX2/PGbjC1FPBqEOqS1D+Eoh9/fKtKl1hYx31/wSNZ8RKJj6j9QqQxwwFRqikFG1ZSNrpilhetvw3lc5pojRU= 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=FYt1Y9IX; arc=none smtp.client-ip=209.85.221.53 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-wr1-f53.google.com with SMTP id ffacd0b85a97d-33934567777so583450f8f.1; Thu, 15 Feb 2024 07:30:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708011019; x=1708615819; 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=EzxJs9cxp9wBXtsvla3RFm6+Tnd21QJFktLvuH+bRvc=; b=FYt1Y9IXb613l1zUAVUyMDMt6MAk/hDI/KcYS6Zb/yH1mcG8oYAFN33tzqTcoFGaVa qe4Dqm9xxAAzobc5OsJw+O6IVIzXrFCb4jGBgf3hRpqJU7oJhqaNjQJrSvcvUhkrzmfy lfW1Po8VfA4OLXk7c/QXtf3NeI+y7DgylVP3ayOAAecqYsX4pC64Kppal1KFMSIaUwzQ Nfa+MkTsuf4iwzZwic5Gt4PfA/sxT4+t1b6wvi+SO2EzPlsXVuwGWlwtDwtNFK0eMaHO AdhyOgHfBCUeoTReV/Po5HrV4RrGqVT6sNoANBivIHFG6Y7Bw+GEwCETilP2URDX+Be+ x7ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708011019; x=1708615819; 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=EzxJs9cxp9wBXtsvla3RFm6+Tnd21QJFktLvuH+bRvc=; b=Js9xy8DeMDsj0bKwoIFbFW/omDT0bGqZzWghA99vXe26UtJP2cteZxtrOnwYYRnL2n hAXIEXOamanZqLLpvYBHp1Yc9KEjdppyeke6kONv3FG2XnNYgU2DCNtoyjDdITecN1uf 0ZL5HE2koHPgvX2mi3k8pEgm1MIdd3Ya207V7URFKL7D2jxhkHehou8N91r1YAZaQqEV g/VTPv4jRlcfHCBS8AVPPCTIcngIxZcbapRK2D07UfpaxLR8uj/6fFEF7D3gqOpEJTsa JO9O9r8TFhtuCiiGTZGPocG8HoHT12UNyKslG+Pn8kJjL9KJn4zaGDMzSXi+LsSyXJsf i84A== X-Forwarded-Encrypted: i=1; AJvYcCWjQPbeDxcdUIl8SoKD9wAgRl0QnaqbMmuYYUWooP5RfsTEPg+ZARkjtQ9bOzt4w09/sgDSf45tK9GZ0Amu4YPipNkmyfvI7357Gh25HHDmal72m+uOwZBRGETy+rP2dqAQfqUk X-Gm-Message-State: AOJu0YyAINrsJSbHUK0Bu82dbkGiE1TnHu0VWOUv26B0fFH7yi3wPKLA x/kUOWqhUsMA9wVoC0PZ+JRiIf6/e5IHA7uZx2/R7IdYc/V/+aP5 X-Received: by 2002:a5d:43d0:0:b0:33c:d9fb:2277 with SMTP id v16-20020a5d43d0000000b0033cd9fb2277mr1503222wrr.40.1708011018678; Thu, 15 Feb 2024 07:30:18 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id x4-20020a5d54c4000000b00337d6f0013esm2046141wrv.107.2024.02.15.07.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:30:18 -0800 (PST) From: Christian Marangi To: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christian Marangi , Robert Marko , "Russell King (Oracle)" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [net-next PATCH v2] net: phy: aquantia: add AQR113 PHY ID Date: Thu, 15 Feb 2024 16:30:05 +0100 Message-ID: <20240215153010.2129-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790979401638351199 X-GMAIL-MSGID: 1790979401638351199 Add Aquantia AQR113 PHY ID. Aquantia AQR113 is just a chip size variant of the already supported AQR133C where the only difference is the PHY ID and the hw chip size. Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn --- Changes v2: - Rebase on top of net-next - Add Reviewed-by tag drivers/net/phy/aquantia/aquantia_main.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/net/phy/aquantia/aquantia_main.c b/drivers/net/phy/aquantia/aquantia_main.c index 109387acabeb..a6a7980585f5 100644 --- a/drivers/net/phy/aquantia/aquantia_main.c +++ b/drivers/net/phy/aquantia/aquantia_main.c @@ -26,6 +26,7 @@ #define PHY_ID_AQR111B0 0x03a1b612 #define PHY_ID_AQR112 0x03a1b662 #define PHY_ID_AQR412 0x03a1b712 +#define PHY_ID_AQR113 0x31c31c40 #define PHY_ID_AQR113C 0x31c31c12 #define MDIO_PHYXS_VEND_IF_STATUS 0xe812 @@ -922,6 +923,25 @@ static struct phy_driver aqr_driver[] = { .get_stats = aqr107_get_stats, .link_change_notify = aqr107_link_change_notify, }, +{ + PHY_ID_MATCH_MODEL(PHY_ID_AQR113), + .name = "Aquantia AQR113", + .probe = aqr107_probe, + .get_rate_matching = aqr107_get_rate_matching, + .config_init = aqr113c_config_init, + .config_aneg = aqr_config_aneg, + .config_intr = aqr_config_intr, + .handle_interrupt = aqr_handle_interrupt, + .read_status = aqr107_read_status, + .get_tunable = aqr107_get_tunable, + .set_tunable = aqr107_set_tunable, + .suspend = aqr107_suspend, + .resume = aqr107_resume, + .get_sset_count = aqr107_get_sset_count, + .get_strings = aqr107_get_strings, + .get_stats = aqr107_get_stats, + .link_change_notify = aqr107_link_change_notify, +}, { PHY_ID_MATCH_MODEL(PHY_ID_AQR113C), .name = "Aquantia AQR113C", @@ -957,6 +977,7 @@ static struct mdio_device_id __maybe_unused aqr_tbl[] = { { PHY_ID_MATCH_MODEL(PHY_ID_AQR111B0) }, { PHY_ID_MATCH_MODEL(PHY_ID_AQR112) }, { PHY_ID_MATCH_MODEL(PHY_ID_AQR412) }, + { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) }, { PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) }, { } };