Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/23687
Change subject: libpayload/drivers/usb/uhci: Fix infinite loop
......................................................................
libpayload/drivers/usb/uhci: Fix infinite loop
Libpayload and the libpayload-client might not handle some USB
devices at all. The current UHCI implementation does find an unattached
device, and tries to load a driver again and again, which will not
happen for unsupported devices.
Only handle port change events, and port disconnect events, like
it's done on other HCI controllers.
Tested on Lenovo T500 using UHCI controller.
Devices are found on startup and hot(un)plugging is still working.
Change-Id: Ic652311e995e7addd807d2dda8e1c8f385a0d45c
Signed-off-by: Patrick Rudolph <siro(a)das-labor.org>
---
M payloads/libpayload/drivers/usb/uhci_rh.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/23687/1
diff --git a/payloads/libpayload/drivers/usb/uhci_rh.c b/payloads/libpayload/drivers/usb/uhci_rh.c
index e08cce1..79ad8fb 100644
--- a/payloads/libpayload/drivers/usb/uhci_rh.c
+++ b/payloads/libpayload/drivers/usb/uhci_rh.c
@@ -145,14 +145,14 @@
u16 stored, real;
stored = (RH_INST (dev)->port[0] == -1);
- real = ((uhci_reg_read16 (dev->controller, PORTSC1) & 1) == 0);
+ real = ((uhci_reg_read16(dev->controller, PORTSC1) & 8) == 0);
if (stored != real) {
usb_debug("change on port 1\n");
return 1;
}
stored = (RH_INST (dev)->port[1] == -1);
- real = ((uhci_reg_read16 (dev->controller, PORTSC2) & 1) == 0);
+ real = ((uhci_reg_read16(dev->controller, PORTSC2) & 8) == 0);
if (stored != real) {
usb_debug("change on port 2\n");
return 2;
--
To view, visit https://review.coreboot.org/23687
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: Ic652311e995e7addd807d2dda8e1c8f385a0d45c
Gerrit-Change-Number: 23687
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro(a)das-labor.org>
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/23680 )
Change subject: intel/fsp: Fix TPM initialization when vboot is disabled
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/23680/1/src/drivers/intel/fsp1_1/romstage.c
File src/drivers/intel/fsp1_1/romstage.c:
https://review.coreboot.org/#/c/23680/1/src/drivers/intel/fsp1_1/romstage.c…
PS1, Line 175: !IS_ENABLED(CONFIG_RESUME_PATH_SAME_AS_BOOT)
simply remove this line? it is always 0...
--
To view, visit https://review.coreboot.org/23680
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ic43d1aa31a296386c7eab6d997f9b701e9ea0fe5
Gerrit-Change-Number: 23680
Gerrit-PatchSet: 1
Gerrit-Owner: Youness Alaoui <snifikino(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Sat, 10 Feb 2018 08:30:27 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Matt DeVillier has posted comments on this change. ( https://review.coreboot.org/23682 )
Change subject: soc/intel/skylake: Add IOMMU support
......................................................................
Patch Set 1: Code-Review+1
verified along with 23681 on Librem13v2 running Qubes 4.0-rc4
--
To view, visit https://review.coreboot.org/23682
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifadaa11340406d1da0f98813589d20118744cc6f
Gerrit-Change-Number: 23682
Gerrit-PatchSet: 1
Gerrit-Owner: Youness Alaoui <snifikino(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Sat, 10 Feb 2018 06:31:56 +0000
Gerrit-HasComments: No
Gerrit-HasLabels: Yes