Re: create drivers/net/mdio and move mdio drivers into it

2017-02-23 Thread Andrew Lunn
YUAN Linyu > > Cc: Florian Fainelli; David S . Miller; netdev@vger.kernel.org; > > cug...@163.com > > Subject: Re: create drivers/net/mdio and move mdio drivers into it > > > > > Big picture is we can remove struct mii_bus, > > > > So if you remove th

RE: create drivers/net/mdio and move mdio drivers into it

2017-02-23 Thread YUAN Linyu
; Subject: Re: create drivers/net/mdio and move mdio drivers into it > > > Big picture is we can remove struct mii_bus, > > So if you remove this, how do you represent MII as a bus? It is a bus, > clause 22 allows up to 32 devices on it, and i have boards with more > than 8 devi

Re: create drivers/net/mdio and move mdio drivers into it

2017-02-23 Thread Andrew Lunn
> Big picture is we can remove struct mii_bus, So if you remove this, how do you represent MII as a bus? It is a bus, clause 22 allows up to 32 devices on it, and i have boards with more than 8 devices on the bus. Clause 44 allows many more devices on the bus. Andrew

RE: create drivers/net/mdio and move mdio drivers into it

2017-02-22 Thread YUAN Linyu
> -Original Message- > From: Andrew Lunn [mailto:and...@lunn.ch] > Sent: Wednesday, February 22, 2017 6:21 PM > To: YUAN Linyu > Cc: Florian Fainelli; David S . Miller; netdev@vger.kernel.org; cug...@163.com > Subject: Re: create drivers/net/mdio and move mdio drivers i

Re: create drivers/net/mdio and move mdio drivers into it

2017-02-22 Thread Andrew Lunn
On Wed, Feb 22, 2017 at 05:38:49AM +, YUAN Linyu wrote: > Hi Florian, > > 1. > Let's go back to original topic, > Can we move all mdio dirvers into drivers/net/mdio ? Hi Yuan Please could you explain what benefit this brings. Please also list all the downsides for such a move. As Florian

RE: create drivers/net/mdio and move mdio drivers into it

2017-02-21 Thread YUAN Linyu
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Tuesday, February 21, 2017 6:31 AM > To: YUAN Linyu; David S . Miller; Andrew Lunn > Cc: netdev@vger.kernel.org; cug...@163.com > Subject: Re: create drivers/net/mdio and

RE: create drivers/net/mdio and move mdio drivers into it

2017-02-20 Thread YUAN Linyu
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Tuesday, February 21, 2017 6:31 AM > To: YUAN Linyu; David S . Miller; Andrew Lunn > Cc: netdev@vger.kernel.org; cug...@163.com > Subject: Re: create drivers/net/mdio and

Re: create drivers/net/mdio and move mdio drivers into it

2017-02-20 Thread Florian Fainelli
ug...@163.com >> Subject: Re: create drivers/net/mdio and move mdio drivers into it >>> 4. support mdio auto probe phy device. >> >> That's already the case, even in a Device Tree enabled system if you >> omit to provide a "reg" property for child nodes, the

Re: create drivers/net/mdio and move mdio drivers into it

2017-02-20 Thread Florian Fainelli
.@gmail.com] >>>> Sent: Monday, February 20, 2017 1:42 PM >>>> To: YUAN Linyu; David S . Miller; Andrew Lunn >>>> Cc: netdev@vger.kernel.org; cug...@163.com >>>> Subject: Re: create drivers/net/mdio and move mdio drivers into it >>>>> 3. anothe

RE: create drivers/net/mdio and move mdio drivers into it

2017-02-19 Thread YUAN Linyu
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Monday, February 20, 2017 1:42 PM > To: YUAN Linyu; David S . Miller; Andrew Lunn > Cc: netdev@vger.kernel.org; cug...@163.com > Subject: Re: create drivers/net/mdio and move mdio dri

RE: create drivers/net/mdio and move mdio drivers into it

2017-02-19 Thread YUAN Linyu
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Monday, February 20, 2017 2:16 PM > To: YUAN Linyu; David S . Miller; Andrew Lunn > Cc: netdev@vger.kernel.org; cug...@163.com > Subject: Re: create drivers/net/mdio and

Re: create drivers/net/mdio and move mdio drivers into it

2017-02-19 Thread Florian Fainelli
ug...@163.com >> Subject: Re: create drivers/net/mdio and move mdio drivers into it >>> 3. another idea is bind mdio device to network device >> >> You would have to be more specific about what you want to do here. If >> the MDIO device is e.g: a switch, what

RE: create drivers/net/mdio and move mdio drivers into it

2017-02-19 Thread YUAN Linyu
> -Original Message- > From: Florian Fainelli [mailto:f.faine...@gmail.com] > Sent: Monday, February 20, 2017 1:42 PM > To: YUAN Linyu; David S . Miller; Andrew Lunn > Cc: netdev@vger.kernel.org; cug...@163.com > Subject: Re: create drivers/net/mdio and move mdio dri

Re: create drivers/net/mdio and move mdio drivers into it

2017-02-19 Thread Florian Fainelli
tion-type = "rgmii"; > }; > > mdio: mdio@fc000 { > reg = ; > }; > > >> -Original Message----- >> From: Florian Fainelli [mailto:f.faine...@gmail.com] >>

RE: create drivers/net/mdio and move mdio drivers into it

2017-02-19 Thread YUAN Linyu
ilto:f.faine...@gmail.com] > Sent: Monday, February 20, 2017 1:03 PM > To: YUAN Linyu; David S . Miller; Andrew Lunn > Cc: netdev@vger.kernel.org; cug...@163.com > Subject: Re: create drivers/net/mdio and move mdio drivers into it > > > > On 02/19/2017 04:20 PM, YUAN Linyu wro

Re: create drivers/net/mdio and move mdio drivers into it

2017-02-19 Thread Florian Fainelli
On 02/19/2017 04:20 PM, YUAN Linyu wrote: > Hi, > > I have an idea to create drivers/net/mdio and move mdio > drivers(drivers/net/phy/mdio-* | drivers/net/ethernet/xxx/mdio-yyy | ) into > it. > > Do you think it is acceptable ? What problem are you trying to fix by doin

create drivers/net/mdio and move mdio drivers into it

2017-02-19 Thread YUAN Linyu
Hi, I have an idea to create drivers/net/mdio and move mdio drivers(drivers/net/phy/mdio-* | drivers/net/ethernet/xxx/mdio-yyy | ) into it. Do you think it is acceptable ? Thanks