MFNetBSD.
rev. 1.68, author: mycroft Ignore a port error that happens to come in at the same time as a connect status change. Some root hubs seem to report both. Obtained from: NetBSD
This commit is contained in:
parent
862b46f607
commit
c88e858068
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131422
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: uhub.c,v 1.64 2003/02/08 03:32:51 ichiro Exp $ */
|
||||
/* $NetBSD: uhub.c,v 1.68 2004/06/29 06:30:05 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -381,7 +381,10 @@ uhub_explore(usbd_device_handle dev)
|
||||
if (change & UPS_C_PORT_ENABLED) {
|
||||
DPRINTF(("uhub_explore: C_PORT_ENABLED\n"));
|
||||
usbd_clear_port_feature(dev, port, UHF_C_PORT_ENABLE);
|
||||
if (status & UPS_PORT_ENABLED) {
|
||||
if (change & UPS_C_CONNECT_STATUS) {
|
||||
/* Ignore the port error if the device
|
||||
vanished. */
|
||||
} else if (status & UPS_PORT_ENABLED) {
|
||||
printf("%s: illegal enable change, port %d\n",
|
||||
USBDEVNAME(sc->sc_dev), port);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user