Dnia 2016-10-31, o godz. 19:17:38 "Giuseppe Lippolis" <giu.lippo...@gmail.com> napisał(a):
> Hallo, > I'm completing the support for the dlink dwr-512 adding the support for 3G. > In order to enable the 3G modem the following step need to be performed: > > 1) write '1' to the gpio18 (it should switch on the modem) ucidef_add_gpio_switch in /etc/board.d/03_gpio_switches? > 2) echo '2001 7d04 ff' > /sys/bus/usb-serial/drivers/option1/new_id [...] > For the point 2. I read a potential solution is to add the cmd in > /etc/rc.local, but why don't add a line like: > static const struct usb_device_id option_ids[] = { > { USB_DEVICE(DLINK_VENDOR_ID, DLINK_PRODUCT_DWR512) }, > > In linux/drivers/usb/serial/option.c ? Yes, patch for driver should be better solution. -- Pozdrawiam, Cezary Jackiewicz _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev