From patchwork Tue Apr 20 07:54:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12213511 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCAF4C433B4 for ; Tue, 20 Apr 2021 07:54:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9FBCB6101E for ; Tue, 20 Apr 2021 07:54:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbhDTHz3 (ORCPT ); Tue, 20 Apr 2021 03:55:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:40660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbhDTHz0 (ORCPT ); Tue, 20 Apr 2021 03:55:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A11B3613AE; Tue, 20 Apr 2021 07:54:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618905295; bh=GPfB7RB4S4QXXlDwMzCffHDNv6dwcUFtqmtBs7e4EV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cdW0PGaaKIG8eWcdLLjdxMQo01SZlDP/hXnMCRek9veNirMA8s87qOUGPGkJHDg6/ 8uM4BEIuc+KxPV/lNQyjf01CJyXqzl61qkEHjdOvpG8uok6twd1HZprZNXeBVK0e9t 3/3WEjylFWXBrATZ3hEdM8MuS2NZJkh0YiCQx01a9+AxqhDxyKHo7S9PMFi/mGbP8l sUYrXcs2f7Oo7+Qb9VlbjedDnfX1lFgn6DJfGnNunVHVk8dOgyZPNtHyxK4TLf6DUf rNN+gGLVuoy68RFxXDqbmEcig66klA4OjozoeirSiPvE5Zl0USgbJ8bXv9ZS4z+TN0 dOAOV0/4HFVug== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: netdev@vger.kernel.org, Andrew Lunn Cc: "David S . Miller" , Russell King , kuba@kernel.org, =?utf-8?q?Marek?= =?utf-8?q?_Beh=C3=BAn?= Subject: [PATCH net-next v2 4/5] net: dsa: mv88e6xxx: simulate Amethyst PHY model number Date: Tue, 20 Apr 2021 09:54:02 +0200 Message-Id: <20210420075403.5845-5-kabel@kernel.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210420075403.5845-1-kabel@kernel.org> References: <20210420075403.5845-1-kabel@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Amethyst internal PHYs also report empty model number in MII_PHYSID2. Fill in switch product number, as is done for Topaz and Peridot. Signed-off-by: Marek BehĂșn Reviewed-by: Andrew Lunn --- drivers/net/dsa/mv88e6xxx/chip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 860dca41cf4b..9c4f8517c34b 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -3165,6 +3165,7 @@ static int mv88e6xxx_setup(struct dsa_switch *ds) static const u16 family_prod_id_table[] = { [MV88E6XXX_FAMILY_6341] = MV88E6XXX_PORT_SWITCH_ID_PROD_6341, [MV88E6XXX_FAMILY_6390] = MV88E6XXX_PORT_SWITCH_ID_PROD_6390, + [MV88E6XXX_FAMILY_6393] = MV88E6XXX_PORT_SWITCH_ID_PROD_6393X, }; static int mv88e6xxx_mdio_read(struct mii_bus *bus, int phy, int reg)