From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 4/9] mfd: axp20x: Split the driver into core and i2c bits
Date: Tue, 12 Jan 2016 07:39:34 +0000 [thread overview]
Message-ID: <20160112073934.GJ19803@x1> (raw)
In-Reply-To: <CAGb2v65hCaCJAhBvuLugfD=5mzFQdMfktOTwbCO_CM04UtYemw@mail.gmail.com>
On Tue, 12 Jan 2016, Chen-Yu Tsai wrote:
> Hi,
>
> On Mon, Jan 11, 2016 at 5:25 PM, Lee Jones <lee.jones@linaro.org> wrote:
> > On Thu, 17 Dec 2015, Chen-Yu Tsai wrote:
> >
> >> The axp20x driver assumes the device is i2c based. This is not the
> >> case with later chips, which use a proprietary 2 wire serial bus
> >> by Allwinner called "Reduced Serial Bus".
> >>
> >> This patch follows the example of mfd/wm831x and splits it into
> >> an interface independent core, and an i2c specific glue layer.
> >> MFD_AXP20X and the new MFD_AXP20X_I2C are changed to tristate
> >> symbols, allowing the driver to be built as modules.
> >>
> >> Whitespace and other style errors in the moved i2c specific code
> >> have been fixed. Included but unused header files are removed as
> >> well.
> >>
> >> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
> >> ---
> >> drivers/mfd/Kconfig | 14 ++++---
> >> drivers/mfd/Makefile | 1 +
> >> drivers/mfd/axp20x-i2c.c | 102 +++++++++++++++++++++++++++++++++++++++++++++
> >> drivers/mfd/axp20x.c | 88 +++++++-------------------------------
> >> include/linux/mfd/axp20x.h | 33 ++++++++++++++-
> >> 5 files changed, 158 insertions(+), 80 deletions(-)
> >> create mode 100644 drivers/mfd/axp20x-i2c.c
> >
> > Acked-by: Lee Jones <lee.jones@linaro.org>
> >
>
> [..]
>
> >> diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c
> >> new file mode 100644
> >> index 000000000000..b54205677bb2
> >> --- /dev/null
> >> +++ b/drivers/mfd/axp20x-i2c.c
> >> @@ -0,0 +1,102 @@
> >> +/*
> >> + * axp20x-i2c.c - I2C driver for the X-Powers' Power Management ICs
>
> Do you want me to remove the filenames from these 2 files (axp20x.c and
> axp20x-i2c.c) as well?
Yes, that would be good.
> >> + * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
> >> + * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature
> >> + * as well as configurable GPIOs.
> >> + *
> >> + * This driver supports the I2C variants.
> >> + *
> >> + * Author: Carlo Caione <carlo@caione.org>
>
> Not sure about the copyright, since it's not mine.
Perhaps shoot Carlo an email to see what he thinks.
> >> + * This program is free software; you can redistribute it and/or modify
> >> + * it under the terms of the GNU General Public License version 2 as
> >> + * published by the Free Software Foundation.
> >> + */
> >> +
>
> [..]
>
> Regards
> ChenYu
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
Cc: Maxime Ripard
<maxime.ripard-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>,
devicetree <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-arm-kernel
<linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org>,
linux-kernel
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
linux-sunxi <linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>,
Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Andy Shevchenko
<andy.shevchenko-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v6 4/9] mfd: axp20x: Split the driver into core and i2c bits
Date: Tue, 12 Jan 2016 07:39:34 +0000 [thread overview]
Message-ID: <20160112073934.GJ19803@x1> (raw)
In-Reply-To: <CAGb2v65hCaCJAhBvuLugfD=5mzFQdMfktOTwbCO_CM04UtYemw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Tue, 12 Jan 2016, Chen-Yu Tsai wrote:
> Hi,
>
> On Mon, Jan 11, 2016 at 5:25 PM, Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> wrote:
> > On Thu, 17 Dec 2015, Chen-Yu Tsai wrote:
> >
> >> The axp20x driver assumes the device is i2c based. This is not the
> >> case with later chips, which use a proprietary 2 wire serial bus
> >> by Allwinner called "Reduced Serial Bus".
> >>
> >> This patch follows the example of mfd/wm831x and splits it into
> >> an interface independent core, and an i2c specific glue layer.
> >> MFD_AXP20X and the new MFD_AXP20X_I2C are changed to tristate
> >> symbols, allowing the driver to be built as modules.
> >>
> >> Whitespace and other style errors in the moved i2c specific code
> >> have been fixed. Included but unused header files are removed as
> >> well.
> >>
> >> Signed-off-by: Chen-Yu Tsai <wens-jdAy2FN1RRM@public.gmane.org>
> >> ---
> >> drivers/mfd/Kconfig | 14 ++++---
> >> drivers/mfd/Makefile | 1 +
> >> drivers/mfd/axp20x-i2c.c | 102 +++++++++++++++++++++++++++++++++++++++++++++
> >> drivers/mfd/axp20x.c | 88 +++++++-------------------------------
> >> include/linux/mfd/axp20x.h | 33 ++++++++++++++-
> >> 5 files changed, 158 insertions(+), 80 deletions(-)
> >> create mode 100644 drivers/mfd/axp20x-i2c.c
> >
> > Acked-by: Lee Jones <lee.jones-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> >
>
> [..]
>
> >> diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c
> >> new file mode 100644
> >> index 000000000000..b54205677bb2
> >> --- /dev/null
> >> +++ b/drivers/mfd/axp20x-i2c.c
> >> @@ -0,0 +1,102 @@
> >> +/*
> >> + * axp20x-i2c.c - I2C driver for the X-Powers' Power Management ICs
>
> Do you want me to remove the filenames from these 2 files (axp20x.c and
> axp20x-i2c.c) as well?
Yes, that would be good.
> >> + * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
> >> + * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature
> >> + * as well as configurable GPIOs.
> >> + *
> >> + * This driver supports the I2C variants.
> >> + *
> >> + * Author: Carlo Caione <carlo-KA+7E9HrN00dnm+yROfE0A@public.gmane.org>
>
> Not sure about the copyright, since it's not mine.
Perhaps shoot Carlo an email to see what he thinks.
> >> + * This program is free software; you can redistribute it and/or modify
> >> + * it under the terms of the GNU General Public License version 2 as
> >> + * published by the Free Software Foundation.
> >> + */
> >> +
>
> [..]
>
> Regards
> ChenYu
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/d/optout.
WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee.jones@linaro.org>
To: Chen-Yu Tsai <wens@csie.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>,
devicetree <devicetree@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-sunxi <linux-sunxi@googlegroups.com>,
Hans de Goede <hdegoede@redhat.com>,
Mark Brown <broonie@kernel.org>,
Andy Shevchenko <andy.shevchenko@gmail.com>,
Rob Herring <robh+dt@kernel.org>
Subject: Re: [PATCH v6 4/9] mfd: axp20x: Split the driver into core and i2c bits
Date: Tue, 12 Jan 2016 07:39:34 +0000 [thread overview]
Message-ID: <20160112073934.GJ19803@x1> (raw)
In-Reply-To: <CAGb2v65hCaCJAhBvuLugfD=5mzFQdMfktOTwbCO_CM04UtYemw@mail.gmail.com>
On Tue, 12 Jan 2016, Chen-Yu Tsai wrote:
> Hi,
>
> On Mon, Jan 11, 2016 at 5:25 PM, Lee Jones <lee.jones@linaro.org> wrote:
> > On Thu, 17 Dec 2015, Chen-Yu Tsai wrote:
> >
> >> The axp20x driver assumes the device is i2c based. This is not the
> >> case with later chips, which use a proprietary 2 wire serial bus
> >> by Allwinner called "Reduced Serial Bus".
> >>
> >> This patch follows the example of mfd/wm831x and splits it into
> >> an interface independent core, and an i2c specific glue layer.
> >> MFD_AXP20X and the new MFD_AXP20X_I2C are changed to tristate
> >> symbols, allowing the driver to be built as modules.
> >>
> >> Whitespace and other style errors in the moved i2c specific code
> >> have been fixed. Included but unused header files are removed as
> >> well.
> >>
> >> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
> >> ---
> >> drivers/mfd/Kconfig | 14 ++++---
> >> drivers/mfd/Makefile | 1 +
> >> drivers/mfd/axp20x-i2c.c | 102 +++++++++++++++++++++++++++++++++++++++++++++
> >> drivers/mfd/axp20x.c | 88 +++++++-------------------------------
> >> include/linux/mfd/axp20x.h | 33 ++++++++++++++-
> >> 5 files changed, 158 insertions(+), 80 deletions(-)
> >> create mode 100644 drivers/mfd/axp20x-i2c.c
> >
> > Acked-by: Lee Jones <lee.jones@linaro.org>
> >
>
> [..]
>
> >> diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c
> >> new file mode 100644
> >> index 000000000000..b54205677bb2
> >> --- /dev/null
> >> +++ b/drivers/mfd/axp20x-i2c.c
> >> @@ -0,0 +1,102 @@
> >> +/*
> >> + * axp20x-i2c.c - I2C driver for the X-Powers' Power Management ICs
>
> Do you want me to remove the filenames from these 2 files (axp20x.c and
> axp20x-i2c.c) as well?
Yes, that would be good.
> >> + * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
> >> + * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature
> >> + * as well as configurable GPIOs.
> >> + *
> >> + * This driver supports the I2C variants.
> >> + *
> >> + * Author: Carlo Caione <carlo@caione.org>
>
> Not sure about the copyright, since it's not mine.
Perhaps shoot Carlo an email to see what he thinks.
> >> + * This program is free software; you can redistribute it and/or modify
> >> + * it under the terms of the GNU General Public License version 2 as
> >> + * published by the Free Software Foundation.
> >> + */
> >> +
>
> [..]
>
> Regards
> ChenYu
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2016-01-12 7:39 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-16 16:32 [PATCH v6 0/9] mfd: axp20x: Add support for RSB based AXP223 Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` [PATCH v6 1/9] mfd: axp20x: Add AXP223 to list of supported PMICs in DT bindings Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` [PATCH v6 2/9] mfd: axp20x: Remove second struct device * parameter for axp20x_match_device() Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2016-01-11 9:25 ` Lee Jones
2016-01-11 9:25 ` Lee Jones
2016-01-11 9:25 ` Lee Jones
2015-12-16 16:32 ` [PATCH v6 3/9] mfd: axp20x: use dev->driver->of_match_table in axp20x_match_device() Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2016-01-11 9:25 ` Lee Jones
2016-01-11 9:25 ` Lee Jones
2016-01-11 9:25 ` Lee Jones
2015-12-16 16:32 ` [PATCH v6 4/9] mfd: axp20x: Split the driver into core and i2c bits Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2016-01-11 9:25 ` Lee Jones
2016-01-11 9:25 ` Lee Jones
2016-01-11 9:25 ` Lee Jones
2016-01-12 2:06 ` Chen-Yu Tsai
2016-01-12 2:06 ` Chen-Yu Tsai
2016-01-12 2:06 ` Chen-Yu Tsai
2016-01-12 7:39 ` Lee Jones [this message]
2016-01-12 7:39 ` Lee Jones
2016-01-12 7:39 ` Lee Jones
2015-12-16 16:32 ` [PATCH v6 5/9] mfd: axp20x: Whitespace, open parenthesis alignment code style fixes Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2016-01-11 9:24 ` Lee Jones
2016-01-11 9:24 ` Lee Jones
2016-01-11 9:24 ` Lee Jones
2015-12-16 16:32 ` [PATCH v6 6/9] mfd: axp20x: Add support for RSB based AXP223 PMIC Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2016-01-11 9:24 ` Lee Jones
2016-01-11 9:24 ` Lee Jones
2016-01-11 9:24 ` Lee Jones
2016-01-11 11:58 ` Chen-Yu Tsai
2016-01-11 11:58 ` Chen-Yu Tsai
2016-01-11 12:09 ` Lee Jones
2016-01-11 12:09 ` Lee Jones
2016-01-11 12:09 ` Lee Jones
2016-01-11 12:49 ` Chen-Yu Tsai
2016-01-11 12:49 ` Chen-Yu Tsai
2016-01-11 12:49 ` Chen-Yu Tsai
2016-01-11 13:35 ` Lee Jones
2016-01-11 13:35 ` Lee Jones
2016-01-11 13:35 ` Lee Jones
2015-12-16 16:32 ` [PATCH v6 7/9] regulator: axp20x: Support new " Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` [PATCH v6 8/9] ARM: dts: sun8i: sinlinx-sina33: Add AXP223 PMIC device and regulator nodes Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` [PATCH v6 9/9] ARM: dts: sun8i: q8-common: " Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2015-12-16 16:32 ` Chen-Yu Tsai
2016-01-04 8:40 ` [PATCH v6 0/9] mfd: axp20x: Add support for RSB based AXP223 Chen-Yu Tsai
2016-01-04 8:40 ` Chen-Yu Tsai
2016-01-04 8:40 ` Chen-Yu Tsai
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=20160112073934.GJ19803@x1 \
--to=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.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 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.