* Need to take dev->sem, do it directly or use wrapper?
@ 2010-01-04 18:50 Dmitry Torokhov
2010-01-04 20:04 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Torokhov @ 2010-01-04 18:50 UTC (permalink / raw)
To: Greg KH; +Cc: LKML
Greg,
I was looking at restructuring serio a bit and rely more on the
infrastructure in the drivre core now that it is more flexible. It all
looks good except for one detail - serio provides "reconnect" method
which allows user to reinitialize a port whithout tearing down its
children input devices. To properly serialize with probe(), remove() and
other bus operations I'd need to take dev->sem semaphore. I(s bus code
allowed to do this? Can I do it directly or we need to add a wrapper
(like device_serialize_access(dev, bool))?
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Need to take dev->sem, do it directly or use wrapper?
2010-01-04 18:50 Need to take dev->sem, do it directly or use wrapper? Dmitry Torokhov
@ 2010-01-04 20:04 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2010-01-04 20:04 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: LKML
On Mon, Jan 04, 2010 at 10:50:23AM -0800, Dmitry Torokhov wrote:
> Greg,
>
> I was looking at restructuring serio a bit and rely more on the
> infrastructure in the drivre core now that it is more flexible. It all
> looks good except for one detail - serio provides "reconnect" method
> which allows user to reinitialize a port whithout tearing down its
> children input devices. To properly serialize with probe(), remove() and
> other bus operations I'd need to take dev->sem semaphore. I(s bus code
> allowed to do this? Can I do it directly or we need to add a wrapper
> (like device_serialize_access(dev, bool))?
Adding a wrapper would be best to do.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-04 20:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-04 18:50 Need to take dev->sem, do it directly or use wrapper? Dmitry Torokhov
2010-01-04 20:04 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox