[PATCH] ACPI / LPSS: Don't abort acpi scan on missing mem resource.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On MacBook8's (2015) there appears to be no memory resource for the
SPI master device. Returning an error here in this case then leads to
the acpi device being ignored completely instead of just the handler
being skipped.

This isn't an issue on later MacBook(Pro)'s because their ACPI SPI
devices don't have any CID and therefore no attempt is made to install
this handler.

Returning an error was introduced in commit d3e13ff3c1aa - this restores
the original behaviour.

Signed-off-by: Ronald Tschalär <ronald@xxxxxxxxxxxxx>
---
 drivers/acpi/acpi_lpss.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index e51a1e98e62f..558fbdec5b38 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -452,7 +452,8 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
 	acpi_dev_free_resource_list(&resource_list);
 
 	if (!pdata->mmio_base) {
-		ret = -ENOMEM;
+		/* Skip the device, but continue the namespace scan. */
+		ret = 0;
 		goto err_out;
 	}
 
-- 
2.13.3

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux