omap_hdq: fix usecount handling
PATCH RESEND 1/1 omap_hdq: fix usecount handling
hdq_usecount was set to zero after a successful read, so omap_hdq_put could not properly free resources which leads e.g. to increasing usecounts in lsmod output
--- drivers/w1/masters/omap_hdq.c | 1 - 1 file changed, 1 deletion(-)
drivers/w1/masters/omap_hdq.c +0 -1
@@ -618,7 +618,6 @@ static u8 omap_w1_read_byte(void *_hdq)hdq_disable_interrupt (hdq_data,OMAP_HDQ_CTRL_STATUS , ~OMAP_HDQ_CTRL_STATUS_INTERRUPTMASK ); - hdq_data->hdq_usecount =0 ;/* Write followed by a read, release the module */ if (hdq_data->init_trans) {
Signature · 1 line
2.1.4
Quoted 6 lines · Andreas Kemnade
hdq_usecountwas set to zero after a successful read, soomap_hdq_putcould not properly free resources which leads e.g. to increasing usecounts in lsmod outputSigned-off-by Andreas Kemnade <[email protected]>---
Thanks,
Quoted 16 lines
drivers/w1/masters/omap_hdq.c | 1 - 1 file changed, 1 deletion(-)drivers/w1/masters/omap_hdq.c +0
-1@@ -618,7 +618,6 @@ static u8 omap_w1_read_byte(void *_hdq)hdq_disable_interrupt (hdq_data,OMAP_HDQ_CTRL_STATUS , ~OMAP_HDQ_CTRL_STATUS_INTERRUPTMASK ); - hdq_data->hdq_usecount =0 ;/* Write followed by a read, release the module */ if (hdq_data->init_trans) {
Signature · 2 lines
Regards Vignesh
Hi Andreas
From w1 perspective this doesn't break things :) Greg, please pull it into your tree if no one objects.
16.01.2016, 15:48, "Andreas Kemnade" <[email protected]>:
Quoted 23 lines
hdq_usecountwas set to zero after a successful read, soomap_hdq_putcould not properly free resources which leads e.g. to increasing usecounts in lsmod outputSigned-off-by Andreas Kemnade <[email protected]>---
drivers/w1/masters/omap_hdq.c | 1 -1 file changed, 1 deletion(-)drivers/w1/masters/omap_hdq.c +0
-2@@ -618,7 +618,6 @@ static u8 omap_w1_read_byte(void *_hdq) hdq_disable_interrupt(hdq_data, OMAP_HDQ_CTRL_STATUS, ~OMAP_HDQ_CTRL_STATUS_INTERRUPTMASK); - hdq_data->hdq_usecount =0 ; /* Write followed by a read, release the module */ if (hdq_data->init_trans) { --2.1.4
Quoted 6 lines · Evgeniy Polyakov
Hi Andreas
Quoted 1 line
From w1 perspective this doesn't break things :)
Greg, please pull it into your tree if no one objects.
Acked-by Evgeniy Polyakov <[email protected]>
Thanks, will do after 4.5-rc1 is out.
greg k-h
ping...
Quoted 13 lines · On Tue, 19 Jan 2016 10:13:04 -0800 "[email protected]"…
Quoted 6 lines · Evgeniy Polyakov
Hi Andreas
Quoted 1 line
From w1 perspective this doesn't break things :)
Greg, please pull it into your tree if no one objects.
Acked-by Evgeniy Polyakov <[email protected]>Thanks, will do after 4.5-rc1 is out.
greg k-h