Re: [PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-10 Thread Ming Lei
On Thu, Oct 10, 2013 at 8:47 PM, Dan Murphy wrote: > > Is there a board that has 2 built in smsc devices? I don't know, maybe there isn't, but driver should be generic enough, and as I said it is a generic problem, and people are discussing it, so suggest to read previous discussions first before

Re: [PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-10 Thread Dan Murphy
On 10/10/2013 07:39 AM, Ming Lei wrote: > On Thu, Oct 10, 2013 at 8:08 PM, Dan Murphy wrote: >> You are correct I don't expect a match for PnP devices only devices that are >> hard wired. >> >> After thinking of it I should move the OF code below the EEPROM code as the >> EEPROM should take pref

Re: [PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-10 Thread Ming Lei
On Thu, Oct 10, 2013 at 8:08 PM, Dan Murphy wrote: > > You are correct I don't expect a match for PnP devices only devices that are > hard wired. > > After thinking of it I should move the OF code below the EEPROM code as the > EEPROM should take preference over the DT code. > > I will need to p

Re: [PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-10 Thread Dan Murphy
Ming On 10/07/2013 06:42 AM, Ming Lei wrote: > On Mon, Oct 7, 2013 at 1:31 AM, Dan Murphy wrote: >> On 10/06/2013 10:05 AM, Ming Lei wrote: >>> On Sat, Oct 5, 2013 at 2:25 AM, Dan Murphy wrote: If the smsc95xx does not have a valid MAC address stored within the eeprom then a random num

Re: [PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-07 Thread Dan Murphy
On 10/07/2013 06:42 AM, Ming Lei wrote: > On Mon, Oct 7, 2013 at 1:31 AM, Dan Murphy wrote: >> On 10/06/2013 10:05 AM, Ming Lei wrote: >>> On Sat, Oct 5, 2013 at 2:25 AM, Dan Murphy wrote: If the smsc95xx does not have a valid MAC address stored within the eeprom then a random number is

Re: [PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-07 Thread Ming Lei
On Mon, Oct 7, 2013 at 1:31 AM, Dan Murphy wrote: > On 10/06/2013 10:05 AM, Ming Lei wrote: >> On Sat, Oct 5, 2013 at 2:25 AM, Dan Murphy wrote: >>> If the smsc95xx does not have a valid MAC address stored within >>> the eeprom then a random number is generated. The MAC can also >>> be set by uB

Re: [PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-06 Thread Dan Murphy
On 10/06/2013 10:05 AM, Ming Lei wrote: > On Sat, Oct 5, 2013 at 2:25 AM, Dan Murphy wrote: >> If the smsc95xx does not have a valid MAC address stored within >> the eeprom then a random number is generated. The MAC can also >> be set by uBoot but the smsc95xx does not have a way to read this. >>

Re: [PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-06 Thread Ming Lei
On Sat, Oct 5, 2013 at 2:25 AM, Dan Murphy wrote: > If the smsc95xx does not have a valid MAC address stored within > the eeprom then a random number is generated. The MAC can also > be set by uBoot but the smsc95xx does not have a way to read this. > > Create the binding for the smsc95xx so that

[PATCH] usbnet: smsc95xx: Add device tree input for MAC address

2013-10-04 Thread Dan Murphy
If the smsc95xx does not have a valid MAC address stored within the eeprom then a random number is generated. The MAC can also be set by uBoot but the smsc95xx does not have a way to read this. Create the binding for the smsc95xx so that uBoot can set the MAC and the code can retrieve the MAC fro