mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-08-11 12:26:45 +02:00
Store pointer to vendor struct, fix crash in lock.
This commit is contained in:
+2
-2
@@ -134,12 +134,12 @@ static int amd_vega10_reset(struct vendor_reset_dev *dev)
|
||||
for (timeout = 100000; timeout; --timeout)
|
||||
{
|
||||
sol = RREG32(mmMP0_SMN_C2PMSG_81);
|
||||
if (sol != 0xFFFFFFFF)
|
||||
if (sol != 0xFFFFFFFF && sol != 0)
|
||||
break;
|
||||
udelay(1);
|
||||
}
|
||||
|
||||
if (sol == 0xFFFFFFFF)
|
||||
if (!sol)
|
||||
{
|
||||
pci_warn(dev->pdev, "Vega10: Timed out waiting for SOL to be valid\n");
|
||||
return -EINVAL;
|
||||
|
||||
Reference in New Issue
Block a user