Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp233620pxb; Mon, 13 Sep 2021 17:54:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypqjS+P6NxwQLLc0XdRb6dIrdI9NwHaFIzc+EHPhJp/o/u/6skkKGIvhtrZTrUM32AV2fE X-Received: by 2002:a05:6e02:4a8:: with SMTP id e8mr5631326ils.248.1631580866973; Mon, 13 Sep 2021 17:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631580866; cv=none; d=google.com; s=arc-20160816; b=EwJdnATgqQp4hlMdiDju78SwNMhm0QmvYslDzt+RsMwNkar+suRN3BMkJJkNdtr55u lHnWSwmnL0foL2Irjor9YejERc9I4ZL2EhwrDIQDfgzEFJsnYHQ1fDi9aVaxsEy6DO8S nXDGgvqzyWweTT+50/1NEaX5NADjiAek87zja7Iawpoij9l9ibm5cnaXUliDXQxr2a5M zCjkHjOixYl1vLUCanBlynCwihh8DcQi0mJRo8XZ+srPGdMcMJzXI+Xk9Vi2HBL+yiYt Lh6tmcwWvl4yeE63rD0Fxl4ntb1W2qCYSx8uxnCYijHNU6BPM6DemM0vjQFfgDlU0+f8 q2/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=5FAlYJR+L5K5/mBd9HnFp40bPv/czg5qf8z7Hb1WYVw=; b=OzPd9lIrajy8+W7BjJmxEKn4dE2fWpsTqsZmYkvvWx11ohnfVi4vRs0NbpWphDQHrW ZSZQHpJy1IQ5TZDtoEVY8FOoF2sv2zw97sgf109MCmhGY6KcNCiuyOiEShalPq3AUtNT aAIrIDqxGxhMvIEXihIx+XAB51k5yygvr5Qydh+WJVtwnobQPBNJFX0+OZW0uHlrml9T 0sJrvGheKTVPWZC2I+s89f/9Nsuw6BtHK3XGtD+kJiEOgeN07BPrVYxGukRLvO1gk5++ PeoN3hGReYs+JSNNYqIKaoIRQE+Kv6GczodXM3gnhShg5WQ/Njot9Tc/bJh/+u3R1b4L n7Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=PWXhzXJZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si9056040ioz.23.2021.09.13.17.54.16; Mon, 13 Sep 2021 17:54:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=PWXhzXJZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243189AbhIMSuq (ORCPT + 99 others); Mon, 13 Sep 2021 14:50:46 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:38868 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233322AbhIMSup (ORCPT ); Mon, 13 Sep 2021 14:50:45 -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=5FAlYJR+L5K5/mBd9HnFp40bPv/czg5qf8z7Hb1WYVw=; b=PWXhzXJZ+LIy86u9GTxMu/azsa Xezrgnl7esbVqQxEcugmLxSblI2wIzy7qPfIdahoI1FLLxjDJsvYnP0J/lUP6WmmjlAp0uaYOSexz C5YCrYF5Un2Em1vyDbJ02+ESHozfoSRpa2qt6glrq43lx9Q48DBOMbBdzfiiYi2lJ9G8=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mPr15-006RuN-Sl; Mon, 13 Sep 2021 20:49:19 +0200 Date: Mon, 13 Sep 2021 20:49:19 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: Gerhard Engleder , Vladimir Oltean , netdev , Heiner Kallweit , "David S. Miller" , Russell King , Jakub Kicinski , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH net] Revert "net: phy: Uniform PHY driver access" Message-ID: References: <20210912192805.1394305-1-vladimir.oltean@nxp.com> <20210912213855.kxoyfqdyxktax6d3@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210912213855.kxoyfqdyxktax6d3@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I am not sure why "to_phy_driver" needs cleanup. Au contraire, I think > the PHY library's usage of struct phy_device :: drv is what is strange > and potentially buggy, it is the only subsystem I know of that keeps its > own driver pointer rather than looking at struct device :: driver. There is one odd driver in the mix. Take a look at xilinx_gmii2rgmii.c. It probably could be done a better way, but that is what we have. Andrew