From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ovl0k-0002JR-Gx for mharc-grub-devel@gnu.org; Wed, 15 Sep 2010 01:58:26 -0400 Received: from [140.186.70.92] (port=45032 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovl0g-0002HW-9u for grub-devel@gnu.org; Wed, 15 Sep 2010 01:58:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ovl0e-0008SI-VG for grub-devel@gnu.org; Wed, 15 Sep 2010 01:58:21 -0400 Received: from smtp-out3.iol.cz ([194.228.2.91]:49859) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovl0e-0008Qk-Kq for grub-devel@gnu.org; Wed, 15 Sep 2010 01:58:20 -0400 Received: from antivir5.iol.cz (unknown [192.168.30.212]) by smtp-out3.iol.cz (Postfix) with ESMTP id DE96ABC84BB for ; Wed, 15 Sep 2010 05:58:17 +0000 (UTC) Received: from localhost (antivir5.iol.cz [127.0.0.1]) by antivir5.iol.cz (Postfix) with ESMTP id CB4A01E8036 for ; Wed, 15 Sep 2010 07:58:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at iol.cz Received: from antivir5.iol.cz ([127.0.0.1]) by localhost (antivir5.iol.cz [127.0.0.1]) (amavisd-new, port 10224) with LMTP id JoETZiOp3lLp for ; Wed, 15 Sep 2010 07:58:17 +0200 (CEST) Received: from port1.iol.cz (unknown [192.168.30.91]) by antivir5.iol.cz (Postfix) with ESMTP id 9FAB91E8031 for ; Wed, 15 Sep 2010 07:58:17 +0200 (CEST) X-SBRS: None X-SBRS-none: None X-RECVLIST: MTA-OUT-IOL X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtAHAM/8j0xVRnXk/2dsb2JhbAAHgxSBAdBdkg+ETXQE Received: from 228.117.broadband3.iol.cz (HELO [192.168.6.160]) ([85.70.117.228]) by port1.iol.cz with ESMTP; 15 Sep 2010 07:58:17 +0200 From: =?UTF-8?Q?Ale=C5=A1?= Nesrsta To: The development of GNU GRUB In-Reply-To: <1284401606.5929.3.camel@pracovna> References: <4C7519E8.90907@gmail.com> <20100826230527.GA26246@pina.cat> <4C76F58D.6020304@gmail.com> <1282995082.14285.4.camel@pracovna> <4C7AF2BB.2040606@gmail.com> <4C7AF7E1.7020204@gmail.com> <1283551348.27688.89.camel@pracovna> <1283621655.4824.25.camel@pracovna> <1284312512.5714.83.camel@pracovna> <1284378479.13334.53.camel@pracovna> <1284401606.5929.3.camel@pracovna> Content-Type: multipart/mixed; boundary="=-doEa8yCHFeppVC3DiJZe" Date: Wed, 15 Sep 2010 07:58:16 +0200 Message-Id: <1284530296.6578.24.camel@pracovna> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: [PATCH] USB serial - missing configuration X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Sep 2010 05:58:23 -0000 --=-doEa8yCHFeppVC3DiJZe Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi, I did not find configuration of USB serial device, so I made this small patch. Regards Ales --=-doEa8yCHFeppVC3DiJZe Content-Disposition: attachment; filename=usb_serial_100915_0 Content-Type: text/x-patch; name=usb_serial_100915_0; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -urB ./kbdlayouts/grub-core/bus/usb/serial/common.c ./kbdlayouts_changed/grub-core/bus/usb/serial/common.c --- ./kbdlayouts/grub-core/bus/usb/serial/common.c 2010-09-03 22:13:28.000000000 +0200 +++ ./kbdlayouts_changed/grub-core/bus/usb/serial/common.c 2010-09-14 17:09:30.000000000 +0200 @@ -44,6 +44,7 @@ struct grub_serial_port *port; int j; struct grub_usb_desc_if *interf; + grub_usb_err_t err = GRUB_USB_ERR_NONE; interf = usbdev->config[configno].interf[interfno].descif; @@ -80,7 +81,12 @@ port->out_endp = endp; } } - if (!port->out_endp || !port->in_endp) + + /* Configure device */ + if (port->out_endp && port->in_endp) + err = grub_usb_set_configuration (usbdev, configno + 1); + + if (!port->out_endp || !port->in_endp || err) { grub_free (port->name); grub_free (port); --=-doEa8yCHFeppVC3DiJZe--