Re: [PATCH 2/2] samples: rust: add a USB driver sample

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


(追記) (追記ここまで)



Hi Greg,
[…]
>
> Sorry for the delay.
>
> But these bindings really are only for a usb interface probe/disconnect
> sequence, right? no real data flow at all?
>
> I recommend looking at the usb-skeleton.c driver, and implementing that
> as your sample driver for rust. That will ensure that you actually have
> the correct apis implemented and the reference count logic working
> properly. You have urb anchors and callbacks and other stuff as well to
> ensure that you get right. That driver pretty much should handle
> everything that you need to do to write a usb driver for any type of
> "real" device.
>
> thanks,
>
> greg k-h
I thought that an iterative approach would work here, i.e.: merge this, then
URBs, then more stuff, etc.
In any case that’s OK. I will work on the other stuff you listed here.
— Daniel

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

(追記) (追記ここまで)
Powered by Linux

AltStyle によって変換されたページ (->オリジナル) /