usba_hcdi_register() should fail if driver is using private data
The usba_hcdi_register() routine is used to register a driver with USBA as a host controller. USBA expects that it can use the ddi_set_driver_private() function for this. This means that calling drivers that use it basically will never work. Rather than silently clobbering this, we should instead fail the registration immediately.
Updated by Electric Monk over 4 years ago
- Status changed from New to Closed
commit 993e3faf6a142ae3efdd24388883264c2b56bede Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2017-03-10T18:21:18.000Z 1979 USB 3.0 support 7918 want usb_pipe_xopen(9F) 7919 usbai burst macros for endpoint descriptor are wrong 7920 usba_hcdi_register() should fail if driver is using private data 7921 failing to load the usba root hub module destroys driver parent private data 7922 want ::hubd walker 7923 ::prtusb should include version 7924 usb_*_request(9S) manual pages should match structure names Reviewed by: Patrick Mooney <email@example.com> Reviewed by: Jerry Jelinek <firstname.lastname@example.org> Reviewed by: Bryan Cantrill <email@example.com> Reviewed by: Dale Ghent <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>