From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLthr-0001D2-FH for qemu-devel@nongnu.org; Mon, 25 Aug 2014 08:49:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XLthl-0000hQ-B4 for qemu-devel@nongnu.org; Mon, 25 Aug 2014 08:49:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XLthl-0000hM-2w for qemu-devel@nongnu.org; Mon, 25 Aug 2014 08:49:01 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7PCn0u3017021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 25 Aug 2014 08:49:00 -0400 Message-ID: <1408970936.24970.17.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Mon, 25 Aug 2014 14:48:56 +0200 In-Reply-To: <1408102357-914-2-git-send-email-armbru@redhat.com> References: <1408102357-914-1-git-send-email-armbru@redhat.com> <1408102357-914-2-git-send-email-armbru@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/2] usb: Fix bootindex for portnr > 9 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: kwolf@redhat.com, lersek@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Fr, 2014-08-15 at 13:32 +0200, Markus Armbruster wrote: > We identify devices by their Open Firmware device paths. The encoding > of the host controller and hub port numbers is incorrect: > usb_get_fw_dev_path() formats them in decimal, while SeaBIOS uses > hexadecimal. When some port number > 9, SeaBIOS will miss the > bootindex (lucky case), or apply it to another device (unlucky case). > > The relevant spec[*] agrees with SeaBIOS (and OVMF, for that matter). > Change %d to %x. > > Bug can bite only with host controllers or hubs sporting more than ten > ports. I'm not aware of any. fyi: xhci can be configured with up to 15 ports (default is 4 ports though). Applied to usb patch queue. thanks, Gerd