Am 09.08.2013 21:32, schrieb Alan Stern:
On Fri, 9 Aug 2013, Oleksij Rempel wrote:
Is there any way to prevent the device from losing its firmware during
a USB reset or suspend?
For suspend - yes. It is possible to ignore suspend command or put the
SoC in low power mode - but is it probably not so easy to bring it back.
I would need to read more code and create some doc as side effect untill
i understand how it works.
I'm not sure how about reset command. I would need more testing and some
ones help. If i see it correctly, usb reset should affect only usb core
and usb pll.
How can i trigger usb reset?
http://marc.info/?l=linux-usb&m=121459435621262&w=2
Give the program the pathname for the USB device node. For example:
usbreset /dev/bus/usb/001/004
Great! thx!
usb reset do not affect behaviour of firmware. At least after i remove
all attempts to reboot FW from driver.
If adapter will got reset signal, FW will be notified about it. Then FW
will remove reset flag and will just continue to work. After usb reset,
lsusb show correct, update information - EP3 and EP4 was updated from
INT to BULK.
I assume, no i need to add to the driver some kind of firmware check.
What is the proper way to do it?
--
Regards,
Oleksij
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html