Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1227882ybl; Tue, 13 Aug 2019 09:15:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuAJe6D8P1sBPdrdOSaTKwYIUtDrvxVRN/0uK0ohve2Tg4Ak8OqkEesDMIXRh9I2OOUHz0 X-Received: by 2002:a17:90a:8081:: with SMTP id c1mr1042335pjn.62.1565712932310; Tue, 13 Aug 2019 09:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565712932; cv=none; d=google.com; s=arc-20160816; b=i5PpYz7I0ZVkgXE1mxgRSPQQjlRs6ajJBQy46YZRsQiN5q95iK2PoYshh0TkhJykpV PNaczX89m0nLYhnjG4i/ODfVE0GR0++cuIr2ObI1vJHDn2GsYvfku6IpzcwYwTY2JXvx U0m2oiHDPSTDXvmeDZlmiaU/EmwLZq25xPsV7EcJd9t9ZlW2gkuHffk+4mxN55L+7DTv EPrV7hiiw9uGRRGzcUqgFgU6o4qypTGOGmrdLDWAJ9kCpIUhBYkQUzcReSrrtK0rXOUp F6VTAtKB8VohXZWSODwwWhvgm5L8NXUcY3iif5L2E7IRyKfi0M6AvcXSQ68XSiQMRfy1 Pfew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=BJYOCOgG3vSFD6B2/NaAeHaq/xMvIZnICqXhFcn1r2g=; b=l5omCp/P4OMAYa2qw2rIHs7TIZw1G3VrbEyZJ1YHlpt8wVa49iQPjEkfUOlJSBrR3n kQxVTFCkt2Jn5gEKvHbHOXomKjTA8ayuXc4g521Fvz34MTUIH7R+wvjBL8JC9q7o+VZa amp5XnXCp/XE/ATw5dXr3WGyG1O4eRnDRkFQV1edJ1WNUUq1RaEYmCpFZWy7abuSDoo+ Z5EyetJ0OcWE9KIGzBBIcSq2CyNp2gPCDfsMBj5adn1O4t2LoE3A0m+cPx4fOK+qlgJa qEtp8xVtd/vNgNcGKLzlXFn37pIYRTvM3TjQC16kJMmRIeERmdl026kCpiZD3MekIz1K 3faw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=SrBu8AYa; 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 f7si7294258pfq.93.2019.08.13.09.15.16; Tue, 13 Aug 2019 09:15:32 -0700 (PDT) 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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=SrBu8AYa; 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 S1729497AbfHMPi1 (ORCPT + 99 others); Tue, 13 Aug 2019 11:38:27 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:57238 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728535AbfHMPi1 (ORCPT ); Tue, 13 Aug 2019 11:38:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BJYOCOgG3vSFD6B2/NaAeHaq/xMvIZnICqXhFcn1r2g=; b=SrBu8AYaayxZtoAvX73LOWV53W T30rx8Yp718aJXL83KUA1lrCEW1ZrAbyOCuuhybNrVEaIkILwcAOzqx69S859eUT3ouinPFsNGR77 A7UlK8svth/iQczY5jhEFoTPqXqCITyi7pPix70VltvRCfq9gnp4Iq7SS8pNZMUXIovY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hxYsO-0002VJ-T4; Tue, 13 Aug 2019 17:38:20 +0200 Date: Tue, 13 Aug 2019 17:38:20 +0200 From: Andrew Lunn To: Harini Katakam Cc: Harini Katakam , Florian Fainelli , Heiner Kallweit , David Miller , Michal Simek , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, radhey.shyam.pandey@xilinx.com Subject: Re: [PATCH 2/2] net: gmii2rgmii: Switch priv field in mdio device structure Message-ID: <20190813153820.GY14290@lunn.ch> References: <1564565779-29537-1-git-send-email-harini.katakam@xilinx.com> <1564565779-29537-3-git-send-email-harini.katakam@xilinx.com> <20190801040648.GJ2713@lunn.ch> <20190813132321.GF15047@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > The kernel does have a few helper, spi_get_drvdata, pci_get_drvdata, > > hci_get_drvdata. So maybe had add phydev_get_drvdata(struct phy_device > > *phydev)? > > Maybe phydev_mdio_get_drvdata? Because the driver data member available is > phydev->mdio.dev.driver_data. I still prefer phydev_get_drvdata(). It fits with the X_get_drvdata() pattern, where X is the type of parameter passed to the call, spi, pci, hci. We can also add mdiodev_get_drvdata(mdiodev). A few DSA drivers could use that. Andrew