Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751989AbcDPTur (ORCPT ); Sat, 16 Apr 2016 15:50:47 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:52255 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751823AbcDPTup (ORCPT ); Sat, 16 Apr 2016 15:50:45 -0400 From: Arnd Bergmann To: Kishon Vijay Abraham I Cc: Alban Bedel , linux-mips@linux-mips.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Ralf Baechle , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] phy: Add a driver for simple phy Date: Sat, 16 Apr 2016 21:50:26 +0200 Message-ID: <4848615.OezLJod6Cv@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <570F303A.6030605@ti.com> References: <1447708924-15076-1-git-send-email-albeu@free.fr> <1447708924-15076-2-git-send-email-albeu@free.fr> <570F303A.6030605@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:MWlb3iJYHvJ7+HKj+fH7epwLJFFz0/l0lV7Wcr/8tB1Zh3rlMO+ q8fCH7NoyIWszn//VK/6mUkS4H/XpoFEKZxpBDxQQePEcJy2LRX+WmlfCocIJbd7Aqwgcu5 J1JRBLTATUCKof1VGCUpy+AVJx3j1uKpnW2XUENHSOhOX+borvEJHV/0Gs0nCVrXIoMDN2X rzeWBJFlkAOtgIZDzyD6g== X-UI-Out-Filterresults: notjunk:1;V01:K0:D94fUqZv00w=:UkoadAeuSJ8JZR2OZbaE6d BKnDYgnN/ycdD/ksbe351Q5SpySEL9PV6Qw7IZObMpakGPvGIZ2nAv2FkuOTGCHPpZsQlNFxf 0IgnQVTcU/2m9i5JUwokY+s7IclyNUfUc9JH7YLUImvcHll9t75Ut48KYBDXFxpaSWUDFNS1e 1n2fxyxbVrzF4wXcKfut1zuWk5MiijhMxni2Oy5DLPPFEwvGNJ4/x7yZ3coqs0pY682Nx+Fko LWScvvsoebIDOptaa+7CIHr0W3o392o9LcWiAycGAng4yENZ0TqNPPdeTaLRjP+r3u/mAJH0Z ntV5JG6AVmHKd+OvgQyTPgRRS5ilquXHcnPyY9I/iOLkhRZnxJD+GSEjBVdcASPr3cHeQDCFt LvkkI8VBYTeWm9zESBNDqB9s4TmnTl7c05PIOVubi2neYEMVAJ/npJS3ppeKQIu+grbL4cdEU JaULWHzvd0KPN/XcnejumDD5mKkxtWI1lToBfyz+LyReZT7SRr/4d9PnObUCRTqY+46RCuSQ5 dAU17WRnNmeFaC+F9z7l6idThh4zJLCM+9i86mzvRAqQx49zxZcR9IIPQ95prdwIar540A/eT 64BtGo0dNR9isxAgQIzyTBcyagDJmmxvBZIsLZe/zV0gd249SyGArFcSxGANKClPtlzg9GPhc prImRsg92+YF9+d4kjl3aZqLo0EZ+PgiDY35eMzIdqlDzij/b7CyWL6oS58ek+Tzsru0dnrEV yzW9fQXts6b9sfK2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 969 Lines: 26 On Thursday 14 April 2016 11:22:58 Kishon Vijay Abraham I wrote: > > IMO simple-phy driver should be an independent driver and shouldn't export > symbols. The dt binding for the simple phy device should be something like > below where all the properties of the simple phy device should be in the > binding documentation. > usbphy { > compatible = "simple-phy"; > phy-supply = <&supply>; > clocks = <&clock>; > reset = <&reset>; > }; > > Anything that needs more than this shouldn't be a simple phy. I think there are two aspects here: a) I agree that a driver that matches "simple-phy" should only call the generic functions and not use any other properties. b) Independent of that, I think that it makes a lot of sense to export those functions from the generic PHY subsystems so they can be called from drivers that are a little less generic, or that already have an established binding but need no other code. Arnd