Re: [PATCH RESEND] timbuart: Support for beeing probed more than once

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 22 Sep 2009 14:25:31 +0200
Richard R__jfors <richard.rojfors@xxxxxxxxxxxxxxx> wrote:

> There was a problem in the current implementation where a global static
> uart_driver struct was used. The same struct was reused every time the
> driver got probed. Since the struct has a state within the serial core
> it can not be reused.
> 
> A uart_driver struct is added to the timbuart_port struct which is
> allocated per platform device.
> 
> The probe and remove functions are declared __devinit and __devexit.

Are you sure?  Lots of other serial drivers appears to do it this way
and I'm ununaware of it causing any problems there.

Exactly what problem(s) are you observing?  (This should have been
described in the original changelog btw).

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux