qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jason Wessel <jason.wessel@windriver.com>
To: TJ <linux@tjworld.net>
Cc: qemu-devel@nongnu.org, kvm <kvm@vger.kernel.org>
Subject: [Qemu-devel] Re: [PATCH] Add USB sys file-system support (v3)
Date: Mon, 08 Sep 2008 09:47:32 -0500	[thread overview]
Message-ID: <48C53B04.9030006@windriver.com> (raw)
In-Reply-To: <1220649226.9611.13.camel@hephaestion>

TJ,

The v3 usb patch looks good to me and works well.  When used in
conjunction with ioctl() work around I mentioned before, I was able to
use QEMU to quickly find and fix a 2 different 2.6.27 usb serial
regressions. :-)

It would be great to push this into the qemu development tree.

I see two minor problems with your patch for pushing it into the qemu
development tree.

1) Some white space issues
     - In the patch it has mixed spaces and tabs
     - The tabs should be 8 spaces
     - This qemu source file has the standard 4 space indentation

2) Minor printf() clean ups

   The printf() on line 614 should be a dprintf()  IE:

     printf("husb: open device %d.%d\n", bus_num, addr);

   - I realize this was not one that you added in your patch,
     but I looked at the call stack to see the prior ways this
     was used, all the messages of this type were dprintf()
     This comment is also based on the printf() you added
     later in the same function.
   
   The printf() on line 627 should be a term_printf() assuming
   you deem it is important to provide this up to the end user.  IE:

     printf("husb: config #%d need %d\n", dev->descr[i + 5], configuration);


Reviewed-by: Jason Wessel <jason.wessel@windriver.com>

Fixing those two minor issues, I would consider the patch ready to commit.

Cheers,
Jason.


TJ wrote:
>
> =======
>
> This patch adds support for host USB devices discovered via:
>
> /sys/bus/usb/devices/* and opened from /dev/bus/usb/*/*
> /dev/bus/usb/devices and opened from /dev/bus/usb/*/*
>
> in addition to the existing discovery via:
>
> /proc/bus/usb/devices and opened from /proc/bus/usb/*/*
>
> Signed-off-by: TJ <linux@tjworld.net>
> ---
>  qemu/usb-linux.c |  369
+++++++++++++++++++++++++++++++++++++++++++-----------
>  1 files changed, 294 insertions(+), 75 deletions(-)

  reply	other threads:[~2008-09-08 14:47 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-04 23:35 [Qemu-devel] [PATCH] Add USB sys file-system support TJ
2008-09-05  2:06 ` [Qemu-devel] [PATCH] Add USB sys file-system support (v2) TJ
2008-09-05 13:30   ` Jason Wessel
2008-09-05 18:51     ` TJ
2008-09-05 19:19       ` Jason Wessel
2008-09-05 20:28         ` TJ
2008-09-05 20:54           ` Jason Wessel
2008-09-05 21:13         ` [Qemu-devel] [PATCH] Add USB sys file-system support (v3) TJ
2008-09-08 14:47           ` Jason Wessel [this message]
2008-09-17 19:31             ` [Qemu-devel] [PATCH] Add USB sys file-system support (v4) TJ
2008-09-17 20:31               ` [Qemu-devel] " Anthony Liguori
2008-09-17 22:47                 ` [Qemu-devel] [PATCH] Add USB sys file-system support (v5) TJ
2008-09-22 19:47                   ` Rick Vernam
2008-09-22 22:38                     ` Anthony Liguori
2008-09-25 17:34                       ` Rick Vernam
2008-09-25 17:45                         ` Anthony Liguori
2008-09-22 22:37                   ` [Qemu-devel] " Anthony Liguori
2008-09-23  1:23                     ` TJ
2008-09-23  1:33                     ` [Qemu-devel] [PATCH] Add USB sys file-system support (v6) TJ
2008-09-25 17:45                       ` [Qemu-devel] " Anthony Liguori
2008-09-26 13:57                         ` Jason Wessel
2008-09-26 14:27                           ` Anthony Liguori
2008-09-26 14:35                             ` Robert Riebisch
2008-09-26 14:37                               ` Anthony Liguori
2008-09-26 15:13                             ` Jason Wessel
2008-09-26 15:37                               ` Anthony Liguori
2008-09-30 20:53                                 ` TJ
2008-10-01 21:21                       ` [Qemu-devel] [PATCH] Add USB sys file-system support (v7) TJ
2008-10-01 23:19                         ` [Qemu-devel] [PATCH] Add USB sys file-system support (v8) TJ
2008-10-06 16:03                           ` Rick Vernam
2008-10-07  8:46                             ` TJ
2008-10-07 20:09                           ` [Qemu-devel] " Anthony Liguori
2008-09-05 19:20     ` [Qemu-devel] [PATCH] Add USB sys file-system support (v2) TJ

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=48C53B04.9030006@windriver.com \
    --to=jason.wessel@windriver.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux@tjworld.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).