Message ID | 20230202125930.271740-5-rakesh.sankaranarayanan@microchip.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp221301wrn; Thu, 2 Feb 2023 05:00:20 -0800 (PST) X-Google-Smtp-Source: AK7set+/CdjmCTnIKTJeuUIPXgFi5gejKsLWdDUNujklX1jxWz+O7olRNWVyluA6b1OAjcoQANnA X-Received: by 2002:a17:906:48ce:b0:887:4da4:d332 with SMTP id d14-20020a17090648ce00b008874da4d332mr6403262ejt.38.1675342819870; Thu, 02 Feb 2023 05:00:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675342819; cv=none; d=google.com; s=arc-20160816; b=L3O9s6QYeS7Io9PyD2S5dNzjegyn/7rnt7ToLoKaBKrGuwD1ds1hio/3R+XpxlXyze 9viiT9I/tzBR7zqnV929fn8AMtKf9Fsw4zeIhQfA/872ZZJvOxHrV4g1a6fn1EjRL4nF CWxFTf2xrH9Q1cy4Rp5ENATYaV7Iq1yaueRVbK2/MmgK2zB1HE79UdTIeU5N3HGOax0J qMU0YsSZD7U8TvcK45PL4KQqxcWAK/J+ypJvB6sFDGgxw96u2DBpAiXAFpRbO0566RsA vVNZUj0KFqnOzaW2pqCz1gP3PJBs3i73Wgm7UiqoTDM42C+vBbR/kECtgpY5V4qzhuOH TkOw== 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=+7xBwrMw6xIeFWq8mT+QRiHdDQgWXo+qnWRS6dw+w64=; b=u7UPDm3lhvbLvwogN3tTB8Mla2oLBggBJUZC4FUa+HdCkOtJwXZXJ1OSpe3ns0m9Nx o734UgaQjKodas6ENomOnN/KZpiZAMkcZadvDFuyIPRlxVvLRoVQWvyWeOSaEfiqZ90f /nN6tSRZ+Mda2dTEo0ynYuvMreJ9s+7KADequFEl9VeJR8bhvQICBOlqNGGy5iYlcFSw Fe8KF6JYb4jBUDsNh9H1t5z4qQ9VMyAOaRH33TiP1zoL21ZobqljabTNu6dvAd0IHT0H Yjfjh30zfJusgCbDaEYAx5QvD4GVS7+ydM5IObYgIcT5iiK6SNHKCDMJvYgWSiyv2kDs t2jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=NbX8cCPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f5-20020a170906738500b008621404f1d6si26768822ejl.892.2023.02.02.04.59.56; Thu, 02 Feb 2023 05:00:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=NbX8cCPd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232354AbjBBM7A (ORCPT <rfc822;il.mystafa@gmail.com> + 99 others); Thu, 2 Feb 2023 07:59:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232145AbjBBM6v (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 2 Feb 2023 07:58:51 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C55C6EAFB; Thu, 2 Feb 2023 04:58:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1675342730; x=1706878730; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=a227EjQrvydGYIKcbwgGhKJ7ZtgW5ewg9wl5/GCvx7U=; b=NbX8cCPd1fLE7N2TwNJ5L7aHc3Cl1NxvtJI2JcyIhH3iItretLIpfvFe 1qYqTbFf+JvhcLNWX1lBexVnD+xK2aRK9q5IqdOkOC+EKj57kY9qY29DK vjQke1fK+ndYIF9/6qK1cr3h7sLNvohaC+hfJf7cf5Yoxh/gbj+aV8sIf JZffQhuX6lUkMtr1VsgYkaP7r2iGmURS4vRZ/yfFNWkV9vUfSBIoePkPG 9xbTymhzik/txlnPW5oUroCYNxDGmoP/FTkAr2xHUPiFIph5zJRH+BJlP a5eoTMpyhSnLTnNABcH3xYL07JuIwV3xEqWAqxSqg/tj7wM18mua2TlOV Q==; X-IronPort-AV: E=Sophos;i="5.97,267,1669100400"; d="scan'208";a="210318418" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 02 Feb 2023 05:58:49 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Thu, 2 Feb 2023 05:58:49 -0700 Received: from che-lt-i67786lx.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.16 via Frontend Transport; Thu, 2 Feb 2023 05:58:45 -0700 From: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <andrew@lunn.ch>, <f.fainelli@gmail.com>, <olteanv@gmail.com>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <woojung.huh@microchip.com>, <UNGLinuxDriver@microchip.com>, <linux@armlinux.org.uk> Subject: [RFC PATCH net-next 04/11] net: dsa: microchip: lan937x: update port number for LAN9373 Date: Thu, 2 Feb 2023 18:29:23 +0530 Message-ID: <20230202125930.271740-5-rakesh.sankaranarayanan@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230202125930.271740-1-rakesh.sankaranarayanan@microchip.com> References: <20230202125930.271740-1-rakesh.sankaranarayanan@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756724273166587085?= X-GMAIL-MSGID: =?utf-8?q?1756724273166587085?= |
Series |
net: dsa: microchip: lan937x: add switch cascade support
|
|
Commit Message
Rakesh Sankaranarayanan
Feb. 2, 2023, 12:59 p.m. UTC
LAN9373 have total 8 physical ports. Update port_cnt member in
ksz_chip_data structure.
Signed-off-by: Rakesh Sankaranarayanan <rakesh.sankaranarayanan@microchip.com>
---
drivers/net/dsa/microchip/ksz_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Thu, Feb 02, 2023 at 06:29:23PM +0530, Rakesh Sankaranarayanan wrote: > LAN9373 have total 8 physical ports. Update port_cnt member in > ksz_chip_data structure. This seems more like a fix. Should it be applied to net, not net-next, and have Fixes: tag? Andrew
Hi Andrew, On Thu, 2023-02-02 at 16:19 +0100, Andrew Lunn wrote: > > LAN9373 have total 8 physical ports. Update port_cnt member in > > ksz_chip_data structure. > > This seems more like a fix. Should it be applied to net, not net- > next, > and have Fixes: tag? > > Andrew Yes, I will update and send it as separate net patch with fixes tag. Rakesh S.
On Fri, Feb 03, 2023 at 10:43:40AM +0000, Rakesh.Sankaranarayanan@microchip.com wrote: > Hi Andrew, > > On Thu, 2023-02-02 at 16:19 +0100, Andrew Lunn wrote: > > > LAN9373 have total 8 physical ports. Update port_cnt member in > > > ksz_chip_data structure. > > > > This seems more like a fix. Should it be applied to net, not net- > > next, > > and have Fixes: tag? > > > > Andrew > > Yes, I will update and send it as separate net patch with fixes tag. What's the story here? Arun must have surely known this isn't a 5 port switch?
Hi Vladimir, On Sat, 2023-02-04 at 01:26 +0200, Vladimir Oltean wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > On Fri, Feb 03, 2023 at 10:43:40AM +0000, > Rakesh.Sankaranarayanan@microchip.com wrote: > > Hi Andrew, > > > > On Thu, 2023-02-02 at 16:19 +0100, Andrew Lunn wrote: > > > > LAN9373 have total 8 physical ports. Update port_cnt member in > > > > ksz_chip_data structure. > > > > > > This seems more like a fix. Should it be applied to net, not net- > > > next, > > > and have Fixes: tag? > > > > > > Andrew > > > > Yes, I will update and send it as separate net patch with fixes > > tag. > > What's the story here? Arun must have surely known this isn't a 5 > port switch? It was my mistake during replicating the structure for LAN9370 and LAN9373. I tested the basic switch functionality on LAN9370 and LAN9374 but not LAN9373. LAN9373 Evaluation board available in cascading setup. When Rakesh brought up the board for cascading, he found out there is bug. I should have double checked all the structure member before submitting the patch but I overlooked it.
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c index ada673b6efc6..7062ce1749fb 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -1490,7 +1490,7 @@ const struct ksz_chip_data ksz_switch_chips[] = { .num_alus = 1024, .num_statics = 256, .cpu_ports = 0x38, /* can be configured as cpu port */ - .port_cnt = 5, /* total physical port count */ + .port_cnt = 8, /* total physical port count */ .port_nirqs = 6, .num_tx_queues = 8, .tc_cbs_supported = true,