[coreboot-gerrit] Change in coreboot[master]: drivers/intel/wifi: Skip adding SSDT entry if device is disabled

Furquan Shaikh (Code Review) gerrit at coreboot.org
Wed Aug 8 22:40:36 CEST 2018


Furquan Shaikh has uploaded this change for review. ( https://review.coreboot.org/27962


Change subject: drivers/intel/wifi: Skip adding SSDT entry if device is disabled
......................................................................

drivers/intel/wifi: Skip adding SSDT entry if device is disabled

This change checks to ensure that device is enabled before adding
entry into SSDT.

BUG=b:112371978

Change-Id: Ibe4811bef8cf0978b7a82d66a32f96247b9c823d
Signed-off-by: Furquan Shaikh <furquan at google.com>
---
M src/drivers/intel/wifi/wifi.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/62/27962/1

diff --git a/src/drivers/intel/wifi/wifi.c b/src/drivers/intel/wifi/wifi.c
index 4b96a02..df425fa 100644
--- a/src/drivers/intel/wifi/wifi.c
+++ b/src/drivers/intel/wifi/wifi.c
@@ -198,7 +198,7 @@
 	const char *path = acpi_device_path(dev->bus->dev);
 	u32 address;
 
-	if (!path)
+	if (!path || !dev->enabled)
 		return;
 
 	/* Device */

-- 
To view, visit https://review.coreboot.org/27962
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibe4811bef8cf0978b7a82d66a32f96247b9c823d
Gerrit-Change-Number: 27962
Gerrit-PatchSet: 1
Gerrit-Owner: Furquan Shaikh <furquan at google.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180808/0e494503/attachment.html>


More information about the coreboot-gerrit mailing list