Re: [PATCH] USB: HWA: fix device probe failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 24, 2013 at 12:18:04PM -0500, Thomas Pugliese wrote:
> This patch fixes a race condition that caused the HWA_HC interface probe 
> function to occasionally fail.  The HWA_HC would attempt to register 
> itself with the HWA_RC by searching for a uwb_rc class device with the 
> same parent device ptr.  If the probe function for the HWA_RC interface 
> had yet to run, the uwb_rc class device would not have been created 
> causing the look up to fail and the HWA_HC probe function to return an 
> error causing the device to be unusable.  
> 
> The fix is for the HWA to delay registering with the HWA_RC until 
> receiving the command from userspace to start the wireless channel.  It is 
> the responsibility of userspace to ensure that the uwb_rc class device has 
> been created before starting the HWA channel.
> 
> diff --git a/drivers/usb/host/hwa-hc.c b/drivers/usb/host/hwa-hc.c
> index 4af750e..483990c 100644

-ENOSIGNEDOFFBY :(
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux