From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753072AbdA3WrB (ORCPT ); Mon, 30 Jan 2017 17:47:01 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36070 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752235AbdA3Wq7 (ORCPT ); Mon, 30 Jan 2017 17:46:59 -0500 Subject: Re: [PATCH net-next v3 06/10] net: dsa: Migrate to device_find_class() To: Greg KH References: <20170115173949.GA19268@kroah.com> <20170115191632.GD5643@lunn.ch> <912e6143-c67a-d909-2a6c-939de79efc5d@gmail.com> <20170119142820.GA494@kroah.com> <20170119145315.GD21805@lunn.ch> <20170119165155.GH27312@n2100.armlinux.org.uk> <841dc133-e9af-e7ca-75bf-8371337d6281@gmail.com> <20170125212500.GA6052@kroah.com> Cc: Russell King - ARM Linux , Andrew Lunn , netdev@vger.kernel.org, Jason Cooper , Sebastian Hesselbarth , Gregory Clement , Vivien Didelot , "David S. Miller" , "moderated list:ARM SUB-ARCHITECTURES" , open list From: Florian Fainelli Message-ID: Date: Mon, 30 Jan 2017 14:46:40 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <20170125212500.GA6052@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/25/2017 01:25 PM, Greg KH wrote: > On Tue, Jan 24, 2017 at 10:59:15AM -0800, Florian Fainelli wrote: >> On 01/19/2017 10:12 AM, Florian Fainelli wrote: >>> >>> Back to the actual code that triggered this discussion, the whole >>> purpose is just a safeguard. Given a device reference, we can assume >>> that it is indeed the backing device for a net_device, and we could do a >>> to_net_device() right away (and crash if someone did not write correct >>> platform_data structures), or, by walking the device tree (the device >>> driver model one) we can make sure it does belong in the proper class >>> and this is indeed what we think it is. >> >> Greg, did Russell's explanation clarify things, or do you still think >> this is completely bogus and we need to re design the whole thing? >> >> Just asking so I can try to resubmit just the preparatory parts or just >> the whole thing. > > Sorry, I haven't gotten back to this, it's lower on my list. Should try > to get to it tomorrow... Greg, please give some feedback here, I can only produce new patches as fast as I am given feedback, and I would really hate to miss the 4.11 merge window because we have been sleeping on this. If there is a need to clarify things, I will be more than happy to try to provide information. Thank you! -- Florian