From: Lee Jones <lee.jones@linaro.org>
To: "Andrew F. Davis" <afd@ti.com>
Cc: Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
Mark Rutland <mark.rutland@arm.com>,
Ian Campbell <ijc+devicetree@hellion.org.uk>,
Kumar Gala <galak@codeaurora.org>,
Mark Brown <broonie@kernel.org>,
Alexandre Courbot <gnurou@gmail.com>,
Grygorii Strashko <grygorii.strashko@ti.com>,
linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] mfd: tps65086: Add driver for the TPS65086 PMIC
Date: Tue, 20 Oct 2015 11:02:14 +0100 [thread overview]
Message-ID: <20151020100214.GM31804@x1> (raw)
In-Reply-To: <56251468.7030609@ti.com>
On Mon, 19 Oct 2015, Andrew F. Davis wrote:
> On 10/19/2015 04:23 AM, Lee Jones wrote:
> >On Fri, 16 Oct 2015, Andrew F. Davis wrote:
> >
> >>Add support for the TPS65912 device. It provides communication
> >>through I2C and contains the following components:
> >>
> >> - Regulators
> >> - Load switches
> >> - GPO controller
> >
> >What's a GPO controller?
>
> General Purpose Output, this controller only has output control, it's
> listed in the data-sheet this way, and other drivers have used this term.
Okay.
> >>Signed-off-by: Andrew F. Davis <afd@ti.com>
> >>---
> >> drivers/mfd/Kconfig | 13 ++++
> >> drivers/mfd/Makefile | 1 +
> >> drivers/mfd/tps65086.c | 145 +++++++++++++++++++++++++++++++++++++++++++
> >> include/linux/mfd/tps65086.h | 120 +++++++++++++++++++++++++++++++++++
> >> 4 files changed, 279 insertions(+)
> >> create mode 100644 drivers/mfd/tps65086.c
> >> create mode 100644 include/linux/mfd/tps65086.h
> >>
> >>diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> >>index 99d6367..ab3b392 100644
> >>--- a/drivers/mfd/Kconfig
> >>+++ b/drivers/mfd/Kconfig
> >>@@ -1093,6 +1093,19 @@ config TPS6507X
> >> This driver can also be built as a module. If so, the module
> >> will be called tps6507x.
> >>
> >>+config MFD_TPS65086
> >>+ tristate "TI TPS65086x Power Management chips"
> >
> >Use the full name:
> >
> > "TI TPS65086x Power Management Integrated Chips (PMICs)"
> >
> >>+ select REGMAP
> >>+ select REGMAP_IRQ
> >>+ select REGMAP_I2C
> >>+ depends on I2C
> >
> >REGMAP_I2C already depends on I2C.
> >
>
> So if I force REGMAP_I2C to =y without depending on I2C then couldn't
> REGMAP_I2C get selected without I2C enabled? Selecting doesn't force
> the selected item's dependencies still right?
Try it out. :)
> >>+ depends on OF || COMPILE_TEST
> >>+ help
> >>+ If you say yes here you get support for the TPS65086 series of
> >>+ Power Management chips.
> >
> >I'd remove the line break.
> >
> >>+ These include voltage regulators, GPO and other features
> >
> >GPIO?
> >
> >>+ that are often used in portable devices.
> >
> >This is meant to be a 'help', so instead of staying "and some other
> >stuff", please list them.
> >
>
> This seems to be what other devices do, I'll change it to something
> else then.
If you know what the "other features" are, it's best to name them.
> >> config TPS65911_COMPARATOR
> >> tristate
> >>
> >>diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> >>index a59e3fc..7adb902 100644
> >>--- a/drivers/mfd/Makefile
> >>+++ b/drivers/mfd/Makefile
> >>@@ -66,6 +66,7 @@ obj-$(CONFIG_MFD_WM8994) += wm8994-core.o wm8994-irq.o wm8994-regmap.o
> >> obj-$(CONFIG_TPS6105X) += tps6105x.o
> >> obj-$(CONFIG_TPS65010) += tps65010.o
> >> obj-$(CONFIG_TPS6507X) += tps6507x.o
> >>+obj-$(CONFIG_MFD_TPS65086) += tps65086.o
> >> obj-$(CONFIG_MFD_TPS65217) += tps65217.o
> >> obj-$(CONFIG_MFD_TPS65218) += tps65218.o
> >> obj-$(CONFIG_MFD_TPS65910) += tps65910.o
> >>diff --git a/drivers/mfd/tps65086.c b/drivers/mfd/tps65086.c
> >>new file mode 100644
> >>index 0000000..be6d678
> >>--- /dev/null
> >>+++ b/drivers/mfd/tps65086.c
> >>@@ -0,0 +1,145 @@
> >>+/*
> >>+ * Driver for TI TPS65086x PMICs
> >
> >I'd suggest removing the driver part. We know it's a driver.
>
> Again this is what almost every other driver does,
Almost every other driver. That's some statement.
I count 42%. ;)
> I'm not sure how
> else to describe this file without using the word driver.
Perhaps I'm getting picky in my old age, but I think I'd prefer to see:
TI TPS65086x PMIC support
[...]
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-10-20 10:02 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-16 16:59 [PATCH 0/4] Add support for the TI TPS65086 PMIC Andrew F. Davis
2015-10-16 16:59 ` [PATCH 1/4] Documentation: tps65086: Add DT bindings for the " Andrew F. Davis
2015-10-19 9:13 ` Lee Jones
2015-10-19 15:16 ` Andrew F. Davis
2015-10-19 15:21 ` Lee Jones
2015-10-19 15:23 ` Andrew F. Davis
2015-10-20 11:31 ` Lee Jones
2015-10-20 14:02 ` Andrew F. Davis
2015-10-21 8:46 ` Lee Jones
2015-10-21 10:29 ` Mark Brown
2015-10-21 11:18 ` Lee Jones
2015-10-21 12:14 ` Mark Brown
2015-10-21 15:26 ` Lee Jones
2015-10-21 16:13 ` Mark Brown
2015-10-16 16:59 ` [PATCH 2/4] mfd: tps65086: Add driver " Andrew F. Davis
[not found] ` <1445014753-15450-3-git-send-email-afd-l0cyMroinI0@public.gmane.org>
2015-10-19 9:23 ` Lee Jones
2015-10-19 16:03 ` Andrew F. Davis
2015-10-20 10:02 ` Lee Jones [this message]
2015-10-20 14:58 ` Andrew F. Davis
2015-10-21 8:43 ` Lee Jones
2015-10-21 16:28 ` Andrew F. Davis
[not found] ` <5627BD11.1000704-l0cyMroinI0@public.gmane.org>
2015-10-21 19:24 ` Lee Jones
2015-10-16 16:59 ` [PATCH 3/4] regulator: tps65086: Add regulator " Andrew F. Davis
2015-10-16 16:59 ` [PATCH 4/4] gpio: tps65086: Add GPIO " Andrew F. Davis
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=20151020100214.GM31804@x1 \
--to=lee.jones@linaro.org \
--cc=afd@ti.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=gnurou@gmail.com \
--cc=grygorii.strashko@ti.com \
--cc=ijc+devicetree@hellion.org.uk \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=pawel.moll@arm.com \
--cc=robh+dt@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).