All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Broken USB support for Linux host
Date: Tue, 21 Oct 2008 08:39:05 -0500	[thread overview]
Message-ID: <48FDDB79.20901@codemonkey.ws> (raw)
In-Reply-To: <yqfr66co47j.fsf@knights-who-say-ni>

Bjorn Danielsson wrote:
> Hello everyone, this is a bug report with a suggested patch included.
>
> Summary: usb_host_scan() in usb-linux.c doesn't handle the logic
> correctly when looking for different places to find bus/usb/devices.
>
> Environment: qemu revision 5499 on slamd64 (slackware) 12.1
>
> Symptom: no "host:" usb devices are available at all on any system
> where /proc/bus/usb/devices exists.
>
> Diagnosis: the else clause for the USB_FS_SYS case is wrong.
>   

Thanks for narrowing this down.

Please include a Signed-off-by so we can include your patch.

Regards,

Anthony Liguori

> Solution:
>
> ---cut-here--------------
> Index: usb-linux.c
> ===================================================================
> --- usb-linux.c	(revision 5499)
> +++ usb-linux.c	(working copy)
> @@ -1293,7 +1293,8 @@
>              usb_fs_type = USB_FS_SYS;
>              closedir(dir);
>              dprintf(opened, USBSYSBUS_PATH, devices);
> -        } else {
> +        }
> +        if (!usb_fs_type) {
>              term_printf("husb: unable to access USB devices\n");
>              goto the_end;
>          }
>
> ---cut-here--------------
>
>   

  reply	other threads:[~2008-10-21 13:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-19 18:00 [Qemu-devel] Broken USB support for Linux host Bjorn Danielsson
2008-10-21 13:39 ` Anthony Liguori [this message]
2008-10-21 14:50   ` [Qemu-devel] [PATCH] Fix broken " Bjorn Danielsson
2008-10-21 15:53     ` Bjorn Danielsson
2008-10-21 16:17       ` Bjorn Danielsson
2008-10-21 16:34       ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48FDDB79.20901@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.