Re: [PATCH 5/6] Clocklib: Use correct clock for IrDA on pxa



Hi, Russell,

2008/4/9, Russell King <rmk+lkml@xxxxxxxxxxxxxxxx>:
On Wed, Apr 09, 2008 at 08:09:16PM +0100, Alan Cox wrote:
> > Basically what I'm thinking is a serial_core function which could be
> > called to say "I'm an IrDA driver, and I think I should be using the
> > serial port located <here>, please give me control of it" and it'd
> > pass over the various parameters including the struct device for it.
> > Or something like that.
>
> It's called a line discipline, we've had them for many years. We may need
> a way for ldiscs and drivers to co-operate a bit more but these days we
> support proper buffering and arbitary baud rates (except on a few
> platforms whose maintainers are not paying attention ;)).

That would be a good thing to have.

I feel that's a "it would be nice if" solution - and something worth
aiming for, but the amount of work required to get there is not going
to be insignificant.

Maybe Dmitry can bite his nails on the NULL device clklib issue for a
while as this transition is happening ? (Though we need to find someone
to make it happen... we need volunteers!)

Russell, I'd propose to agree to bind PXA's IrDA to STUARTCLK and
leave UARTCLK function to real pxa uart driver. If you would oppose, I
won't have any choises other that to agree with it.

--
With best wishes
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • RE: IrDA driver using Stream Interface?
    ... I recommend that you follow the MDD/PDD model for your new serial driver: ... You will see that the MDD already supports all the required IOCTLs, ... IrDA driver using Stream Interface? ... I have developed my IrDA driver as a Stream Interface. ...
    (microsoft.public.windowsce.platbuilder)
  • RE: Problem in SIR IrDA driver in Windows CE 4.2.
    ... have integrated our platform with that driver and it automatically ... includes irdastk also. ... can able to see that the driver has been loaded properly. ... and we are trying to test the IrDA driver. ...
    (microsoft.public.windowsce.embedded)
  • Re: [PATCH RFD] alternative kobject release wait mechanism
    ... > I am not saying they are wrong I am just saying that driver core is ... Every subsystem has its own locking rules ... The driver's lifetime rules matters but currently the driver model ... imposes reference counted model to each struct device. ...
    (Linux-Kernel)
  • Re: kernel BUG at arch/x86/mm/ioremap.c:39 from 2.6.28-rc8-next-20081218 on x86_64 vmwar
    ... This is very early in the boot cycle the last ... Driver 'sd' needs updating - please use bus_type methods ... This is to be used to move things out of struct device that no code ... static void device_release ...
    (Linux-Kernel)
  • [PATCH] Dont use a klist for drivers set-of-devices
    ... This version of the patch addresses the concerns raised earlier by Pat: ... void driver_attach ... -#define to_devcontainer_of(node, struct device, driver_list) ... -/* Manually detach a device from it's associated driver. ...
    (Linux-Kernel)