mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
platform: Print the resource range if device failed to claim
Sometimes we have the following error message: platform MSFT0101:00: failed to claim resource 1 acpi MSFT0101:00: platform device creation failed: -16 But there is not enough information to figure out which resource range failed to claim. Thus print the resource range at first-place thus /proc/iomem or ioports should tell us who already claimed this resource, then the driver bug or incorrect resource assignment which is running into this conflict can be diagnosed: platform MSFT0101:00: failed to claim resource 1: [mem 0xfed40000-0xfed40fff] acpi MSFT0101:00: platform device creation failed: -16 Suggested-by: Len Brown <[email protected]> Reported-by: Wendy Wang <[email protected]> Signed-off-by: Chen Yu <[email protected]> Reviewed-by: Mika Westerberg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
a0244a8df1
commit
8a18f4284e
1 changed files with 1 additions and 1 deletions
|
|
@ -396,7 +396,7 @@ int platform_device_add(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
if (p && insert_resource(p, r)) {
|
||||
dev_err(&pdev->dev, "failed to claim resource %d\n", i);
|
||||
dev_err(&pdev->dev, "failed to claim resource %d: %pR\n", i, r);
|
||||
ret = -EBUSY;
|
||||
goto failed;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue