qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Shin-ichiro KAWASAKI <kawasaki@juno.dti.ne.jp>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] [RFC] sh: SM501 usb host emulation
Date: Sat, 03 Jan 2009 14:52:13 +0900	[thread overview]
Message-ID: <495EFD0D.8050002@juno.dti.ne.jp> (raw)
In-Reply-To: <49564399.7020006@juno.dti.ne.jp>

Shin-ichiro KAWASAKI wrote:
> Hi, all.
> 
> SM501 is a multi function device on sh4/r2d evaluation board.
> Now, only its minimum graphics feature is implemented.
> This patch adds SM501's usb host feature.
> 
> To use usb keyboard for sh4/r2d system emulation, we need to apply
> another patch to add PCI usb host.  This patch avoids this work,
> and provides more precise usb host emultation than PCI one.
> 
> Reviews and comments will be appreciated.
> This patch modifies not only r2d/sm501 related source files but also
> "hw/usb-ohci.c".  It should not have any impact on other board emulations'
> usb feature.  Reviews from this point of view will be meaningful.

I hope the patch to be applied to trunk, because now I believe it has
no impact for other board emulation, which has PCI usb host or PXA
usb host.

I've checked it with following way.
 - I built sh4/r2d system emulation environment with PCI usb host.
   Code was taken from qemu svn head and qemu-sh staging quilt repository.
   And I confirmed that USB keyboard works fine with it.
 - Applied the SM501 usb host patch to the environment.
 - Disabled SM501 usb host by killing off following lines in hw/sm501.c
    /* bridge to usb host emulation module */
    usb_ohci_init_sm501(base + MMIO_BASE_OFFSET + SM501_USB_HOST, base, 
			2, -1, irq);
 - Booted up the SH-Linux with the environment, and saw how the USB keyboard
   worked with PCI usb host.

As a result, PCI usb host works fine under the modification of SM501 usb
host patch. I didn't checked PXA usb host, but it shares whole codes with
PCI usb host emulation in "hw/usb-ohci.c".

Regards,
Shin-ichiro KAWASAKI

  reply	other threads:[~2009-01-03  5:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-27 15:02 [Qemu-devel] [PATCH] [RFC] sh: SM501 usb host emulation Shin-ichiro KAWASAKI
2009-01-03  5:52 ` Shin-ichiro KAWASAKI [this message]
2009-01-06 10:14   ` Jean-Christophe PLAGNIOL-VILLARD
2009-03-03 13:55     ` [Qemu-devel] [PATCH] [REPOST] sh: SM501 usb ohci emulation Shin-ichiro KAWASAKI

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=495EFD0D.8050002@juno.dti.ne.jp \
    --to=kawasaki@juno.dti.ne.jp \
    --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).