From patchwork Thu Feb 15 21:43:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 201763 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp139449dyb; Thu, 15 Feb 2024 13:44:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUrPpjM2KDAv4+/HabdFPLhEBYoojBB19eUqSN98QcZvcOzX/vNm2UGH87fLPbXNNFPeA36Gl33bSabVJc/CPmkCF1QNA== X-Google-Smtp-Source: AGHT+IEkwMCEjAi/9UV5jcPdoBaPZcnxDYD7QbTZDK7LlgP/i85EN5EDWCXAMFz5c177fdVqaEaP X-Received: by 2002:a17:903:1104:b0:1db:37b1:b1a3 with SMTP id n4-20020a170903110400b001db37b1b1a3mr3268014plh.17.1708033447088; Thu, 15 Feb 2024 13:44:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708033447; cv=pass; d=google.com; s=arc-20160816; b=QJOUyvPBQ5R/na52M0QkT2z2jY88sp5Kb0Ba9CqmvJ0pvMPqD5clahqlwX5E4aLTPh kLTWCCJF4zV/JdEb3vu/AcAFG0Urt5eA1YBlRHBlHTgvF4tZknkElYx5Fkn6SOnoo5mF XFlyIX36viahmmYwey9VvMdABZHZvDVBZ0lr+OK+7lzrf93wUpdS8J8WtLBqyxDQxa8N rto6FBBOHLCVrgmrWgbiAFQxPMymRNx/eV6g0lwekch8EXzSbh5QKqB/2CLZo6W9BrTi r8e3K7bDYGqIDKqWyxj5A09IqkxvL0hi1JfwwTQMhqpRwWUU6Fv7WGRmK4UtqxvTPTSq ReZQ== 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=a10Ci9q0vKOTRsi2gPzKUjUwhpFZoCzWi4g8A+iVQbI=; fh=F+c/YLJ7c9C7x+4Z1GH7YfIJp9Rbr04OkjMo952Rh8I=; b=yhME7qHju7gHiXoxYnsVPeI19aAiHvTqa2xts1UfMUhGFfaTwzEBVpa3NK9kY50Jsj OY3n3LT7eq2S+nu6JXdh4LOc24gEihHRbQERTABt9H0RF6mOSwHQRRl8RoxBU0gl4866 OUTNqbIkdCy5SkrX0Bc+4kmM+UkBzgY65pHuOn1CK4pTd493UNV6VaCd04b5ZxbKvaN5 tQA+FDSe+CkC35y/oQFCsOz5cSRdz4d9u8kJq89X5rEmheIg1sXOc23U3kS0K9QoMzct 1IamJOaoBQHjxMkHJP4swN4Ba0F8F5CnfiWR3IS1uN3UWdazonyrlBo92kgeOP12nlni n08g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Z7b/kcNP"; 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-67709-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67709-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 b10-20020a170902d50a00b001d9f4d7b31esi1712728plg.508.2024.02.15.13.44.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 13:44:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67709-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="Z7b/kcNP"; 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-67709-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67709-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 E03E6285EE5 for ; Thu, 15 Feb 2024 21:44:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 421571419B5; Thu, 15 Feb 2024 21:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Z7b/kcNP" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 1B8A613B7BE; Thu, 15 Feb 2024 21:43:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708033429; cv=none; b=gKGIws6HTnCoMdOenFHfWg+H+wEWTenl2ynGQH79yTBkpeVgFAZdPjoVIHT5D8hSs0k5zB5g6ajrh3lmLvIr4ZUnt1acuG5DCQMaeQTUheKxRPK6AcNGCDch0Gf000l3KfCLwywU2i02DYvXO1RcBGGv9LvVd6gkZyznup+D5do= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708033429; c=relaxed/simple; bh=QaEZlqJFcTfiTUOyjsDsoswbJ0CUnBjYeZ73Th5EEfE=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=F+2shX/gIbphkHkAMFOqbb8MkuRZZMrJbRfi/OOfRtHi+S4pOtO7sg58cRgBwcF85L7qnRALbWDWvGqbELD+QTlYe+705jvFftAG74FBaACw01XFQXNWhkxVtvUZC52MaNFh5GnUtNoHGs8n0j/oSVQ9lPmx9wE/51+4L/Pntd0= 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=Z7b/kcNP; arc=none smtp.client-ip=209.85.221.54 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-f54.google.com with SMTP id ffacd0b85a97d-33b28aadb28so713258f8f.3; Thu, 15 Feb 2024 13:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708033426; x=1708638226; 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=a10Ci9q0vKOTRsi2gPzKUjUwhpFZoCzWi4g8A+iVQbI=; b=Z7b/kcNP0VXMGOYKSi7gWcGluT6MhBpNqGm2hXk+ZUCxHFVRSBLV42FTKAzZ6xO00S l+zTKwzeTGbXjr7j0MoyFquPzKLT6ZBsGjPASHdsqY6ymAbY0l5HLs6bQVnYwYzO/nNl iJxqy+Thddzh982+CfHiKpJJmDv0wsgXU1+O5bNeeNIfuvnjg4U0Zg93l5z4BJkrGvWa 0nX+Htixt3Nh3aCL8qE+1GAJ0dkAG2ISgZQTJlLCZOyQcrEcmit/eeC+qT9hQ3pbx4Kj rBkSFEz6aXHyQHGbx+sgOXIjEih/NQ56p3MiXSAxQQys7wdyhEWLcJLwG5w5GWk+90AT 5o9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708033426; x=1708638226; 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=a10Ci9q0vKOTRsi2gPzKUjUwhpFZoCzWi4g8A+iVQbI=; b=msjVx4vcU2jR65C8EMtjfQNBKG2a5ycqDx5Wdj4KQxahlt2FOxEWTp38phE4GwM4xy SCmdrU6u6cgSrAihoBo7UFUOmClc0/ONKGF12SNyqZtw49BRBTlhYHfYN11EmphJUHXp gYYd8tBLGNURRnBpNYrDzoBH5NlmxNuD1KX/Q7YbUKmjCycpeTN6Qh8jIo/eiojqEeV/ UDk7VyDr8Ibo3GUI5YuDjz177wb1dqqJEcJIYKKzPUkC/9afnBmZZtqdpIfhVqqSu4bk b4gU8Lc0/wVaEUcfsvJEMD9e3txoEpi909CWcr6vPzg5tU6hJQlc1JvnvAA+kBk7uDUy 8nrQ== X-Forwarded-Encrypted: i=1; AJvYcCXcTkpnuMija3WEUChkd+yRTSSrDIoOgxD+9flJXmeF5L9GRs9sEAo92OcWVeuiFoyV3arTj1FUvbC3/AQ6HjA2dYKfHvSj2nW8y517TgHHmsupHO5w5w/X0722keIK1PQLnMPA X-Gm-Message-State: AOJu0YwlCjOGCCTIWCuWuAExqZTjwHlL+7S0+8ubvoa6QNyfIjYUWjaD n08DEP234kfgSptmWUxvs/Gya7T6dVgJyQDPnsDUVcTSDjyhSho/ X-Received: by 2002:adf:979a:0:b0:33d:f4b:d484 with SMTP id s26-20020adf979a000000b0033d0f4bd484mr1681844wrb.16.1708033426035; Thu, 15 Feb 2024 13:43:46 -0800 (PST) Received: from localhost.localdomain (93-34-89-13.ip49.fastwebnet.it. [93.34.89.13]) by smtp.googlemail.com with ESMTPSA id k3-20020a056000004300b0033b79d385f6sm284740wrx.47.2024.02.15.13.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 13:43:45 -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] net: phy: aquantia: add AQR813 PHY ID Date: Thu, 15 Feb 2024 22:43:30 +0100 Message-ID: <20240215214331.18162-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: 1791002880049031350 X-GMAIL-MSGID: 1791002880049031350 Aquantia AQR813 is the Octal Port variant of the AQR113. Add PHY ID for it to provide support for it. Signed-off-by: Christian Marangi Reviewed-by: Andrew Lunn --- This is based on the AQR113 patch that has been already reviewed and accepted (still not in net-next as a rebase was needed) 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 a6a7980585f5..71bfddb8f453 100644 --- a/drivers/net/phy/aquantia/aquantia_main.c +++ b/drivers/net/phy/aquantia/aquantia_main.c @@ -28,6 +28,7 @@ #define PHY_ID_AQR412 0x03a1b712 #define PHY_ID_AQR113 0x31c31c40 #define PHY_ID_AQR113C 0x31c31c12 +#define PHY_ID_AQR813 0x31c31cb2 #define MDIO_PHYXS_VEND_IF_STATUS 0xe812 #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK GENMASK(7, 3) @@ -961,6 +962,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_AQR813), + .name = "Aquantia AQR813", + .probe = aqr107_probe, + .get_rate_matching = aqr107_get_rate_matching, + .config_init = aqr107_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, +}, }; module_phy_driver(aqr_driver); @@ -979,6 +999,7 @@ static struct mdio_device_id __maybe_unused aqr_tbl[] = { { PHY_ID_MATCH_MODEL(PHY_ID_AQR412) }, { PHY_ID_MATCH_MODEL(PHY_ID_AQR113) }, { PHY_ID_MATCH_MODEL(PHY_ID_AQR113C) }, + { PHY_ID_MATCH_MODEL(PHY_ID_AQR813) }, { } };