Re: SL811 problem on mach-pxa

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

  • Next message: Ingo Molnar: "Re: Oops with oprofile + RT preempt 2.6.11-rc2-RT-V0.7.37-01"
    To: "Frank Buss" <fb@frank-buss.de>
    Date:	Thu, 17 Feb 2005 12:10:56 -0800
    
    

    On Thursday 17 February 2005 11:11 am, Frank Buss wrote:
    > > 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)?

    Yes, and there _is_ no ARM equivalent. Modern CPUs generaly won't
    bother with a separate physical I/O space, and special instructions
    to access it. So Linux drivers use macros that always boil down to
    normal memory-mapped I/O accessors ... that's what ARM does, and
    oddly enough all current users of this driver are on PXA hardware.

    I'm not sure what the CFU1U(*) CF/PCMCIA support will need; if that
    card maps those registers to I/O space, this driver will need some
    minor tweaks (in addition to the PCMCIA framework glue that registers
    a new platform_device). That is, the registers would normally be
    memory-mapped, but on some boards they might need to be in I/O space.

    All your platform should need to do is initialize a platform_device
    with the three resources (two memory, one IRQ), and platform_data
    initialized to match the structure defined for that purpose.

    > > 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?

    If your board is wired to support a separate chip reset (maybe
    through a GPIO or something), yes; otherwise, I suppose in this
    case I meant the port_power() routine should be handling that.

    This driver doesn't have a separate hc_driver.reset() entry, it
    does the analagous stuff as part of powering up the chip ... but
    as you've noted, that approach is a bit troublesome on boards
    that don't have that level of control over the hardware.

    It's best to ask questions about USB drivers on linux-usb-devel,
    not all USB developers make time to swim through LKML.

    - Dave

    (*) http://www.ratocsystems.com/english/products/subpages/cfu1u.html
        CompactFlash single-port USB host adapter, for PDAs, using
        the SL811HS chip.

    -
    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: Ingo Molnar: "Re: Oops with oprofile + RT preempt 2.6.11-rc2-RT-V0.7.37-01"

    Relevant Pages

    • Re: DeviceFS USB reading problems
      ... I think this is a bug in the RISC OS USB drivers. ... I clearly missed the case that the fragment might occur before the last ... the driver handle is exposed in UpCall_StreamCreated ... performance from a USB ethernet chip. ...
      (comp.sys.acorn.programmer)
    • Re: Counterfeit FTDI chips?
      ... suggesting that the chip is actually a Prolific PL2303! ... over USB. ... able to get FT_ListDevices function of the FTDI driver to actually ...
      (sci.electronics.design)
    • Re: black and white sensor using USB video class driver
      ... I believe that you need to find out if you can get the chip into a mode ... where it will send what you want through USB. ... That's what I started with to make our driver. ... I am just wondering if USB Video Class ...
      (microsoft.public.development.device.drivers)
    • Re: USB to RS232 one chip solution
      ... What is the current state of the art chip solution for rs232 to usb ... Will I have to write any software for the chip or can I simply set the ... Can produce a TXEN signal for driver enable in RS485 apps. ... You can use their virtual COM port driver to make it look like a COM port, ...
      (sci.electronics.design)
    • Re: Cambridge GPS NAV Model 20 Recorder and a USB only Computer?
      ... I just went through the exercise of finding a "good" USB to serial ... I also discovered that the Belken adapter is ... Larry recommended USB to serial adapters that use the Prolific chip, ... apparently the driver situation is not settled for Vista yet. ...
      (rec.aviation.soaring)