Re: [PATCH] HID: input: throttle battery uevents

2017-08-15 Thread Jiri Kosina
On Thu, 10 Aug 2017, Dmitry Torokhov wrote: > The power_supply subsystem tends to emit uevent every time > power_supply_changed() is called, so we should call this API only when > battery strength reported by the device is actually different from the > previous readings, otherwise we'll drown the

Re: [PATCH] HID: input: throttle battery uevents

2017-08-15 Thread Jiri Kosina
On Thu, 10 Aug 2017, Dmitry Torokhov wrote: > The power_supply subsystem tends to emit uevent every time > power_supply_changed() is called, so we should call this API only when > battery strength reported by the device is actually different from the > previous readings, otherwise we'll drown the

[PATCH] HID: input: throttle battery uevents

2017-08-10 Thread Dmitry Torokhov
The power_supply subsystem tends to emit uevent every time power_supply_changed() is called, so we should call this API only when battery strength reported by the device is actually different from the previous readings, otherwise we'll drown the system in uevents. Fixes: 581c4484769e ("HID:

[PATCH] HID: input: throttle battery uevents

2017-08-10 Thread Dmitry Torokhov
The power_supply subsystem tends to emit uevent every time power_supply_changed() is called, so we should call this API only when battery strength reported by the device is actually different from the previous readings, otherwise we'll drown the system in uevents. Fixes: 581c4484769e ("HID: