All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
To: Sebastian Reichel <sebastian.reichel@collabora.com>
Cc: "Lee Jones" <lee.jones@linaro.org>,
	"Mark Brown" <broonie@kernel.org>,
	"Rob Herring" <robh+dt@kernel.org>,
	"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
	"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>,
	"Liam Girdwood" <lgirdwood@gmail.com>,
	"Andreas Färber" <afaerber@suse.de>,
	"Linus Walleij" <linus.walleij@linaro.org>,
	linux-actions@lists.infradead.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-input@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: Re: [PATCH v4 5/7] power: reset: Add poweroff driver for ATC260x PMICs
Date: Sun, 3 Jan 2021 19:20:31 +0200	[thread overview]
Message-ID: <20210103172031.GA268987@BV030612LT> (raw)
In-Reply-To: <20210103032631.k6ls5k2bnxmlhlhv@earth.universe>

Hi Sebastian,

On Sun, Jan 03, 2021 at 04:26:31AM +0100, Sebastian Reichel wrote:
> Hi,
> 
> On Tue, Dec 29, 2020 at 07:31:20PM +0200, Cristian Ciocaltea wrote:
> > This driver provides poweroff and reboot support for a system through
> > the ATC2603C and ATC2609A chip variants of the Actions Semi ATC260x
> > family of PMICs.
> > 
> > Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
> > ---
> > Changes in v4:
> >  - None
> > 
> > Changes in v3:
> >  - Removed the unnecessary driver compatibles
> > 
> > [...]
> > +#include <linux/delay.h>
> > +#include <linux/mfd/atc260x/core.h>
> > +#include <linux/module.h>
> > +#include <linux/of.h>
> 
> There is no DT code in this driver?

Right, this line is not needed anymore, I will drop it and submit a new
patch revision.

> > +#include <linux/platform_device.h>
> > +#include <linux/power_supply.h>
> 
> power_supply.h? That's for chargers and battery fuel gauges.

That is only used for checking if the S4 mode is available - which
involves calling 'power_supply_is_system_supplied()'.

> > +#include <linux/reboot.h>
> > +#include <linux/regmap.h>
> 
> > [...]
> 
> Otherwise LGTM. I suppose I can cherry-pick this patch into
> my tree, or did I miss some dependencies?

I'm not really sure what is the recommended approach (if any) for
merging MFD drivers.

The only dependency is the PMIC core driver in patch 3/7, which is
handled in Kconfig through 'depends on MFD_ATC260X'.

So far, Mark applied the regulator driver patch to his tree, while
Dmitry suggested to merge the onkey driver through MFD. So I think both
approaches are fine.

@Lee: Do you have any preference or recommendation for handling this?

> -- Sebastian

Thanks for the review,
Cristi


  reply	other threads:[~2021-01-03 17:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-29 17:31 [PATCH v4 0/7] Add initial support for ATC260x PMICs Cristian Ciocaltea
2020-12-29 17:31 ` [PATCH v4 1/7] dt-bindings: input: Add reset-time-sec common property Cristian Ciocaltea
2020-12-29 17:31 ` [PATCH v4 2/7] dt-bindings: mfd: Add Actions Semi ATC260x PMIC binding Cristian Ciocaltea
2020-12-29 17:31 ` [PATCH v4 3/7] mfd: Add MFD driver for ATC260x PMICs Cristian Ciocaltea
2020-12-29 17:31 ` [PATCH v4 4/7] regulator: Add regulator " Cristian Ciocaltea
2020-12-29 17:31 ` [PATCH v4 5/7] power: reset: Add poweroff " Cristian Ciocaltea
2021-01-03  3:26   ` Sebastian Reichel
2021-01-03 17:20     ` Cristian Ciocaltea [this message]
2020-12-29 17:31 ` [PATCH v4 6/7] input: atc260x: Add onkey " Cristian Ciocaltea
2020-12-29 17:31 ` [PATCH v4 7/7] MAINTAINERS: Add entry for ATC260x PMIC Cristian Ciocaltea

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=20210103172031.GA268987@BV030612LT \
    --to=cristian.ciocaltea@gmail.com \
    --cc=afaerber@suse.de \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=lee.jones@linaro.org \
    --cc=lgirdwood@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-actions@lists.infradead.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=manivannan.sadhasivam@linaro.org \
    --cc=robh+dt@kernel.org \
    --cc=sebastian.reichel@collabora.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.