Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp817168rwr; Wed, 26 Apr 2023 06:48:58 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9Nuf2hib8HLo4KLfH/WxuPOo4NNcB2st8+goXZOCJCHgjxBSPs3yakoj3dW8ZoDySkPdv X-Received: by 2002:a17:90a:4d08:b0:246:b450:cafe with SMTP id c8-20020a17090a4d0800b00246b450cafemr21517136pjg.30.1682516938075; Wed, 26 Apr 2023 06:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682516938; cv=none; d=google.com; s=arc-20160816; b=eVAP9DYyMZqGmfeI4yTwVv/uSdagnJCD5Q3yb6viML+k+pujXFPlVjXu1yKNcAm36U xfl1bBQ5sqZRyuxE8uPx+O4S1V2/cDjKojWURTwgBwsryuwSjr9zFbEmch8NWf+c27QX q97w1DWW2niAPaXBSuq+tvRlWo2oCK6L2M+0kl0KoW8yaTOvrBA5cxoCBOb5yfZ1nijG JTPC6G6raC72Od2u4LiA3hzT8sm+8PWrQ2CbXAwzHPsb8cHVRZ91cljpvKXowlHy2WWI grYYu2+L9p+PcAOVWal2qTwJkp9AEkpXSf6shWs6vT16r/QiDcUgWsLX+OSiRMtjjaiW d45Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fuaE+XKKlEFErPE+8vni2L7abu3/SdWT0YIm8v/cR/E=; b=lGppEm0XszT8EPCLqYtnUsdBo4Dvl4er09WiDDw6lf/K7hDY6IbPlrxpPADzwZJSBt AS7Lg3fzNpL/aQCHm8CZPz9IzH3GX4xW4oYVNidXR9OJB27Qf+WdEwEXAvJR+H33/rP2 40GVj2ZdFgSayquE+2ZYrx5DQAQUe4Je7IHKqOQYaCPdjhQtLk7JF6yhdXnUMCl1NTRm gseFy3daAB3F5wMVCyCIrHTpwLD3ZOTzh9LaMHO7iXvxs3p433B4Y3F9YAoIBDkQblzh y1SberOWFNho6VPY0FKUtObahUnlvNlY31UzUmCnCmFjpOlL5QbpcU70Ni7f6SMIrwKr u3cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=R9aJCJAj; 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=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id em17-20020a17090b015100b002467fbfc021si18470317pjb.23.2023.04.26.06.48.43; Wed, 26 Apr 2023 06:48:58 -0700 (PDT) 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=@lunn.ch header.s=20171124 header.b=R9aJCJAj; 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=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241060AbjDZNki (ORCPT + 99 others); Wed, 26 Apr 2023 09:40:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240734AbjDZNkf (ORCPT ); Wed, 26 Apr 2023 09:40:35 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 179403A8C; Wed, 26 Apr 2023 06:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=fuaE+XKKlEFErPE+8vni2L7abu3/SdWT0YIm8v/cR/E=; b=R9aJCJAj86RzbvE9pjsMecQf63 8iVudwJtxJsXtH62qpYE1dWC4xDEodX4yIVDXwIWteToCpDqn4IYQeYrfs242yU9RrPNcQSq0SmbS lYLvCKR6UJNgCifJjsyR5JrmhShE6Ryo0mw7ipFGX/IurFzZXZ/a9drhbJ9OaskE8UsE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1prfNG-00BHAd-LT; Wed, 26 Apr 2023 15:39:58 +0200 Date: Wed, 26 Apr 2023 15:39:58 +0200 From: Andrew Lunn To: Harini Katakam Cc: robh+dt@kernel.org, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, vladimir.oltean@nxp.com, wsa+renesas@sang-engineering.com, krzysztof.kozlowski+dt@linaro.org, simon.horman@corigine.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, harinikatakamlinux@gmail.com, michal.simek@amd.com, radhey.shyam.pandey@amd.com Subject: Re: [PATCH net-next v2 1/3] phy: mscc: Use PHY_ID_MATCH_VENDOR to minimize PHY ID table Message-ID: References: <20230426104313.28950-1-harini.katakam@amd.com> <20230426104313.28950-2-harini.katakam@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230426104313.28950-2-harini.katakam@amd.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 26, 2023 at 04:13:11PM +0530, Harini Katakam wrote: > All the PHY devices variants specified have the same mask and > hence can be simplified to one vendor look up for 0xfffffff0. > Any individual config can be identified by PHY_ID_MATCH_EXACT > in the respective structure. > > Signed-off-by: Harini Katakam net-next is closed at the moment, so you will need to report in two weeks time. > diff --git a/drivers/net/phy/mscc/mscc_main.c b/drivers/net/phy/mscc/mscc_main.c > index 62bf99e45af1..75d9582e5784 100644 > --- a/drivers/net/phy/mscc/mscc_main.c > +++ b/drivers/net/phy/mscc/mscc_main.c > @@ -2656,19 +2656,7 @@ static struct phy_driver vsc85xx_driver[] = { > module_phy_driver(vsc85xx_driver); > > static struct mdio_device_id __maybe_unused vsc85xx_tbl[] = { > - { PHY_ID_VSC8504, 0xfffffff0, }, > - { PHY_ID_VSC8514, 0xfffffff0, }, > - { PHY_ID_VSC8530, 0xfffffff0, }, > - { PHY_ID_VSC8531, 0xfffffff0, }, > - { PHY_ID_VSC8540, 0xfffffff0, }, > - { PHY_ID_VSC8541, 0xfffffff0, }, > - { PHY_ID_VSC8552, 0xfffffff0, }, > - { PHY_ID_VSC856X, 0xfffffff0, }, > - { PHY_ID_VSC8572, 0xfffffff0, }, > - { PHY_ID_VSC8574, 0xfffffff0, }, > - { PHY_ID_VSC8575, 0xfffffff0, }, > - { PHY_ID_VSC8582, 0xfffffff0, }, > - { PHY_ID_VSC8584, 0xfffffff0, }, > + { PHY_ID_MATCH_VENDOR(0xfffffff0) }, The vendor ID is 0xfffffff0 ??? Andrew