From 003223c276c5d434b8f36f87850f8ba586e21188 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 27 Feb 2001 01:05:25 +0000 Subject: Disable the mutex locking calls. These do not work in their present form as the code calls the usb stack (which can sleep) while holding the driver lock. This leads to a deadlock. --- sys/dev/usb/if_auereg.h | 5 +++++ sys/dev/usb/if_cuereg.h | 5 +++++ sys/dev/usb/if_kuereg.h | 5 +++++ 3 files changed, 15 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/usb/if_auereg.h b/sys/dev/usb/if_auereg.h index 554409105c10..28ebf7a2fb06 100644 --- a/sys/dev/usb/if_auereg.h +++ b/sys/dev/usb/if_auereg.h @@ -249,8 +249,13 @@ struct aue_softc { struct mtx aue_mtx; }; +#if 0 #define AUE_LOCK(_sc) mtx_lock(&(_sc)->aue_mtx) #define AUE_UNLOCK(_sc) mtx_unlock(&(_sc)->aue_mtx) +#else +#define AUE_LOCK(_sc) +#define AUE_UNLOCK(_sc) +#endif #define AUE_TIMEOUT 1000 #define ETHER_ALIGN 2 diff --git a/sys/dev/usb/if_cuereg.h b/sys/dev/usb/if_cuereg.h index dc7b8c8fbc9a..3e3e1b6b485a 100644 --- a/sys/dev/usb/if_cuereg.h +++ b/sys/dev/usb/if_cuereg.h @@ -182,5 +182,10 @@ struct cue_softc { struct mtx cue_mtx; }; +#if 0 #define CUE_LOCK(_sc) mtx_lock(&(_sc)->cue_mtx) #define CUE_UNLOCK(_sc) mtx_unlock(&(_sc)->cue_mtx) +#else +#define CUE_LOCK(_sc) +#define CUE_UNLOCK(_sc) +#endif diff --git a/sys/dev/usb/if_kuereg.h b/sys/dev/usb/if_kuereg.h index b5ffb32a157f..9dac6861c35f 100644 --- a/sys/dev/usb/if_kuereg.h +++ b/sys/dev/usb/if_kuereg.h @@ -173,5 +173,10 @@ struct kue_softc { struct mtx kue_mtx; }; +#if 0 #define KUE_LOCK(_sc) mtx_lock(&(_sc)->kue_mtx) #define KUE_UNLOCK(_sc) mtx_unlock(&(_sc)->kue_mtx) +#else +#define KUE_LOCK(_sc) +#define KUE_UNLOCK(_sc) +#endif -- cgit v1.3