Re: SL811 problem on mach-pxa

From: David Brownell (david-b_at_pacbell.net)
Date: 02/17/05

  • Next message: Russell King: "Re: Problems with dma_mmap_writecombine on mach-pxa"
    To: "Frank Buss" <fb@frank-buss.de>
    Date:	Thu, 17 Feb 2005 10:09:55 -0800
    
    

    On Wednesday 16 February 2005 7:51 pm, Frank Buss wrote:
    >
    > http://www.frank-buss.de/tmp/sl811-hcd.c-patch.txt

    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!

    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.

    > 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 (I've tried "cat /dev/input/mice" and I can't break it after
    > unplugged). After plugging the device again, it is not recognized any more.
    > When the device is not open or after closing the device, unlugging and
    > plugging again is no problem.

    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.

    > -// #define QUIRK2
    > -#define QUIRK3
    > +/* with other QUIRK combinations it crashes */
    > +#define QUIRK2
    > +//#define QUIRK3

    Also very odd. It was tested with _both_ workarounds for IRQ issues;
    and nobody else has reported any need for #2 any more (now that the
    IRQs are acked selectively, unlike the predecessors to this driver).

    If there's a crash there, don't paper it over like this.

    > @@ -1580,6 +1591,14 @@
    > if (sl811->board && sl811->board->power)
    > hub_set_power_budget(udev, sl811->board->power * 2);
    >
    > + // enable power and interupts
    > + port_power(sl811, 1);
    > +
    > + /* reset USB (without this the devices were not detected at boot,
    > only after plugging) */
    > + sl811_write(sl811, SL11H_CTLREG1, 0x08);
    > + mdelay(20);
    > + sl811_write(sl811, SL11H_CTLREG1, 0);
    > +
    > return 0;
    > }
    >

    Hmm, what platform were you using? I've had reports that one of the
    KARO boards has that issue. 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.

    - Dave

    -
    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: Russell King: "Re: Problems with dma_mmap_writecombine on mach-pxa"

    Relevant Pages

    • Re: [no problem] PC110 broke 2.6.9
      ... > ethernet card can no longer reserve its irq and ADSL fails. ... driver by mistake, and try to do minimal probing of it. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • IDE locking (was: Re: RFD: Kernel release numbering)
      ... > Depends on your PCI bus and also if the are on the same IRQ. ... /proc/interrupts reports different irqs for each ide device: ... Unmounting the partition and trying an fsck reported that it ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: SERIO_USERDEV patch for 2.6
      ... much like Synaptics driver. ... but rather on set of capabilities that device reports. ... Kernel task is to convert data from individual devices into unified ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HP/Compaq (Winbond) SD/MMC reader supported
      ... > Driver: tifm.sys ... > IRQ: 18 ... Hmm, okay, this does not look compatible :-(. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2 errors in 2.6.12
      ... > bttv: driver version 0.9.15 loaded ... > IRQ 9 ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)

    Loading