Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43256 )
Change subject: drivers/usb/ehci_debug.c: Drop dead code ......................................................................
drivers/usb/ehci_debug.c: Drop dead code
This code is not even being build-tested. Drop it before it grows moss.
Change-Id: I27e4d66a1c8e2ed0eb5152f6bd56cc3fec2dea8e Signed-off-by: Angel Pons th3fanbus@gmail.com --- M src/drivers/usb/ehci_debug.c 1 file changed, 0 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/43256/1
diff --git a/src/drivers/usb/ehci_debug.c b/src/drivers/usb/ehci_debug.c index 739e599..28c935b 100644 --- a/src/drivers/usb/ehci_debug.c +++ b/src/drivers/usb/ehci_debug.c @@ -563,13 +563,6 @@ } dprintk(BIOS_INFO, "EHCI debug port enabled.\n");
-#if 0 - /* Completely transfer the debug device to the debug controller */ - portsc = read32(&ehci_regs->port_status[debug_port - 1]); - portsc &= ~PORT_PE; - write32(&ehci_regs->port_status[debug_port - 1], portsc); -#endif - dbgp_mdelay(100);
struct ehci_dbg_port *port = (void *)(uintptr_t)info->ehci_debug; @@ -603,8 +596,6 @@ goto try_next_time; } #else - if (0) - goto try_next_port; if (--playtimes) goto try_next_time; #endif
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43256 )
Change subject: drivers/usb/ehci_debug.c: Drop dead code ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43256/3/src/drivers/usb/ehci_debug.... File src/drivers/usb/ehci_debug.c:
https://review.coreboot.org/c/coreboot/+/43256/3/src/drivers/usb/ehci_debug.... PS3, Line 607: goto try_next_port; Does this still build with USBDEBUG_DEFAULT_PORT!=0 (user visible option). I think it threw errors of unused label or something like that. Should be easy to do #if/if () conversion here.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43256 )
Change subject: drivers/usb/ehci_debug.c: Drop dead code ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43256/3/src/drivers/usb/ehci_debug.... File src/drivers/usb/ehci_debug.c:
https://review.coreboot.org/c/coreboot/+/43256/3/src/drivers/usb/ehci_debug.... PS3, Line 607: goto try_next_port;
Does this still build with USBDEBUG_DEFAULT_PORT!=0 (user visible option). […]
No, it doesn't. Looks like we have an uncovered codepath
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43256
to look at the new patch set (#4).
Change subject: drivers/usb/ehci_debug.c: Drop dead code ......................................................................
drivers/usb/ehci_debug.c: Drop dead code
This code is not even being build-tested. Drop it before it grows moss.
Change-Id: I27e4d66a1c8e2ed0eb5152f6bd56cc3fec2dea8e Signed-off-by: Angel Pons th3fanbus@gmail.com --- M src/drivers/usb/ehci_debug.c 1 file changed, 0 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/43256/4
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43256 )
Change subject: drivers/usb/ehci_debug.c: Drop dead code ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43256/3/src/drivers/usb/ehci_debug.... File src/drivers/usb/ehci_debug.c:
https://review.coreboot.org/c/coreboot/+/43256/3/src/drivers/usb/ehci_debug.... PS3, Line 607: goto try_next_port;
No, it doesn't. […]
Done and CB:43295
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43256 )
Change subject: drivers/usb/ehci_debug.c: Drop dead code ......................................................................
Patch Set 4: Code-Review+1
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43256 )
Change subject: drivers/usb/ehci_debug.c: Drop dead code ......................................................................
Patch Set 4: Code-Review+2
Angel Pons has submitted this change. ( https://review.coreboot.org/c/coreboot/+/43256 )
Change subject: drivers/usb/ehci_debug.c: Drop dead code ......................................................................
drivers/usb/ehci_debug.c: Drop dead code
This code is not even being build-tested. Drop it before it grows moss.
Change-Id: I27e4d66a1c8e2ed0eb5152f6bd56cc3fec2dea8e Signed-off-by: Angel Pons th3fanbus@gmail.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/43256 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Kyösti Mälkki kyosti.malkki@gmail.com Reviewed-by: Michael Niewöhner --- M src/drivers/usb/ehci_debug.c 1 file changed, 0 insertions(+), 7 deletions(-)
Approvals: build bot (Jenkins): Verified Kyösti Mälkki: Looks good to me, but someone else must approve Michael Niewöhner: Looks good to me, approved
diff --git a/src/drivers/usb/ehci_debug.c b/src/drivers/usb/ehci_debug.c index 739e599..5af8e2e 100644 --- a/src/drivers/usb/ehci_debug.c +++ b/src/drivers/usb/ehci_debug.c @@ -563,13 +563,6 @@ } dprintk(BIOS_INFO, "EHCI debug port enabled.\n");
-#if 0 - /* Completely transfer the debug device to the debug controller */ - portsc = read32(&ehci_regs->port_status[debug_port - 1]); - portsc &= ~PORT_PE; - write32(&ehci_regs->port_status[debug_port - 1], portsc); -#endif - dbgp_mdelay(100);
struct ehci_dbg_port *port = (void *)(uintptr_t)info->ehci_debug;