All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] umc-bus.c: fix usage of device_trylock
@ 2012-10-09 10:21 Claudio Scordino
  2012-10-09 13:58 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Claudio Scordino @ 2012-10-09 10:21 UTC (permalink / raw)
  To: linux-usb; +Cc: Linux Kernel, Greg KH

Hi all.

I've not received any feedback about this patch, so I'm resending just
to check if someone is going to take care of it.

The patch fixes the usage of device_trylock inside the driver umc-bus.c:
device_trylock has the same semantics of mutex_trylock, so it returns 1
if the lock has been acquired successfully.

Best regards,

	Claudio


Subject: umc-bus.c: fix usage of device_trylock
From: Claudio Scordino <claudio@evidence.eu.com>

Fix usage of device_trylock. It has the same semantics of mutex_trylock, so it
returns 1 if the lock has been acquired successfully.

Signed-off-by: Claudio Scordino <claudio@evidence.eu.com>
Signed-off-by: Bruno Morelli <bruno@evidence.eu.com>
---
  drivers/uwb/umc-bus.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/uwb/umc-bus.c b/drivers/uwb/umc-bus.c
index 82a84d5..5c5b3fc 100644
--- a/drivers/uwb/umc-bus.c
+++ b/drivers/uwb/umc-bus.c
@@ -63,7 +63,7 @@ int umc_controller_reset(struct umc_dev *umc)
  	struct device *parent = umc->dev.parent;
  	int ret = 0;
  
-	if (device_trylock(parent))
+	if (!device_trylock(parent))
  		return -EAGAIN;
  	ret = device_for_each_child(parent, parent, umc_bus_pre_reset_helper);
  	if (ret >= 0)
-- 
1.7.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH RESEND] umc-bus.c: fix usage of device_trylock
  2012-10-09 10:21 [PATCH RESEND] umc-bus.c: fix usage of device_trylock Claudio Scordino
@ 2012-10-09 13:58 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2012-10-09 13:58 UTC (permalink / raw)
  To: Claudio Scordino; +Cc: linux-usb, Linux Kernel

On Tue, Oct 09, 2012 at 12:21:17PM +0200, Claudio Scordino wrote:
> Hi all.
> 
> I've not received any feedback about this patch, so I'm resending just
> to check if someone is going to take care of it.

It was sent in the middle of the merge window, when we are scrambling to
get other stuff done.  It's still in my queue and will be handled after
3.7-rc1 is out, and I've caught up on my travel.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-09 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-09 10:21 [PATCH RESEND] umc-bus.c: fix usage of device_trylock Claudio Scordino
2012-10-09 13:58 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.