Thank you, scott! That was indeed the problem.

On 6/13/17, 4:54 PM, "[email protected]" <[email protected]> wrote:

    Hi Brant,
    
    It sounds like you may still be matching against IOUSBInterface or 
IOUSBDevice classes; have you updated your plist's matching personality to 
match on IOUSBHostInterface or IOUSBHostDevice?
    
    Thanks,
    —scott
    
    > On Jun 13, 2017, at 2:49 PM, Brant Merryman <[email protected]> 
wrote:
    > 
    > Hi. I'm working on updating a USB serial driver. I want to update it to 
use the new IOUSBHost classes. We have a driver class that derives from 
IOSerialDriverSync. In the existing driver, we override the start method which 
takes an IOService and use OSDynamicCast to get an IOUSBInterface. I expected 
that I could call OSDyanamicCast(IOUSBHostInterface, provider) and get an 
IOUSBHostInterface. However, this does not work (returns NULL). I tried getting 
other interfaces such as IOUSBHostDevice and a few others, but alas they all 
returned NULL.
    > 
    > Is there a way to print out the derived class?
    > 
    > Why has this behavior changed? Is there documentation that details what 
has changed with these APIs to help me understand how to fix this? I only see a 
limited amount of information in the header files.
    > 
    > Thanks.
    > 
    > 
    > _______________________________________________
    > Do not post admin requests to the list. They will be ignored.
    > Usb mailing list      ([email protected])
    > Help/Unsubscribe/Update your Subscription:
    > https://lists.apple.com/mailman/options/usb/sdeandrea%40apple.com
    > 
    > This email sent to [email protected]
    
    

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/usb/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to