MIPS: Netlogic: Fix cop0 prid check in AHCI init
authorGanesan Ramalingam <ganesanr@broadcom.com>
Wed, 7 Jan 2015 11:28:24 +0000 (16:58 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:48 +0000 (17:21 +0200)
PRID register should be masked with IMP_MASK to get processor ID.

Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com>
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8883/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/netlogic/xlp/ahci-init.c

index a9d0fae02103653ea10a4f51cd797bb2c8e15ae4..92be1a3258b1615697607d951dd1045469bad36e 100644 (file)
@@ -151,7 +151,7 @@ static void nlm_sata_firmware_init(int node)
 static int __init nlm_ahci_init(void)
 {
        int node = 0;
-       int chip = read_c0_prid() & PRID_REV_MASK;
+       int chip = read_c0_prid() & PRID_IMP_MASK;
 
        if (chip == PRID_IMP_NETLOGIC_XLP3XX)
                nlm_sata_firmware_init(node);