Skip to content

Improvements to bq27000 management on OMAP

NeilBrown linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Fix w1_bq27000drivers/w1/slaves/w1_bq27000.c+12 -52 replies
2/5omap_hdq: Fix some error/debug handling.drivers/w1/masters/omap_hdq.c+8 -70 replies
3/5omap_hdq: use wait_event_timeout to wait for read to complete.drivers/w1/masters/omap_hdq.c+6 -90 replies
4/5omap_hdq: handle case where isr sees a 0 status byte.drivers/w1/masters/omap_hdq.c+25 -10 replies
5/5bq27x00 - don't report power-supply change so often.drivers/power/bq27x00_battery.c+12 -33 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchThomas Weber
1/5T-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Improvements to bq27000 management on OMAP

[re-sent with multiple To: headers to placate vger.kernel.org]

This series makes the bq27000 battery monitor work well when driven by the HDQ bus on OMAP devices.

I realise that there could be separate maintainers for each file but figured that the series makes most sense as a whole and am sending it as such. If people could take or ACK the patches relevant to them I would appreciate it.

The first 3 should be uncontroversial.

The fourth:
omap_hdq: handle case where isr sees a 0 status byte.
fixes a problem that I have experienced, but I don't understand why it happens. As the commentary in that patch says, the interrupt service routine sometimes sees the status as '0' meaning that nothing caused an interrupt (Inconceivable!!). This seems to happen in batches resulting in timeouts that produce many-second delays in reading battery status from /sys/class/bq27x00_battery/*.

The fifth:
bq27x00 - don't report power-supply change so often.

Causes the driver to be less noisy to udev. udev events should be "uncommon" but the current code triggers a change event (almost) every time the battery status is read, or every 6 minutes, as it is almost certain that some value has changed (typically capacity but even VOLTAGE_NOW can change a little bit).

Thanks,
NeilBrown

---

NeilBrown (5):
bq27x00 - don't report power-supply change so often.
omap_hdq: handle case where isr sees a 0 status byte.
omap_hdq: use wait_event_timeout to wait for read to complete.
omap_hdq: Fix some error/debug handling.
Fix w1_bq27000

 drivers/power/bq27x00_battery.c |   15 ++++++++--
 drivers/w1/masters/omap_hdq.c   |   56 +++++++++++++++++++++++++++------------
 drivers/w1/slaves/w1_bq27000.c  |   17 ++++++++----
 3 files changed, 63 insertions(+), 25 deletions(-)
Signature · 1 line
Signature