Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp352049img; Thu, 28 Feb 2019 00:05:12 -0800 (PST) X-Google-Smtp-Source: AHgI3IaO0A9aVVTDZ4rcVTeZOdtf9Nxr72cxG5omSVL5VEnp5HjcQjB5MYOj9PW+0AS0vsiLqjgA X-Received: by 2002:a63:7e0e:: with SMTP id z14mr7238607pgc.436.1551341112554; Thu, 28 Feb 2019 00:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551341112; cv=none; d=google.com; s=arc-20160816; b=LaqDE7LZN8ycplkWlNXTmRhhGV2RWnvIG4EW3O1kwjZE1Zrau7ohPgjjqKN2dbUuQ5 WGym7DQyNfEV8yaXf4T7MGlSA4DGAy1+53pDfEnrZRvINKbIM0bJBnPoOPLylsTH7BrA EYNySGTIJTOMY7fsGKO5HVNm2n0+QDoDI/g3r0j6XB8o6umcYHC/qD8GWup7lFr3iVyE qb/fShOGtxdNepUaijze5hjQIvXsjEExG+ZysouIs1BjJ6BqLvRZXAVNNg7gbcGJt6UQ Get9380MgiiLBrtyArX5toMBvtnw0O+NGcnoKM+HtyzSxBgYiEQ5YYYnV3e3k3ETK9XI dvWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=2sOut2gTeCqv2k5ZCeFWMlqYNFLX+NTFC0xPO6pLSTo=; b=oL7rAe+jmf2GMV8/T/E6hUFD3L0kxaRQ9OvW+2Pu9fBeHer/Mchb78GatMZiLmlY5D njZJRlO0Nus2Oox7YE5dDTAJeyORCd5os22sl3Ov2IvvmyYQ+xDd2KDpOPcp6UUe5BqX zfLdHT0++H7t1m2jAy3YUCBgARDQmViTCumnvsYyGkZinnJVzB5vRhpVwCqup5ELW0eD EODbhBWTToFvm83tSrVe7bvfw5Rqpv0KFOSWVFjOOkaZCnuTnq8iWOav+w370Ilhu9iM BtNI3ExTZvgpelhXFcOP0fdB7+IIMvq9UlfcJbDtgweyQyr6WBBn5ZwPG3DTGLFOf9il i3SQ== 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 t70si16545010pgd.85.2019.02.28.00.04.57; Thu, 28 Feb 2019 00:05:12 -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 S1731703AbfB1Hds (ORCPT + 99 others); Thu, 28 Feb 2019 02:33:48 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:46728 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725905AbfB1Hdr (ORCPT ); Thu, 28 Feb 2019 02:33:47 -0500 Received: by mail-ot1-f66.google.com with SMTP id c18so16774295otl.13; Wed, 27 Feb 2019 23:33:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2sOut2gTeCqv2k5ZCeFWMlqYNFLX+NTFC0xPO6pLSTo=; b=BnMIyMDQ/ISAQ1FwTiF4TzyoLuvvZuU3bc/cEpKI/pIMfOwY9yZJTQQSPnCG7/b1Dd PVBrY/AxYVUspHC5C3jGhhkYFuML0uUTmLocWN0zeoEhYyXVk0NTivJnjqR3BSTKKF3P HyjeKjYDnyah69We3G8xho5dG7vcGvuUQcTQ/Wnb8nyNRA8Qb+b3hZgBmDAZyzhH5kgs OEVMvOQyort67FO+j8Z9ZvojIxqX93l0wb25eFqfnS7y3KEwd3MqBXwMm4E2C+pGcM6W EH2I8ql3TxqwL6b1ynY52jkhP5iy7F/IRlULi+p7i1MlszUjltAG7FHA9kwxScDt2Jhj mCMQ== X-Gm-Message-State: AHQUAuaD2/tbjbdtazaxYig3CmVJN2TeS7s7F487D2IjB0ImMeHb3klp xiHW0Gu/mHeV5J8eZf6BW8k3KgFfZnfuxFp/KN/V7Lc3 X-Received: by 2002:a9d:67d2:: with SMTP id c18mr5002000otn.339.1551339226560; Wed, 27 Feb 2019 23:33:46 -0800 (PST) MIME-Version: 1.0 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> <9cb2f7a8-a8cf-ef80-d260-cc67c072b5c5@xilinx.com> <8bb813fb-102b-00c9-fb6f-a3e928965051@xilinx.com> In-Reply-To: From: Harini Katakam Date: Thu, 28 Feb 2019 13:03:35 +0530 Message-ID: Subject: Re: [PATCH RESEND net] net: phy: xgmiitorgmii: Support generic PHY status read To: Michal Simek Cc: Paul Kocialkowski , Andrew Lunn , Florian Fainelli , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, "David S . Miller" , Thomas Petazzoni , Heiner Kallweit Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Feb 27, 2019 at 2:35 PM Harini Katakam wrote: > > Hi Andrew, Paul, > > On Wed, Feb 27, 2019 at 2:15 PM Michal Simek wrote: > > > > On 21. 02. 19 12:03, Michal Simek wrote: > > > On 21. 02. 19 11:24, Paul Kocialkowski wrote: > > >> Hi, > > >> > > >> On Wed, 2019-02-20 at 07:58 +0100, Michal Simek wrote: > > >>> Hi, > > >>> > > >>> On 19. 02. 19 18:25, Andrew Lunn wrote: > > >> 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. > > Thanks, I'm looking into this option and also a way to expose the correct > interface mode setting as you mentioned below. I'll get back before the > end of the week. Please do let me know if you have any further suggestions. > This IP does not have a PHY identifier or status register that can be accessed from the phy framework. We could discuss with our design team to add these in the future. But that would take sometime and this version should be still be supported. Also, if this IP has a PHY driver, then two phy drivers would have to be probed which are connected in a serial manner and I believe I'll have to update the framework to support that. Could you please let me know if you have any inputs on this? OR since this is just a bridge IP, is it acceptable to address the error cases? -> Module loading/unloading -> Spinlocks for protection -> Correct phy mode information to the driver. -> Any other concerns I could do a respin of this patch after addressing Andrew's comments: https://patchwork.kernel.org/patch/9290231/ Regards, Harini