linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sebastian Reichel <sebastian.reichel@collabora.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Lee Jones <lee.jones@linaro.org>,
	Marcus Cooper <codekipper@gmail.com>,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH 00/10] power: supply: ab8500: refactor and isolate
Date: Thu, 28 Jan 2021 01:17:00 +0100	[thread overview]
Message-ID: <20210128001700.pkuyfpq6uzcjb5ud@earth.universe> (raw)
In-Reply-To: <20210123221908.2993388-1-linus.walleij@linaro.org>

[-- Attachment #1: Type: text/plain, Size: 3752 bytes --]

Hi,

On Sat, Jan 23, 2021 at 11:18:58PM +0100, Linus Walleij wrote:
> The AB8500 code was merged in 2012 and hasn't seen
> much love in the years since that, but the code is
> needed by the PostmarketOS community.
> commit a1149ae975547142f78e96745a994cb9b0e98fd2
> ("ARM: ux500: Disable Power Supply and Battery Management by default")
> disabled the use of the code in 2013 mentioning that
> "drivers are more than a little bit broken".
> 
> Charging is nice. The platform is not unused. Let's
> begin to fix this.
> 
> This patch set does a bunch of things to the AB8500
> charger code:
> 
> - Cleans out non-devicetree code as we are now always
>   probing Ux500 and AB8500 from the device tree.
> 
> - Breaks the ties to the MFD subsystem and pushes the
>   charging-related headers down to power/supply/*
>   these headers were shared in include/linux/mfd in
>   order to support board files, and with device tree
>   that is unnecessary.
> 
> - Bind all subdrivers using the driver component
>   model which is common in the DRM subsystem, and as
>   a consequence we know the order the subdrivers are
>   initialized and we can cut the code that is just
>   there to satisfy the case where the drivers probe
>   in different order.
> 
> - Add some minor code that makes the drivers actually
>   work (it was very close).
> 
> Right now it has dependencies on the MFD tree (this
> series is based on thefor-mfd-next branch) due to a
> renaming of the cell macro so the best would be if Lee
> could merge it, at least partly. I am also fine if
> we only merge patches 1 thru 4 into MFD this merge
> window to isolate the charger code into drivers/power
> so we can continue next merge window with the rest
> of the code.

Patches 1-4 and 6-9 are

Acked-by: Sebastian Reichel <sebastian.reichel@collabora.com>

I think best solution would be to merge patches 1-4 using
an immutable branch based on v5.11-rc1 and Lee fixing the
trivial conflict when merging the immutable branch into
his tree. That way I can also merge it into the power-supply
tree and take the remaining patches (but I actually have
feedback/questions for patch 5 and 10).

-- Sebastian

> Linus Walleij (10):
>   power: supply: ab8500: Require device tree
>   power: supply: ab8500: Push data to power supply code
>   power: supply: ab8500: Push algorithm to power supply code
>   power: supply: ab8500: Push data to power supply code
>   power: supply: ab8500: Move to componentized binding
>   power: supply: ab8500: Call battery population once
>   power: supply: ab8500: Avoid NULL pointers
>   power: supply: ab8500: Enable USB and AC
>   power: supply: ab8500: Drop unused member
>   power: supply: ab8500_bmdata: Use standard phandle
> 
>  drivers/mfd/ab8500-core.c                     |  17 +-
>  drivers/power/supply/Kconfig                  |   2 +-
>  .../power/supply}/ab8500-bm.h                 | 298 ++++++++++++-
>  .../power/supply/ab8500-chargalg.h            |   6 +-
>  drivers/power/supply/ab8500_bmdata.c          |   6 +-
>  drivers/power/supply/ab8500_btemp.c           | 162 +++----
>  drivers/power/supply/ab8500_charger.c         | 406 ++++++++++--------
>  drivers/power/supply/ab8500_fg.c              | 154 +++----
>  drivers/power/supply/abx500_chargalg.c        | 129 +++---
>  drivers/power/supply/pm2301_charger.c         |   4 +-
>  include/linux/mfd/abx500.h                    | 276 ------------
>  11 files changed, 720 insertions(+), 740 deletions(-)
>  rename {include/linux/mfd/abx500 => drivers/power/supply}/ab8500-bm.h (58%)
>  rename include/linux/mfd/abx500/ux500_chargalg.h => drivers/power/supply/ab8500-chargalg.h (93%)
> 
> -- 
> 2.29.2
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      parent reply	other threads:[~2021-01-28  0:18 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23 22:18 [PATCH 00/10] power: supply: ab8500: refactor and isolate Linus Walleij
2021-01-23 22:18 ` [PATCH 01/10] power: supply: ab8500: Require device tree Linus Walleij
2021-01-23 22:19 ` [PATCH 02/10] power: supply: ab8500: Push data to power supply code Linus Walleij
2021-01-28  8:12   ` Lee Jones
2021-01-23 22:19 ` [PATCH 03/10] power: supply: ab8500: Push algorithm " Linus Walleij
2021-01-23 22:19 ` [PATCH 04/10] power: supply: ab8500: Push data " Linus Walleij
2021-01-25  8:44   ` Lee Jones
2021-01-23 22:19 ` [PATCH 05/10] power: supply: ab8500: Move to componentized binding Linus Walleij
2021-01-28  0:10   ` Sebastian Reichel
2021-01-23 22:19 ` [PATCH 06/10] power: supply: ab8500: Call battery population once Linus Walleij
2021-01-23 22:19 ` [PATCH 07/10] power: supply: ab8500: Avoid NULL pointers Linus Walleij
2021-01-23 22:19 ` [PATCH 08/10] power: supply: ab8500: Enable USB and AC Linus Walleij
2021-01-23 22:19 ` [PATCH 09/10] power: supply: ab8500: Drop unused member Linus Walleij
2021-01-23 22:19 ` [PATCH 10/10] power: supply: ab8500_bmdata: Use standard phandle Linus Walleij
2021-01-28  0:07   ` Sebastian Reichel
2021-01-28  0:17 ` Sebastian Reichel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210128001700.pkuyfpq6uzcjb5ud@earth.universe \
    --to=sebastian.reichel@collabora.com \
    --cc=codekipper@gmail.com \
    --cc=lee.jones@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-pm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).