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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D3B7C433F5 for ; Fri, 26 Nov 2021 19:34:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238599AbhKZTiC (ORCPT ); Fri, 26 Nov 2021 14:38:02 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:54010 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbhKZTf7 (ORCPT ); Fri, 26 Nov 2021 14:35:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding: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=c/8sOzv020CXclteJsgS2hcB1lLfRSyiK7Dp8TTyBFM=; b=AK BRunmA97gXuEtGZM7SGnlyp7ZhSW5LIX4NMqmK6mjLqQiDCoVCoUIaNKHrU/DnqlS/ykVjisHpKgB hqK65SgWwm9pWxWcnS2Dpre5FKZN0CQyJbAow5SHbTEP7U/grsf+t1KDrqas0BnmXZF0HdlOhRGRl TsC57zxbglUcYco=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mqgxc-00Eivm-FB; Fri, 26 Nov 2021 20:32:40 +0100 Date: Fri, 26 Nov 2021 20:32:40 +0100 From: Andrew Lunn To: Wells Lu =?utf-8?B?5ZGC6Iqz6aiw?= Cc: Wells Lu , "davem@davemloft.net" , "kuba@kernel.org" , "robh+dt@kernel.org" , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "p.zabel@pengutronix.de" , Vincent Shih =?utf-8?B?5pa96YyV6bS7?= Subject: Re: [PATCH v2 2/2] net: ethernet: Add driver for Sunplus SP7021 Message-ID: References: <519b61af544f4c6920012d44afd35a0f8761b24f.1636620754.git.wells.lu@sunplus.com> <7cccf9f79363416ca8115a7ed9b1b7fd@sphcmbx02.sunplus.com.tw> <6c1ce569d2dd46eba8d4b0be84d6159b@sphcmbx02.sunplus.com.tw> <38e40bc4c0de409ca959bcb847c1fc96@sphcmbx02.sunplus.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 26, 2021 at 07:13:23PM +0000, Wells Lu 呂芳騰 wrote: > Hi Andrew, > > I read specification of ICPlus IP101G (10M/100M PHY). > Bits of register 0 (control) and register 1 (status) > are R/W or RO type. They will not be cleared after > read. No matter how many times they are read, the > read-back value is the same. Please read 802.3, Section 22.2.4.2: Status register (Register 1) Table 22-8 Status register bit definitions Bit 1.2 Link Status is marked as RO/LL, meaning read only Latching low. > Can we go with this approach? You need to not make any read on the PHY which Linux is driving. Configure the hardware to read on an address where there is no PHY. Andrew