public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device
@ 2013-05-21 13:58 Samuel Ortiz
  2013-05-21 15:01 ` Winkler, Tomas
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Ortiz @ 2013-05-21 13:58 UTC (permalink / raw)
  To: Winkler, Tomas; +Cc: linux-kernel

After cancelling all reads from the disable hook, we need to reset the
event_cb pointer as well or else we won't be able to set a new one up
when re-enabling the device.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
---
 drivers/misc/mei/bus.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c
index 1e935ea..9ecd49a 100644
--- a/drivers/misc/mei/bus.c
+++ b/drivers/misc/mei/bus.c
@@ -496,6 +496,8 @@ int mei_cl_disable_device(struct mei_cl_device *device)
 		}
 	}
 
+	device->event_cb = NULL;
+
 	mutex_unlock(&dev->device_lock);
 
 	if (!device->ops || !device->ops->disable)
-- 
1.7.10.4

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

* RE: [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device
  2013-05-21 13:58 [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device Samuel Ortiz
@ 2013-05-21 15:01 ` Winkler, Tomas
  2013-05-21 16:51   ` Samuel Ortiz
  2013-05-21 16:54   ` Greg KH (gregkh@linuxfoundation.org)
  0 siblings, 2 replies; 4+ messages in thread
From: Winkler, Tomas @ 2013-05-21 15:01 UTC (permalink / raw)
  To: Greg KH (gregkh@linuxfoundation.org); +Cc: linux-kernel, Samuel Ortiz



> -----Original Message-----
> From: Samuel Ortiz [mailto:sameo@linux.intel.com]
> Sent: Tuesday, May 21, 2013 16:58
> To: Winkler, Tomas
> Cc: linux-kernel
> Subject: [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device
> 
> After cancelling all reads from the disable hook, we need to reset the
> event_cb pointer as well or else we won't be able to set a new one up when
> re-enabling the device.
> 
> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Acked.


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

* Re: [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device
  2013-05-21 15:01 ` Winkler, Tomas
@ 2013-05-21 16:51   ` Samuel Ortiz
  2013-05-21 16:54   ` Greg KH (gregkh@linuxfoundation.org)
  1 sibling, 0 replies; 4+ messages in thread
From: Samuel Ortiz @ 2013-05-21 16:51 UTC (permalink / raw)
  To: Greg KH (gregkh@linuxfoundation.org); +Cc: linux-kernel, Winkler, Tomas

On Tue, May 21, 2013 at 03:01:27PM +0000, Winkler, Tomas wrote:
> 
> 
> > -----Original Message-----
> > From: Samuel Ortiz [mailto:sameo@linux.intel.com]
> > Sent: Tuesday, May 21, 2013 16:58
> > To: Winkler, Tomas
> > Cc: linux-kernel
> > Subject: [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device
> > 
> > After cancelling all reads from the disable hook, we need to reset the
> > event_cb pointer as well or else we won't be able to set a new one up when
> > re-enabling the device.
> > 
> > Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
> Acked.
Greg, I did not initially Cc you and now you don't actually have the patch,
sorry.
Let me re-send the patch with Tomas ACK added.

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

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

* Re: [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device
  2013-05-21 15:01 ` Winkler, Tomas
  2013-05-21 16:51   ` Samuel Ortiz
@ 2013-05-21 16:54   ` Greg KH (gregkh@linuxfoundation.org)
  1 sibling, 0 replies; 4+ messages in thread
From: Greg KH (gregkh@linuxfoundation.org) @ 2013-05-21 16:54 UTC (permalink / raw)
  To: Winkler, Tomas; +Cc: linux-kernel, Samuel Ortiz

On Tue, May 21, 2013 at 03:01:27PM +0000, Winkler, Tomas wrote:
> 
> 
> > -----Original Message-----
> > From: Samuel Ortiz [mailto:sameo@linux.intel.com]
> > Sent: Tuesday, May 21, 2013 16:58
> > To: Winkler, Tomas
> > Cc: linux-kernel
> > Subject: [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device
> > 
> > After cancelling all reads from the disable hook, we need to reset the
> > event_cb pointer as well or else we won't be able to set a new one up when
> > re-enabling the device.
> > 
> > Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
> Acked.

Nice, but can someone actually send me the patch to apply?

thanks,

greg k-h

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

end of thread, other threads:[~2013-05-21 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-21 13:58 [PATCH] [3.10] mei: bus: Reset event_cb when disabling a device Samuel Ortiz
2013-05-21 15:01 ` Winkler, Tomas
2013-05-21 16:51   ` Samuel Ortiz
2013-05-21 16:54   ` Greg KH (gregkh@linuxfoundation.org)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox