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 about 5 years ago
- Status changed from New to Closed
commit 993e3faf6a142ae3efdd24388883264c2b56bede Author: Robert Mustacchi <email@example.com> 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 <firstname.lastname@example.org> Reviewed by: Jerry Jelinek <email@example.com> Reviewed by: Bryan Cantrill <firstname.lastname@example.org> Reviewed by: Dale Ghent <email@example.com> Reviewed by: Toomas Soome <firstname.lastname@example.org> Approved by: Richard Lowe <email@example.com>