LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre BASTOS <alebas@televes.com>
To: Mike Rapoport <mike@compulab.co.il>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: MPC8555 USB host support
Date: Tue, 15 Nov 2005 13:03:58 +0100	[thread overview]
Message-ID: <1132056238.4379ceae1564a@webmail.televes.com:443> (raw)
In-Reply-To: <43798741.5070604@compulab.co.il>

Mike,


> I've opened a project on the SourceForge,
> http://cpm2usb.sourceforge.net. The file containing patch against
> 2.6.12.3 can be downloaded at http://sourceforge.net/projects/cpm2usb.
>
> The driver was developed on MPC8272ADS, but should go as well on 8270
> since they have the same USB host controller AFAIK.
> Currently, as far as I tested it works fine with full-speed single
> device attached through hub, but fails is there are transfers from/to
> several devices simultaneously.
> As for the code itself, it's far from being perfect.


I have been testing your cpm2usb driver from sourceforge on my
MPC8272ADS and I couldn't get a usb 2.0 pendrive working.

usbcore tries to identify the device with both schemes, old and
new, but the hcd returns always a timeout. The output from console:

# modprobe usbcore
usbcore: registered new driver usbfs
usbcore: registered new driver hub

# modprobe m82xx-hcd
=> driver mpc82xx-hcd, 2005
mpc82xx-hcd mpc82xx-hcd.3: PQ2 intergrated USB controller v0.1
mpc82xx-hcd mpc82xx-hcd.3: new USB bus registered, assigned bus number 1
usb usb1: Product: PQ2 intergrated USB controller v0.1
usb usb1: Manufacturer: Linux 2.6.12 mpc82xx-hcd
usb usb1: SerialNumber: mpc82xx-hcd.3
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
PQ2USB: debug file creation

[... After pendrive insertion]

usb 1-1: new full speed USB device using mpc82xx-hcd and address 2
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new full speed USB device using mpc82xx-hcd and address 3
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new full speed USB device using mpc82xx-hcd and address 4
usb 1-1: device not accepting address 4, error -110
usb 1-1: new full speed USB device using mpc82xx-hcd and address 5
usb 1-1: device not accepting address 5, error -110

To compile the driver as a module, I made only a change in "tx_err"
function from m82xx-hcd.c, which shouldn't be affecting.
I have also commented out the re-definition of BCSR_ADDR, which is
already defined to f4500000 in pq2ads.h

--- m82xx-hcd.c.orig    2005-11-15 12:05:40.547987056 +0100
+++ m82xx-hcd.c 2005-11-14 18:15:13.000000000 +0100
@@ -98,7 +98,7 @@
        hp->usb_clock = USB_CLOCK_PC24_CLK8;

        {
-#define BCSR_ADDR              ((uint)0xf8000000)
+//#define BCSR_ADDR            ((uint)0xf8000000)
        volatile uint* bcsr_usb = (volatile uint*)(BCSR_ADDR +
                                                   BCSR_USB_OFFSET);

@@ -281,7 +281,9 @@
 static void tx_err(struct m8xxhci_private *hp, int ber)
 {
        volatile usbregs_t *usbregs = hp->usbregs;
-       volatile cpm_cpm2_t *cp = cpmp;
+       //volatile cpm_cpm2_t *cp = cpmp;
+       volatile cpm2_map_t *immap = (volatile cpm2_map_t *)CPM_MAP_ADDR;
+       volatile cpm_cpm2_t *cp = &immap->im_cpm;

        if ( hp->active_qe )
                hp->stats.txe[hp->active_qe->qtype]++;

So, any idea which could be happening? I have little knowledge about usb
so I am quite lost.


Thanks.

Alex BASTOS

  reply	other threads:[~2005-11-15 11:20 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-07  5:05 Problem Regarding Ping in Linux kernel version 2.4.24 apoorv sangal
2005-10-07 12:31 ` Aristeu Sergio Rozanski Filho
2005-10-10 10:40   ` apoorv sangal
2005-10-10 12:36     ` Mark Chambers
2005-10-10 17:00       ` MPC8555 USB host support Stefan Roese
2005-10-11 20:29         ` Kylo Ginsberg
2005-10-12  6:59           ` Stefan Roese
2005-10-12  7:01             ` Pantelis Antoniou
2005-10-12  7:11             ` Mike Rapoport
2005-10-12  7:27               ` Stefan Roese
2005-10-12 12:34                 ` Alex Zeffertt
2005-10-31  6:45                   ` Mike Rapoport
     [not found]                     ` <1131960060.7748.9.camel@hawk.pwav.net>
2005-11-15  6:59                       ` Mike Rapoport
2005-11-15 12:03                         ` Alexandre BASTOS [this message]
2005-11-15 15:22                         ` Kumar Gala
2005-11-15 15:38                           ` Mike Rapoport
2005-11-15 15:40                           ` Vitaly Bordug
2005-11-16 15:50                             ` Kumar Gala
2005-11-16 15:57                               ` Vitaly Bordug
2005-11-17 12:34                                 ` Yuli Barcohen
2005-12-01 12:26                         ` MPC8555 8280/8270 " Hans Schillstrom
2005-12-01 13:55                           ` Mike Rapoport
2005-12-01 15:29                           ` Wolfgang Denk
2005-10-11  6:27       ` Problem Regarding Ping in Linux kernel version 2.4.24 apoorv sangal
2005-10-11 12:23         ` Mark Chambers

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='1132056238.4379ceae1564a@webmail.televes.com:443' \
    --to=alebas@televes.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=mike@compulab.co.il \
    /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