Re: [PATCHv3] drivers/misc: Altera active serial implementation

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jiri Slaby
Date: Monday, November 15, 2010 - 2:33 am

On 11/15/2010 09:23 AM, Baruch Siach wrote:
...

Why you need minor here? It's in drvdata->miscdev.minor.


You don't need the struct at all.
static struct altera_as_device *drvdata[AS_MAX_DEVS];
should be enough.


So leaving to userspace with mutex held. This is *wrong*. use
test_and_set_bit or alike instead.

...

So if I write 100 pages, I will _spin_ for 700 ms. You should rather
(m)sleep here.

...
...

Hmm, how many devices can be in the system? This doesn't look like the
right way.


So now the device is usable without the mutex and gpios inited?

...

regards,
-- 
js
suse labs
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCHv3] drivers/misc: Altera active serial implement ..., Jiri Slaby, (Mon Nov 15, 2:33 am)