Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1415365

Re: [PATCH v4 1/7] mdio: mux: Enhanced MDIO mux framework for integrated multiplexers

From Florian Fainelli <f.fainelli@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v4 1/7] mdio: mux: Enhanced MDIO mux framework for integrated multiplexers
Date 2016-06-06 20:40 +0200
Message-ID <rH7Bo-6e-15@gated-at.bofh.it> (permalink)
References <rH28F-50j-3@gated-at.bofh.it> <rH28F-50j-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <pramod.kumar@broadcom.com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>


> 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 <linux/device.h>
> +#include <linux/phy.h>

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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v4 1/7] mdio: mux: Enhanced MDIO mux framework for integrated multiplexers Pramod Kumar <pramod.kumar@broadcom.com> - 2016-06-06 14:50 +0200
  Re: [PATCH v4 1/7] mdio: mux: Enhanced MDIO mux framework for  integrated multiplexers Andrew Lunn <andrew@lunn.ch> - 2016-06-06 16:20 +0200
  Re: [PATCH v4 1/7] mdio: mux: Enhanced MDIO mux framework for  integrated multiplexers Florian Fainelli <f.fainelli@gmail.com> - 2016-06-06 20:40 +0200

csiph-web