Re: [PATCH 3/6] drivers:misc: sources for ST core

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Tuesday, March 23, 2010 - 8:24 am

> +/* all debug macros go in here */

Use the existing debug macros



What if you have multiple devices at once one in each state ?
Why is this global ?


Again shouldn't be using globals and needs to support multiple devices.
See the tty_struct - there is a field for an ldisc pointer, stuff
st_gdata in there at open time and pass tty around ?



Explain the locking on this NULL test - what stops it becoming NULL
between the if and the assignment ?


I think this code needs a fair bit of work at this point - locking,
supporting multiple devices at once etc.

Staging perhaps ?

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[re-worked] New ldisc for WiLink7.0, pavan_savoy, (Mon Mar 22, 2:19 pm)
[PATCH 3/6] drivers:misc: sources for ST core, pavan_savoy, (Mon Mar 22, 2:19 pm)
[PATCH 6/6] drivers:misc: sources for ST header file, pavan_savoy, (Mon Mar 22, 2:19 pm)
Re: [PATCH 3/6] drivers:misc: sources for ST core, Alan Cox, (Tue Mar 23, 8:24 am)