Re: [U-Boot] [PATCH v2 04/17] dm: fdt: Correct handling of aliases with embedded digits

2014-11-23 Thread Simon Glass
On 17 November 2014 at 19:32, Tom Rini wrote: > On Mon, Nov 17, 2014 at 05:57:43AM +, Simon Glass wrote: >> Hi Tom, >> >> On 17 November 2014 00:46, Tom Rini wrote: >> > >> > On Tue, Nov 11, 2014 at 10:46:20AM -0700, Simon Glass wrote: >> > >> > > Since we scan from left to right looking for

Re: [U-Boot] [PATCH v2 04/17] dm: fdt: Correct handling of aliases with embedded digits

2014-11-17 Thread Tom Rini
On Mon, Nov 17, 2014 at 05:57:43AM +, Simon Glass wrote: > Hi Tom, > > On 17 November 2014 00:46, Tom Rini wrote: > > > > On Tue, Nov 11, 2014 at 10:46:20AM -0700, Simon Glass wrote: > > > > > Since we scan from left to right looking for the first digit, "i2c0" > > > returns > > > 2 instead

Re: [U-Boot] [PATCH v2 04/17] dm: fdt: Correct handling of aliases with embedded digits

2014-11-16 Thread Heiko Schocher
Hello Simon, Am 11.11.2014 18:46, schrieb Simon Glass: Since we scan from left to right looking for the first digit, "i2c0" returns 2 instead of 0 for the alias number. Adjust the code to scan from right to left instead. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to correct

Re: [U-Boot] [PATCH v2 04/17] dm: fdt: Correct handling of aliases with embedded digits

2014-11-16 Thread Simon Glass
Hi Tom, On 17 November 2014 00:46, Tom Rini wrote: > > On Tue, Nov 11, 2014 at 10:46:20AM -0700, Simon Glass wrote: > > > Since we scan from left to right looking for the first digit, "i2c0" returns > > 2 instead of 0 for the alias number. Adjust the code to scan from right to > > left instead. >

Re: [U-Boot] [PATCH v2 04/17] dm: fdt: Correct handling of aliases with embedded digits

2014-11-16 Thread Tom Rini
On Tue, Nov 11, 2014 at 10:46:20AM -0700, Simon Glass wrote: > Since we scan from left to right looking for the first digit, "i2c0" returns > 2 instead of 0 for the alias number. Adjust the code to scan from right to > left instead. > > Signed-off-by: Simon Glass How about i2c10 ? I assume you

[U-Boot] [PATCH v2 04/17] dm: fdt: Correct handling of aliases with embedded digits

2014-11-11 Thread Simon Glass
Since we scan from left to right looking for the first digit, "i2c0" returns 2 instead of 0 for the alias number. Adjust the code to scan from right to left instead. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to correct handling of aliases with embedded digits lib/fdtdec.c |