Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp335906imp; Thu, 21 Feb 2019 02:25:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IaLv3eSRg2x2stpR/JJy9Vf8GcNDNH4u64ErSn0uwOc+flcb/u0JwnSM8gHBR1MkG9T9J4v X-Received: by 2002:a63:d64:: with SMTP id 36mr10608571pgn.360.1550744729718; Thu, 21 Feb 2019 02:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550744729; cv=none; d=google.com; s=arc-20160816; b=U67gsU2umqITZKu846A9zSK1/nASMGrZJR2Z+NIqTHa/3WmqHoyP8/rH2oUZhsWOHV GERLO/s1PhCZ8mqllWpVnq51ayrKoVZMl/n0w0f0v+SVl8rUCPKgdE4b0EeN7qp7jaJ3 ij7ojrcbg2EI3WMF7vPopKeqf3JJf57iHPvFL8m+Ly/TngWFHKB0tYSGMpOtzixVF7tq dR0YD9PTAmpxxd9pYK0XJ7ysS4rzbnZVjHaRC5CSUWKT3hZp+qVdYfNAVm9lrvvNb/es 1Df1W2S0x+uikSBcIEB0hJoHlo8qn/Tm0c7M1cydasnhgnbxR3TtGVr2SDyGWwp2O9kL S1mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=T2IIs9MH4JFXsKVQ6fynumy+Nj153HXfeDvegHcXj+Y=; b=ov+Kzus2ujTByBTRKa2PeO93hfO2fhSMjgWcgP2AL41pqSGYDCgTMQUkIUweR2+Mdx IJ4WqctunfNpoYIVmRmfTfiXW/aC1AHHRtCJF22rldW4v/qUYEB0hV0WobCDMIFx4l/n 7qpZ55RBmFe7D2g1UvJVoRz4uoMb+dRcVVo++e/+mKqY5mnnjYi7sA031O2wqvuNMAsf MhppqZOXfdmibke8KXFGdV91iPKNzVh57QphecAOtHAy50fwKe/wEdICQRv7NCTK/F8U NNc17eS098sfcHOtkKOyFyQgQ0E2JsYJb93s1s83Mir5oFw+qMrkAfH6N1TIAPiXmGlD szUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e74si14267162pfb.121.2019.02.21.02.25.13; Thu, 21 Feb 2019 02:25:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727664AbfBUKYw (ORCPT + 99 others); Thu, 21 Feb 2019 05:24:52 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:59841 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725932AbfBUKYv (ORCPT ); Thu, 21 Feb 2019 05:24:51 -0500 X-Originating-IP: 90.88.23.190 Received: from aptenodytes (aaubervilliers-681-1-81-190.w90-88.abo.wanadoo.fr [90.88.23.190]) (Authenticated sender: paul.kocialkowski@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 322E94000B; Thu, 21 Feb 2019 10:24:47 +0000 (UTC) Message-ID: Subject: Re: [PATCH RESEND net] net: phy: xgmiitorgmii: Support generic PHY status read From: Paul Kocialkowski To: Michal Simek , Andrew Lunn Cc: Florian Fainelli , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "David S . Miller" , Thomas Petazzoni , Heiner Kallweit Date: Thu, 21 Feb 2019 11:24:47 +0100 In-Reply-To: References: <20190215163220.20041-1-paul.kocialkowski@bootlin.com> <387ed483-b205-beda-319d-6f2b8ea55601@gmail.com> <38f6708476e9beca4583ccc2a62e238a4981b735.camel@bootlin.com> <958bb823-3dc8-607f-3c38-3d902acb85a8@gmail.com> <20190219172515.GC13075@lunn.ch> Organization: Bootlin Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, 2019-02-20 at 07:58 +0100, Michal Simek wrote: > Hi, > > On 19. 02. 19 18:25, Andrew Lunn wrote: > > > Thanks for the suggestion! So I had a closer look at that driver to try > > > and see what could go wrong and it looks like I found a few things > > > there. > > > > Hi Paul > > > > Yes, this driver has issues. If i remember correctly, it got merged > > while i was on vacation. I pointed out a few issues, but the authors > > never responded. Feel free to fix it up. > > Will be good to know who was that person. > > I can't do much this week with this because responsible person for this > driver is out of office this week. That's why please give us some time > to get back to this. Understood. I think we need to start a discussion about how the general design of this driver can be improved. In particular, I wonder if it could work better to make this driver a PHY driver that just redirects all its ops to the actual PHY driver, except for read_status where it should also add some code. Maybe we could also manage to expose a RGMII PHY mode to the actual PHY this way. Currently, the PHY mode has to be set to GMII for the MAC to be configured correctly, but the PHY also gets this information while it should be told that RGMII is in use. This doesn't seem to play a big role in PHY configuration though, but it's still inadequate. What do you think? -- Paul Kocialkowski, Bootlin Embedded Linux and kernel engineering https://bootlin.com