diff options
author | Ganesan Ramalingam <ganesanr@broadcom.com> | 2015-01-07 06:28:24 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-04-01 11:21:48 -0400 |
commit | 9bbc6c7d35e2b3370e5e447f3d165892882d35a8 (patch) | |
tree | f7098410c4b4501d9b1f3d1c6b8f1c7f6c98ff13 | |
parent | 8db23f7df6be572d816f0d056fec16c954d3bdf6 (diff) |
MIPS: Netlogic: Fix cop0 prid check in AHCI init
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>
-rw-r--r-- | arch/mips/netlogic/xlp/ahci-init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/netlogic/xlp/ahci-init.c b/arch/mips/netlogic/xlp/ahci-init.c index a9d0fae02103..92be1a3258b1 100644 --- a/arch/mips/netlogic/xlp/ahci-init.c +++ b/arch/mips/netlogic/xlp/ahci-init.c | |||
@@ -151,7 +151,7 @@ static void nlm_sata_firmware_init(int node) | |||
151 | static int __init nlm_ahci_init(void) | 151 | static int __init nlm_ahci_init(void) |
152 | { | 152 | { |
153 | int node = 0; | 153 | int node = 0; |
154 | int chip = read_c0_prid() & PRID_REV_MASK; | 154 | int chip = read_c0_prid() & PRID_IMP_MASK; |
155 | 155 | ||
156 | if (chip == PRID_IMP_NETLOGIC_XLP3XX) | 156 | if (chip == PRID_IMP_NETLOGIC_XLP3XX) |
157 | nlm_sata_firmware_init(node); | 157 | nlm_sata_firmware_init(node); |