Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753598AbdFMQtG (ORCPT ); Tue, 13 Jun 2017 12:49:06 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:34642 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751758AbdFMQtF (ORCPT ); Tue, 13 Jun 2017 12:49:05 -0400 Subject: Re: [PATCH net-next] of_mdio: move of_mdio_parse_addr to header file To: Jon Mason , Andrew Lunn , Rob Herring , Frank Rowand Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Liviu Dudau , Michael Ellerman References: <1497365768-17627-1-git-send-email-jon.mason@broadcom.com> From: Florian Fainelli Message-ID: <23f97bac-8fdd-77e5-364d-0ea3a395d0c6@gmail.com> Date: Tue, 13 Jun 2017 09:49:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <1497365768-17627-1-git-send-email-jon.mason@broadcom.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 615 Lines: 16 On 06/13/2017 07:56 AM, Jon Mason wrote: > The of_mdio_parse_addr() helper function is useful to other code, but > the module dependency chain causes issues. To work around this, we can > move of_mdio_parse_addr() to be an inline function in the header file. > This gets rid of the dependencies and still allows for the reuse of > code. > > Reported-by: Liviu Dudau > Signed-off-by: Jon Mason > Fixes: 342fa1964439 ("mdio: mux: make child bus walking more permissive and errors more verbose") Reviewed-by: Florian Fainelli Thanks! -- Florian