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>
This commit is contained in:
parent
8db23f7df6
commit
9bbc6c7d35
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user