From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752120AbdFPGbn (ORCPT ); Fri, 16 Jun 2017 02:31:43 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:46253 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751755AbdFPGbm (ORCPT ); Fri, 16 Jun 2017 02:31:42 -0400 Subject: Re: [PATCH 5/5] phy: bcm-ns-usb3: add MDIO driver using proper bus layer To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= References: <20170511132925.14564-1-zajec5@gmail.com> <20170511132925.14564-6-zajec5@gmail.com> <50c92818-5f96-0b9a-b631-898cc09c7349@ti.com> CC: Florian Fainelli , Yendapally Reddy Dhananjaya Reddy , Jon Mason , "linux-arm-kernel@lists.infradead.org" , bcm-kernel-feedback-list , "devicetree@vger.kernel.org" , Linux Kernel Mailing List , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= From: Kishon Vijay Abraham I Message-ID: Date: Fri, 16 Jun 2017 12:01:05 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafal, On Friday 16 June 2017 11:41 AM, Rafał Miłecki wrote: > On 16 June 2017 at 08:04, Kishon Vijay Abraham I wrote: >> On Thursday 11 May 2017 09:59 PM, Florian Fainelli wrote: >>> On 05/11/2017 06:29 AM, Rafał Miłecki wrote: >>>> @@ -297,6 +371,28 @@ static struct platform_driver bcm_ns_usb3_driver = { >>>> .of_match_table = bcm_ns_usb3_id_table, >>>> }, >>>> }; >>>> -module_platform_driver(bcm_ns_usb3_driver); >>>> + >>>> +static int __init bcm_ns_usb3_module_init(void) >>>> +{ >>>> + int err; >>>> + >>>> + err = mdio_driver_register(&bcm_ns_usb3_mdio_driver); >>>> + if (err) >>>> + return err; >>>> + >>>> + err = platform_driver_register(&bcm_ns_usb3_driver); >>>> + if (err) >>>> + mdio_driver_unregister(&bcm_ns_usb3_mdio_driver); >>>> + >>>> + return err; >>>> +} >>>> +module_init(bcm_ns_usb3_module_init); >>>> + >>>> +static void __exit bcm_ns_usb3_module_exit(void) >>>> +{ >>>> + platform_driver_unregister(&bcm_ns_usb3_driver); >>>> + mdio_driver_unregister(&bcm_ns_usb3_mdio_driver); >>>> +} >>>> +module_exit(bcm_ns_usb3_module_exit) >>> >>> Do we need to keep both platform device and mdio device registration >>> here? Do you have a depreciation time line for when we can entirely >>> switch to mdio device (assuming this is for backwards compatibility)? >> >> I too have the same question. > > My plan is to: > 1) Get this patch accepted > 2) Switch DTS files to use the new binding > 3) Maybe wait for LTS release if we care that much > 4) Drop old binding support old dt's are generally not allowed to break. So I'm not sure if we shoud ever drop old binding support. Rest sounds good. Thanks Kishon