Re: [PATCH 6/6] usb: gadget: Pass struct udevice to usb_add_gadget_udc()

2024-08-30 Thread Linus Walleij
On Mon, Aug 26, 2024 at 4:39 PM Marek Vasut wrote: > Almost every UDC driver already passes casted pointer to struct udevice > usb_add_gadget_udc(), even if the behavior is not exactly correct. That > struct udevice is at risk of being corrupted in case something modified > it in the UDC core, wh

Re: [PATCH 6/6] usb: gadget: Pass struct udevice to usb_add_gadget_udc()

2024-08-29 Thread Mattijs Korpershoek
Hi Marek, Thank you for the patch. On lun., août 26, 2024 at 16:38, Marek Vasut wrote: > Almost every UDC driver already passes casted pointer to struct udevice > usb_add_gadget_udc(), even if the behavior is not exactly correct. That > struct udevice is at risk of being corrupted in case some

[PATCH 6/6] usb: gadget: Pass struct udevice to usb_add_gadget_udc()

2024-08-26 Thread Marek Vasut
Almost every UDC driver already passes casted pointer to struct udevice usb_add_gadget_udc(), even if the behavior is not exactly correct. That struct udevice is at risk of being corrupted in case something modified it in the UDC core, which does not happen right now. Switch UDC core to use struct