RE: SL811 problem on mach-pxa

From: Frank Buss (fb_at_frank-buss.de)
Date: 02/17/05

  • Next message: Zwane Mwaikambo: "Re: 2.6.10: irq 12 nobody cared!"
    To: "'David Brownell'" <david-b@pacbell.net>
    Date:	Thu, 17 Feb 2005 20:11:28 +0100
    
    

    > Some of that looks reasonable, not all. In particular, don't
    > change the convention on resources (memory to i/o), or expect
    > that the two regions involve more than one byte each ... the
    > hardware only has two single-byte registers!

    ok, perhaps I've misunderstood the meaning of IORESOURCE_IO and
    IORESOURCE_MEM. Is IORESOURCE_IO for "outb" and "inb" (Intel assembler,
    don't know the Arm aquivalent)? Then you are right, it should be
    IORESOURCE_MEM, only, because anything is accessed as like accessing normal
    memory. I didn't found much documention of such low-level kernel
    programming.

    > I'll look at the ep->hep stuff ... I could believe rc1 got a
    > bug added there. The urb->hcpriv bit looks wrong though.
    > It may take a little time for me to check it out though.

    ok, thanks. If you have a new patch, I'll try it on my platform.

    > > There is still an important error: When a device is
    > > plugged, then opened and
    > > then unplugged while open, it looks like the process
    > > freezes, which opened the device
    >
    > That seems pretty odd; I certainly tested that (on 2.6.almost-10)
    > as part of the initial development, and nothing in that area should
    > have changed either in the sl811 driver or usbcore. I suspect the
    > issue is one of the other changes you made.

    perhaps you are right, I don't understand the interactions between the
    driver and the USB framework in detail.

    > Hmm, what platform were you using? I've had reports that one of the
    > KARO boards has that issue.

    The platform was developed by a company I'm working for as a freelancer for
    a product the company sells.

    > That looks like the sort of thing that
    > should be done in the reset() routine rather than start();
    > and it should
    > certainly use a symbolic constant not 0x08.

    do you mean sl811->board->reset? I don't know, where I have to setup the
    function pointer, but looks ok for me to reset the controller (and all
    plugged USB devices) in the probe function.

    -- 
    Frank Buß, fb@frank-buss.de
    http://www.frank-buss.de, http://www.it4-systems.de
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Zwane Mwaikambo: "Re: 2.6.10: irq 12 nobody cared!"

    Relevant Pages

    • Re: kernel panic and then oops
      ... > weeks the machine has just been randomly hanging. ... > memtest86+ and it reported that there was nothing wrong with the memory. ... > ping it..other times not) and a hard reset is forced. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: any way to find out kernel memory usage?
      ... > killer to reset the system if the kernel uses more than a certain amount ... > way to find out how much memory the kernel is using? ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: Oyster Card System Failure
      ... I've not yet come across r/w memory that can't be reset if theres ... some of the memory as read only - IIRC sector 0 (which contains the ... Initially the card is created with this address as 0. ...
      (uk.transport.london)
    • Re: off screen plain
      ... created a surface (soon to maybe be a memory stream) of 1024x14000. ... reset wouldn't let me lock the texture anymore. ... What if the device is lost for sometime. ...
      (microsoft.public.win32.programmer.directx.managed)
    • Re: AVR ATmega644 mysterious reset ?
      ... of the program memory and just runs until it returns to 0x0000 (Reset ... Further more all volatile memory is cleared when the problem ... instruction of your startup would the observable results be any ... basic setup (such as stack position) before memory clearing. ...
      (comp.arch.embedded)