Skip to contentSkip to conversation

power: charger-manager: Remove deprecated function, cm_notify_event().

PATCH RESEND MyungJoo Ham 3 participants 3 messages Dec 19, 2014 – Dec 20, 2014

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines

cm_notify_event() is introduced to get event associated with battery status
externally, but no one had been used. Moreover it makes charger manager driver more complicated. This patch tries to drop the function and all data related to simplify the driver.

You are not just removing cm_notify_event() and its related.

You are hereby removing the much of software charger control and suspend-related operations. Could you please be more specific on why? (many of such features are to comply with operators' requirements)

(Or we may meet next Monday for some discussions :) )

Quoted 6 lines
---
 .../bindings/power_supply/charger-manager.txt      |    1 -
 drivers/power/charger-manager.c                    |  196 +-------------------
 include/linux/power/charger-manager.h              |   19 +-
 3 files changed, 8 insertions(+), 208 deletions(-)
#1 lore raw
Quoted 6 lines · MyungJoo Ham
Quoted 6 lines

cm_notify_event() is introduced to get event associated with battery status
externally, but no one had been used. Moreover it makes charger manager driver more complicated. This patch tries to drop the function and all data related to simplify the driver.

Quoted 8 lines
Quoted 1 line

You are not just removing cm_notify_event() and its related.

You are hereby removing the much of software charger control and suspend-related operations. Could you please be more specific on why? (many of such features are to comply with operators' requirements)

Unfortunately, all those codes are only for cm_notify_event(). Currently, and since charger-manager has been introduced then, there's no one to use it. And the works of cm_notify_event() are is just notifying the event to user space or reset the polling work. We may need passive method to get event related with battery status externally, if so we can use power_supply class notification method, power_supply_notifier.

I decided to remove it to make driver simple and clean.

Thanks,
Jonghwa

Quoted 8 lines

(Or we may meet next Monday for some discussions :) )

Quoted 6 lines
---
 .../bindings/power_supply/charger-manager.txt      |    1 -
 drivers/power/charger-manager.c                    |  196 +-------------------
 include/linux/power/charger-manager.h              |   19 +-
 3 files changed, 8 insertions(+), 208 deletions(-)
#2 lore raw
In reply to MyungJoo Ham
Quoted 8 lines · MyungJoo Ham
Quoted 7 lines

cm_notify_event() is introduced to get event associated with battery status
externally, but no one had been used. Moreover it makes charger manager driver more complicated. This patch tries to drop the function and all data related to simplify the driver.

Quoted 7 lines

You are not just removing cm_notify_event() and its related.

You are hereby removing the much of software charger control and suspend-related operations. Could you please be more specific on why? (many of such features are to comply with operators' requirements)

(Or we may meet next Monday for some discussions :) )

So... you'll meet in person and we will not see fireworks on the mailing list? :-).
Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html