From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Subject: Re: [PATCH v4 1/7] mdio: mux: Enhanced MDIO mux framework for integrated multiplexers Date: Mon, 6 Jun 2016 11:33:50 -0700 Message-ID: <5755C20E.5040308@gmail.com> References: <1465216900-11755-1-git-send-email-pramod.kumar@broadcom.com> <1465216900-11755-2-git-send-email-pramod.kumar@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1465216900-11755-2-git-send-email-pramod.kumar@broadcom.com> Sender: linux-kernel-owner@vger.kernel.org To: Pramod Kumar , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Kishon Vijay Abraham I , "David S. Miller" Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org On 06/06/2016 05:41 AM, Pramod Kumar wrote: > An integrated multiplexer uses same address space for > "muxed bus selection" and "generation of mdio transaction" > hence its good to register parent bus from mux driver. > > Hence added a mechanism where mux driver could register a > parent bus and pass it down to framework via mdio_mux_init api. > > Signed-off-by: Pramod Kumar Reviewed-by: Florian Fainelli > diff --git a/include/linux/mdio-mux.h b/include/linux/mdio-mux.h > index a243dbb..61f5b21 100644 > --- a/include/linux/mdio-mux.h > +++ b/include/linux/mdio-mux.h > @@ -10,11 +10,13 @@ > #ifndef __LINUX_MDIO_MUX_H > #define __LINUX_MDIO_MUX_H > #include > +#include You could have added just a forward declaration, this is a pointer to the structure so you don't need the compiler to have full knowledge of the storage type. Not a biggie. -- Florian