From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 73E53C07E9B for ; Tue, 20 Jul 2021 13:02:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4F18861165 for ; Tue, 20 Jul 2021 13:02:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238009AbhGTMWB (ORCPT ); Tue, 20 Jul 2021 08:22:01 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:35928 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237684AbhGTMVv (ORCPT ); Tue, 20 Jul 2021 08:21:51 -0400 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=Xq6tVPylKNXKeoHt/pzC2ChIqzDtqVkAQQyGKozNL2Y=; b=3b+SMCZM/Hy/y+sk4ApE0INHZ4 RoM1DsVEQDi3X5axNSgN9PeMTwkhLlzhhCzI6JDE63LOkgeGRWM5TSCFlUYf3gQeexjfDCx9jx7bS ltLBDFlGusWLrgMD+mo2Fd+IOYbYDP9fzRQKryHvwJQJwqLjfGdl6yzsK0R9cubNCat8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m5pOB-00E3Jw-MF; Tue, 20 Jul 2021 15:02:23 +0200 Date: Tue, 20 Jul 2021 15:02:23 +0200 From: Andrew Lunn To: Liang Xu Cc: "hkallweit1@gmail.com" , "netdev@vger.kernel.org" , "davem@davemloft.net" , "kuba@kernel.org" , "vee.khee.wong@linux.intel.com" , "linux@armlinux.org.uk" , Hauke Mehrtens , Thomas Mohren , "mohammad.athari.ismail@intel.com" Subject: Re: [PATCH v6 2/2] net: phy: add Maxlinear GPY115/21x/24x driver Message-ID: References: <20210719053212.11244-1-lxu@maxlinear.com> <20210719053212.11244-2-lxu@maxlinear.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Jul 20, 2021 at 03:35:17AM +0000, Liang Xu wrote: > On 20/7/2021 4:48 am, Andrew Lunn wrote: > > This email was sent from outside of MaxLinear. > > > > > >> +/* PHY ID */ > >> +#define PHY_ID_GPYx15B_MASK 0xFFFFFFFC > >> +#define PHY_ID_GPY21xB_MASK 0xFFFFFFF9 > > That is an odd mask. Is that really correct? > > > > Andrew > > > Hi Andrew, > > > Yes, this is correct and has been tested. > > It's special because of a PHY ID scheme change during manufacturing. O.K. It is just a really odd mask. And putting the revision in the middle, not at the end? And none of the IDs have bit 0 set. It just all adds up to it looking wrong. So i had to ask. Andrew