diff mbox

ssb: Fix e typo in the rev8 SPROM extraction routine

Message ID 4A855489.6010102@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Gábor Stefanik Aug. 14, 2009, 12:11 p.m. UTC
No comment. :-)

Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
---
Mark, this should fix your MAC address bug.
Anyone else testing LP-PHY should also apply this.

 drivers/ssb/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Gábor Stefanik Aug. 14, 2009, 12:40 p.m. UTC | #1
John, please fix the typo in the commit name... how ironic this is a
typo fix patch. :-)

2009/8/14 Gábor Stefanik <netrolller.3d@gmail.com>:
> No comment. :-)
>
> Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
> ---
> Mark, this should fix your MAC address bug.
> Anyone else testing LP-PHY should also apply this.
>
> drivers/ssb/pci.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
> index 50811e4..335a43f 100644
> --- a/drivers/ssb/pci.c
> +++ b/drivers/ssb/pci.c
> @@ -480,7 +480,7 @@ static void sprom_extract_r8(struct ssb_sprom *out,
> const u16 *in)
>
>        /* extract the MAC address */
>        for (i = 0; i < 3; i++) {
> -               v = in[SPOFF(SSB_SPROM1_IL0MAC) + i];
> +               v = in[SPOFF(SSB_SPROM8_IL0MAC) + i];
>                *(((__be16 *)out->il0mac) + i) = cpu_to_be16(v);
>        }
>        SPEX(country_code, SSB_SPROM8_CCODE, 0xFFFF, 0);
> --
> 1.6.2.4
>
>
>
>
Michael Buesch Aug. 14, 2009, 8:53 p.m. UTC | #2
On Friday 14 August 2009 14:11:53 Gábor Stefanik wrote:
> No comment. :-)
> 
> Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
> ---
> Mark, this should fix your MAC address bug.
> Anyone else testing LP-PHY should also apply this.
> 
>  drivers/ssb/pci.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
> index 50811e4..335a43f 100644
> --- a/drivers/ssb/pci.c
> +++ b/drivers/ssb/pci.c
> @@ -480,7 +480,7 @@ static void sprom_extract_r8(struct ssb_sprom *out, const u16 *in)
>  
>  	/* extract the MAC address */
>  	for (i = 0; i < 3; i++) {
> -		v = in[SPOFF(SSB_SPROM1_IL0MAC) + i];
> +		v = in[SPOFF(SSB_SPROM8_IL0MAC) + i];
>  		*(((__be16 *)out->il0mac) + i) = cpu_to_be16(v);
>  	}
>  	SPEX(country_code, SSB_SPROM8_CCODE, 0xFFFF, 0);

ack
diff mbox

Patch

diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
index 50811e4..335a43f 100644
--- a/drivers/ssb/pci.c
+++ b/drivers/ssb/pci.c
@@ -480,7 +480,7 @@  static void sprom_extract_r8(struct ssb_sprom *out, const u16 *in)
 
 	/* extract the MAC address */
 	for (i = 0; i < 3; i++) {
-		v = in[SPOFF(SSB_SPROM1_IL0MAC) + i];
+		v = in[SPOFF(SSB_SPROM8_IL0MAC) + i];
 		*(((__be16 *)out->il0mac) + i) = cpu_to_be16(v);
 	}
 	SPEX(country_code, SSB_SPROM8_CCODE, 0xFFFF, 0);