* [PATCH 0/6] mfd: da9063: remove platform_data
@ 2019-03-18 15:47 Wolfram Sang
2019-03-18 15:47 ` [PATCH 2/6] input: da9063_onkey: remove platform_data support Wolfram Sang
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Wolfram Sang @ 2019-03-18 15:47 UTC (permalink / raw)
To: linux-kernel
Cc: linux-renesas-soc, Lee Jones, Mark Brown, Support Opensource,
Wolfram Sang, linux-input
When working with this driver while debugging something else, I noticed that
there are no in-kernel users of platform_data anymore. Removing the support
simplifies the code and gets rid of quite some lines. The biggest refactoring
went to the regulator driver which could maybe benefit from more
refactorization. However, there is no in-kernel user of that driver, so no
testing. I left it at this stage. I think the changes are still at a level
where review and build-testing will give enough confidence.
Besides the regulator thing, it was tested on a Renesas Lager board (R-Car H2).
No regressions encountered. buildbot was happy, too.
The patches are based on v5.1-rc1. I'd vote for all of them going through the
MFD tree. Looking forward to comments!
Wolfram
Wolfram Sang (6):
regulator: da9063: remove platform_data support
input: da9063_onkey: remove platform_data support
mfd: da9063: remove platform_data support
regulator: da9063: move definitions out of a header into the driver
mfd: da9063: remove leftover platform_data definitions
regulator: da9063: platform_data is gone, depend on OF
drivers/input/misc/da9063_onkey.c | 11 +---
drivers/mfd/da9063-core.c | 20 +-----
drivers/mfd/da9063-i2c.c | 1 -
drivers/mfd/da9063-irq.c | 1 -
drivers/regulator/Kconfig | 2 +-
drivers/regulator/da9063-regulator.c | 61 +++++++++++++------
include/linux/mfd/da9063/pdata.h | 114 -----------------------------------
7 files changed, 49 insertions(+), 161 deletions(-)
delete mode 100644 include/linux/mfd/da9063/pdata.h
--
2.11.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/6] input: da9063_onkey: remove platform_data support
2019-03-18 15:47 [PATCH 0/6] mfd: da9063: remove platform_data Wolfram Sang
@ 2019-03-18 15:47 ` Wolfram Sang
2019-03-19 12:49 ` Simon Horman
2019-03-29 10:58 ` Steve Twiss
2019-03-18 16:34 ` [PATCH 0/6] mfd: da9063: remove platform_data Steve Twiss
2019-03-29 11:02 ` Steve Twiss
2 siblings, 2 replies; 9+ messages in thread
From: Wolfram Sang @ 2019-03-18 15:47 UTC (permalink / raw)
To: linux-kernel
Cc: linux-renesas-soc, Lee Jones, Mark Brown, Support Opensource,
Wolfram Sang, Dmitry Torokhov, linux-input
There are no in-kernel users anymore, so remove this outdated interface.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
drivers/input/misc/da9063_onkey.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/drivers/input/misc/da9063_onkey.c b/drivers/input/misc/da9063_onkey.c
index 3e9c353d82ef..e3a273c74123 100644
--- a/drivers/input/misc/da9063_onkey.c
+++ b/drivers/input/misc/da9063_onkey.c
@@ -22,7 +22,6 @@
#include <linux/regmap.h>
#include <linux/of.h>
#include <linux/mfd/da9063/core.h>
-#include <linux/mfd/da9063/pdata.h>
#include <linux/mfd/da9063/registers.h>
#include <linux/mfd/da9062/core.h>
#include <linux/mfd/da9062/registers.h>
@@ -201,8 +200,6 @@ static void da9063_cancel_poll(void *data)
static int da9063_onkey_probe(struct platform_device *pdev)
{
- struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent);
- struct da9063_pdata *pdata = dev_get_platdata(da9063->dev);
struct da9063_onkey *onkey;
const struct of_device_id *match;
int irq;
@@ -229,12 +226,8 @@ static int da9063_onkey_probe(struct platform_device *pdev)
return -ENXIO;
}
- if (pdata)
- onkey->key_power = pdata->key_power;
- else
- onkey->key_power =
- !of_property_read_bool(pdev->dev.of_node,
- "dlg,disable-key-power");
+ onkey->key_power = !of_property_read_bool(pdev->dev.of_node,
+ "dlg,disable-key-power");
onkey->input = devm_input_allocate_device(&pdev->dev);
if (!onkey->input) {
--
2.11.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/6] input: da9063_onkey: remove platform_data support
2019-03-18 15:47 ` [PATCH 2/6] input: da9063_onkey: remove platform_data support Wolfram Sang
@ 2019-03-19 12:49 ` Simon Horman
2019-03-29 10:58 ` Steve Twiss
1 sibling, 0 replies; 9+ messages in thread
From: Simon Horman @ 2019-03-19 12:49 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-kernel, linux-renesas-soc, Lee Jones, Mark Brown,
Support Opensource, Dmitry Torokhov, linux-input
On Mon, Mar 18, 2019 at 04:47:54PM +0100, Wolfram Sang wrote:
> There are no in-kernel users anymore, so remove this outdated interface.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
> ---
> drivers/input/misc/da9063_onkey.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/input/misc/da9063_onkey.c b/drivers/input/misc/da9063_onkey.c
> index 3e9c353d82ef..e3a273c74123 100644
> --- a/drivers/input/misc/da9063_onkey.c
> +++ b/drivers/input/misc/da9063_onkey.c
> @@ -22,7 +22,6 @@
> #include <linux/regmap.h>
> #include <linux/of.h>
> #include <linux/mfd/da9063/core.h>
> -#include <linux/mfd/da9063/pdata.h>
> #include <linux/mfd/da9063/registers.h>
> #include <linux/mfd/da9062/core.h>
> #include <linux/mfd/da9062/registers.h>
> @@ -201,8 +200,6 @@ static void da9063_cancel_poll(void *data)
>
> static int da9063_onkey_probe(struct platform_device *pdev)
> {
> - struct da9063 *da9063 = dev_get_drvdata(pdev->dev.parent);
> - struct da9063_pdata *pdata = dev_get_platdata(da9063->dev);
> struct da9063_onkey *onkey;
> const struct of_device_id *match;
> int irq;
> @@ -229,12 +226,8 @@ static int da9063_onkey_probe(struct platform_device *pdev)
> return -ENXIO;
> }
>
> - if (pdata)
> - onkey->key_power = pdata->key_power;
> - else
> - onkey->key_power =
> - !of_property_read_bool(pdev->dev.of_node,
> - "dlg,disable-key-power");
> + onkey->key_power = !of_property_read_bool(pdev->dev.of_node,
> + "dlg,disable-key-power");
>
> onkey->input = devm_input_allocate_device(&pdev->dev);
> if (!onkey->input) {
> --
> 2.11.0
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 2/6] input: da9063_onkey: remove platform_data support
2019-03-18 15:47 ` [PATCH 2/6] input: da9063_onkey: remove platform_data support Wolfram Sang
2019-03-19 12:49 ` Simon Horman
@ 2019-03-29 10:58 ` Steve Twiss
2019-04-03 9:24 ` Wolfram Sang
1 sibling, 1 reply; 9+ messages in thread
From: Steve Twiss @ 2019-03-29 10:58 UTC (permalink / raw)
To: Wolfram Sang, Dmitry Torokhov
Cc: LKML, linux-renesas-soc@vger.kernel.org, Lee Jones, Mark Brown,
Support Opensource, linux-input@vger.kernel.org
Hi,
On 18 March 2019 15:48, Wolfram Sang wrote:
> Subject: [PATCH 2/6] input: da9063_onkey: remove platform_data support
>
> There are no in-kernel users anymore, so remove this outdated interface.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> ---
> drivers/input/misc/da9063_onkey.c | 11 ++---------
> 1 file changed, 2 insertions(+), 9 deletions(-)
Thanks!
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Tested-by: Steve Twiss <stwiss.opensource@diasemi.com>
Regards,
Steve
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 2/6] input: da9063_onkey: remove platform_data support
2019-03-29 10:58 ` Steve Twiss
@ 2019-04-03 9:24 ` Wolfram Sang
0 siblings, 0 replies; 9+ messages in thread
From: Wolfram Sang @ 2019-04-03 9:24 UTC (permalink / raw)
To: Steve Twiss
Cc: Wolfram Sang, Dmitry Torokhov, LKML,
linux-renesas-soc@vger.kernel.org, Lee Jones, Mark Brown,
Support Opensource, linux-input@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 635 bytes --]
> > Subject: [PATCH 2/6] input: da9063_onkey: remove platform_data support
> >
> > There are no in-kernel users anymore, so remove this outdated interface.
> >
> > Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
> > ---
> > drivers/input/misc/da9063_onkey.c | 11 ++---------
> > 1 file changed, 2 insertions(+), 9 deletions(-)
>
> Thanks!
> Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
> Tested-by: Steve Twiss <stwiss.opensource@diasemi.com>
Dmitry, if you are OK with the series going in via MFD, could you ack
this patch? As you see, Steve is fine with the patch and tested it, too.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 0/6] mfd: da9063: remove platform_data
2019-03-18 15:47 [PATCH 0/6] mfd: da9063: remove platform_data Wolfram Sang
2019-03-18 15:47 ` [PATCH 2/6] input: da9063_onkey: remove platform_data support Wolfram Sang
@ 2019-03-18 16:34 ` Steve Twiss
2019-03-29 11:02 ` Steve Twiss
2 siblings, 0 replies; 9+ messages in thread
From: Steve Twiss @ 2019-03-18 16:34 UTC (permalink / raw)
To: Mark Brown, Wolfram Sang
Cc: linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
Lee Jones, Support Opensource, linux-input@vger.kernel.org
Hi Mark,
On 18 March 2019 15:48, Wolfram Sang wrote:
> To: linux-kernel@vger.kernel.org
> Subject: [PATCH 0/6] mfd: da9063: remove platform_data
>
> When working with this driver while debugging something else, I noticed that
> there are no in-kernel users of platform_data anymore. Removing the support
> simplifies the code and gets rid of quite some lines. The biggest refactoring
> went to the regulator driver which could maybe benefit from more
> refactorization. However, there is no in-kernel user of that driver, so no
> testing. I left it at this stage. I think the changes are still at a level
> where review and build-testing will give enough confidence.
>
> Besides the regulator thing, it was tested on a Renesas Lager board (R-Car H2).
> No regressions encountered. buildbot was happy, too.
>
> The patches are based on v5.1-rc1. I'd vote for all of them going through the
> MFD tree. Looking forward to comments!
>
> Wolfram
My regulator tests are currently broken, so I'm looking into it.
I'll read-through and test these patches as soon as I've solved the regressions.
Regards,
Steve
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 0/6] mfd: da9063: remove platform_data
2019-03-18 15:47 [PATCH 0/6] mfd: da9063: remove platform_data Wolfram Sang
2019-03-18 15:47 ` [PATCH 2/6] input: da9063_onkey: remove platform_data support Wolfram Sang
2019-03-18 16:34 ` [PATCH 0/6] mfd: da9063: remove platform_data Steve Twiss
@ 2019-03-29 11:02 ` Steve Twiss
2019-03-29 11:27 ` Wolfram Sang
2019-03-29 11:28 ` Steve Twiss
2 siblings, 2 replies; 9+ messages in thread
From: Steve Twiss @ 2019-03-29 11:02 UTC (permalink / raw)
To: Wolfram Sang, linux-kernel@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org, Lee Jones, Mark Brown,
Support Opensource, linux-input@vger.kernel.org
Hi,
On 18 March 2019 15:48 Wolfram Sang wrote:
> Subject: [PATCH 0/6] mfd: da9063: remove platform_data
>
> When working with this driver while debugging something else, I noticed that
> there are no in-kernel users of platform_data anymore. Removing the support
> simplifies the code and gets rid of quite some lines. The biggest refactoring
> went to the regulator driver which could maybe benefit from more
> refactorization. However, there is no in-kernel user of that driver, so no
> testing. I left it at this stage. I think the changes are still at a level
> where review and build-testing will give enough confidence.
>
> Besides the regulator thing, it was tested on a Renesas Lager board (R-Car H2).
> No regressions encountered. buildbot was happy, too.
>
> The patches are based on v5.1-rc1. I'd vote for all of them going through the
> MFD tree. Looking forward to comments!
>
> Wolfram
I've acked-by and tested-by for all the patches now. Apologies because it took
such a long time to get around to looking at this.
(For my benefit) I regression tested against v5.0 and v5.1-rc1, ok.
Thanks,
Steve
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 0/6] mfd: da9063: remove platform_data
2019-03-29 11:02 ` Steve Twiss
@ 2019-03-29 11:27 ` Wolfram Sang
2019-03-29 11:28 ` Steve Twiss
1 sibling, 0 replies; 9+ messages in thread
From: Wolfram Sang @ 2019-03-29 11:27 UTC (permalink / raw)
To: Steve Twiss
Cc: Wolfram Sang, linux-kernel@vger.kernel.org,
linux-renesas-soc@vger.kernel.org, Lee Jones, Mark Brown,
Support Opensource, linux-input@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
> I've acked-by and tested-by for all the patches now. Apologies because it took
> such a long time to get around to looking at this.
Thanks for the testing! I think 10 days is actually quite fast :)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [PATCH 0/6] mfd: da9063: remove platform_data
2019-03-29 11:02 ` Steve Twiss
2019-03-29 11:27 ` Wolfram Sang
@ 2019-03-29 11:28 ` Steve Twiss
1 sibling, 0 replies; 9+ messages in thread
From: Steve Twiss @ 2019-03-29 11:28 UTC (permalink / raw)
To: 'Wolfram Sang', linux-kernel@vger.kernel.org
Cc: linux-renesas-soc@vger.kernel.org, Lee Jones, Mark Brown,
Support Opensource, linux-input@vger.kernel.org
Caveat.
On 29 March 2019 11:02 Steve Twiss, wrote:
> Subject: RE: [PATCH 0/6] mfd: da9063: remove platform_data
>
[...]
>
> I've acked-by and tested-by for all the patches now. Apologies because it took
> such a long time to get around to looking at this.
>
> (For my benefit) I regression tested against v5.0 and v5.1-rc1, ok.
These were tested with two extra patches that are not in vanilla v5.0 or v5.1.-rc1.
One is in discussion and one is applied to linux-next,
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next-history.git/commit/?id=70b464918e5331e488058870fcc6821d54c4e541
E-mail threads are here:
https://lore.kernel.org/lkml/20190318163132.1BB633FBA2@swsrvapps-01.diasemi.com/
https://lore.kernel.org/lkml/20190320120604.7D99B3FBE9@swsrvapps-01.diasemi.com/
Regards,
Steve
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-04-03 9:24 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-18 15:47 [PATCH 0/6] mfd: da9063: remove platform_data Wolfram Sang
2019-03-18 15:47 ` [PATCH 2/6] input: da9063_onkey: remove platform_data support Wolfram Sang
2019-03-19 12:49 ` Simon Horman
2019-03-29 10:58 ` Steve Twiss
2019-04-03 9:24 ` Wolfram Sang
2019-03-18 16:34 ` [PATCH 0/6] mfd: da9063: remove platform_data Steve Twiss
2019-03-29 11:02 ` Steve Twiss
2019-03-29 11:27 ` Wolfram Sang
2019-03-29 11:28 ` Steve Twiss
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).