mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
octeon_ep: explicitly test for firmware ready value
[ Upstream commit284f717622] The firmware ready value is 1, and get firmware ready status function should explicitly test for that value. The firmware ready value read will be 2 after driver load, and on unbind till firmware rewrites the firmware ready back to 0, the value seen by driver will be 2, which should be regarded as not ready. Fixes:10c073e404("octeon_ep: defer probe if firmware not ready") Signed-off-by: Shinas Rasheed <srasheed@marvell.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
15f300ed1d
commit
6047060105
|
|
@ -1076,7 +1076,8 @@ static bool get_fw_ready_status(struct pci_dev *pdev)
|
|||
|
||||
pci_read_config_byte(pdev, (pos + 8), &status);
|
||||
dev_info(&pdev->dev, "Firmware ready status = %u\n", status);
|
||||
return status;
|
||||
#define FW_STATUS_READY 1ULL
|
||||
return status == FW_STATUS_READY;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user