* [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource
[not found] <1389700739-3696-1-git-send-email-wsa@the-dreams.de>
@ 2014-01-14 11:58 ` Wolfram Sang
2014-01-15 9:28 ` Linus Walleij
0 siblings, 1 reply; 8+ messages in thread
From: Wolfram Sang @ 2014-01-14 11:58 UTC (permalink / raw)
To: linux-kernel; +Cc: Wolfram Sang, Linus Walleij, Alexandre Courbot, linux-gpio
devm_ioremap_resource does sanity checks on the given resource. No need to
duplicate this in the driver.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
Should go via subsystem tree
drivers/gpio/gpio-davinci.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
index 84be701..a5e1a56 100644
--- a/drivers/gpio/gpio-davinci.c
+++ b/drivers/gpio/gpio-davinci.c
@@ -172,11 +172,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (!res) {
- dev_err(dev, "Invalid memory resource\n");
- return -EBUSY;
- }
-
gpio_base = devm_ioremap_resource(dev, res);
if (IS_ERR(gpio_base))
return PTR_ERR(gpio_base);
--
1.8.5.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource
2014-01-14 11:58 ` [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource Wolfram Sang
@ 2014-01-15 9:28 ` Linus Walleij
2014-01-15 12:54 ` Sekhar Nori
0 siblings, 1 reply; 8+ messages in thread
From: Linus Walleij @ 2014-01-15 9:28 UTC (permalink / raw)
To: Wolfram Sang, Sekhar Nori, Kevin Hilman, Santosh Shilimkar
Cc: linux-kernel@vger.kernel.org, Alexandre Courbot,
linux-gpio@vger.kernel.org
On Tue, Jan 14, 2014 at 12:58 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
> devm_ioremap_resource does sanity checks on the given resource. No need to
> duplicate this in the driver.
>
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
> ---
>
> Should go via subsystem tree
>
> drivers/gpio/gpio-davinci.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
> index 84be701..a5e1a56 100644
> --- a/drivers/gpio/gpio-davinci.c
> +++ b/drivers/gpio/gpio-davinci.c
> @@ -172,11 +172,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
> }
>
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> - if (!res) {
> - dev_err(dev, "Invalid memory resource\n");
> - return -EBUSY;
> - }
> -
> gpio_base = devm_ioremap_resource(dev, res);
> if (IS_ERR(gpio_base))
> return PTR_ERR(gpio_base);
Acked-by: Linus Walleij <linus.walleij@linaro.org>
The DaVinci maintainers are queuing GPIO patches for their driver
for this merge window, so requesting them to apply this patch.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource
2014-01-15 9:28 ` Linus Walleij
@ 2014-01-15 12:54 ` Sekhar Nori
2014-01-15 13:51 ` Linus Walleij
0 siblings, 1 reply; 8+ messages in thread
From: Sekhar Nori @ 2014-01-15 12:54 UTC (permalink / raw)
To: Linus Walleij, Wolfram Sang, Kevin Hilman, Santosh Shilimkar
Cc: linux-kernel@vger.kernel.org, Alexandre Courbot,
linux-gpio@vger.kernel.org
On Wednesday 15 January 2014 02:58 PM, Linus Walleij wrote:
> On Tue, Jan 14, 2014 at 12:58 PM, Wolfram Sang <wsa@the-dreams.de> wrote:
>
>> devm_ioremap_resource does sanity checks on the given resource. No need to
>> duplicate this in the driver.
>>
>> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
>> ---
>>
>> Should go via subsystem tree
>>
>> drivers/gpio/gpio-davinci.c | 5 -----
>> 1 file changed, 5 deletions(-)
>>
>> diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c
>> index 84be701..a5e1a56 100644
>> --- a/drivers/gpio/gpio-davinci.c
>> +++ b/drivers/gpio/gpio-davinci.c
>> @@ -172,11 +172,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
>> }
>>
>> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>> - if (!res) {
>> - dev_err(dev, "Invalid memory resource\n");
>> - return -EBUSY;
>> - }
>> -
>> gpio_base = devm_ioremap_resource(dev, res);
>> if (IS_ERR(gpio_base))
>> return PTR_ERR(gpio_base);
>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> The DaVinci maintainers are queuing GPIO patches for their driver
> for this merge window, so requesting them to apply this patch.
I wont be sending any more pull requests for v3.14. Even if I send, the
ARM-SoC maintainers will not take it anyway. So likely this wont get
into v3.14. For v3.15, Linus should be able to queue it as dependencies
would have made it into the kernel by then.
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource
2014-01-15 12:54 ` Sekhar Nori
@ 2014-01-15 13:51 ` Linus Walleij
2014-01-15 14:04 ` Sekhar Nori
0 siblings, 1 reply; 8+ messages in thread
From: Linus Walleij @ 2014-01-15 13:51 UTC (permalink / raw)
To: Sekhar Nori, Wolfram Sang
Cc: Kevin Hilman, Santosh Shilimkar, linux-kernel@vger.kernel.org,
Alexandre Courbot, linux-gpio@vger.kernel.org
On Wed, Jan 15, 2014 at 1:54 PM, Sekhar Nori <nsekhar@ti.com> wrote:
> On Wednesday 15 January 2014 02:58 PM, Linus Walleij wrote:
>> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>>
>> The DaVinci maintainers are queuing GPIO patches for their driver
>> for this merge window, so requesting them to apply this patch.
>
> I wont be sending any more pull requests for v3.14. Even if I send, the
> ARM-SoC maintainers will not take it anyway.
But as it is a fix I believe the ARM SoC maintainers will apply it
directly to the davinci branch.
Wolfram: I suggest you send this patch with my ACK directly
to arm@kernel.org and ask it to be applied to the davinci branch
in the ARM SoC tree.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource
2014-01-15 13:51 ` Linus Walleij
@ 2014-01-15 14:04 ` Sekhar Nori
2014-01-15 15:50 ` Kevin Hilman
0 siblings, 1 reply; 8+ messages in thread
From: Sekhar Nori @ 2014-01-15 14:04 UTC (permalink / raw)
To: Linus Walleij, Wolfram Sang
Cc: Kevin Hilman, Santosh Shilimkar, linux-kernel@vger.kernel.org,
Alexandre Courbot, linux-gpio@vger.kernel.org
On Wednesday 15 January 2014 07:21 PM, Linus Walleij wrote:
> On Wed, Jan 15, 2014 at 1:54 PM, Sekhar Nori <nsekhar@ti.com> wrote:
>> On Wednesday 15 January 2014 02:58 PM, Linus Walleij wrote:
>
>>> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>>>
>>> The DaVinci maintainers are queuing GPIO patches for their driver
>>> for this merge window, so requesting them to apply this patch.
>>
>> I wont be sending any more pull requests for v3.14. Even if I send, the
>> ARM-SoC maintainers will not take it anyway.
>
> But as it is a fix I believe the ARM SoC maintainers will apply it
> directly to the davinci branch.
Sorry I did not realize this is a fix.
>
> Wolfram: I suggest you send this patch with my ACK directly
> to arm@kernel.org and ask it to be applied to the davinci branch
> in the ARM SoC tree.
This would work too, I guess. Wolfram, can you please keep me in CC too
in case questions/actions come up?
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource
2014-01-15 14:04 ` Sekhar Nori
@ 2014-01-15 15:50 ` Kevin Hilman
2014-01-16 4:29 ` Sekhar Nori
0 siblings, 1 reply; 8+ messages in thread
From: Kevin Hilman @ 2014-01-15 15:50 UTC (permalink / raw)
To: Sekhar Nori
Cc: Linus Walleij, Wolfram Sang, Santosh Shilimkar,
linux-kernel@vger.kernel.org, Alexandre Courbot,
linux-gpio@vger.kernel.org
Sekhar Nori <nsekhar@ti.com> writes:
> On Wednesday 15 January 2014 07:21 PM, Linus Walleij wrote:
>> On Wed, Jan 15, 2014 at 1:54 PM, Sekhar Nori <nsekhar@ti.com> wrote:
>>> On Wednesday 15 January 2014 02:58 PM, Linus Walleij wrote:
>>
>>>> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>>>>
>>>> The DaVinci maintainers are queuing GPIO patches for their driver
>>>> for this merge window, so requesting them to apply this patch.
>>>
>>> I wont be sending any more pull requests for v3.14. Even if I send, the
>>> ARM-SoC maintainers will not take it anyway.
>>
>> But as it is a fix I believe the ARM SoC maintainers will apply it
>> directly to the davinci branch.
>
> Sorry I did not realize this is a fix.
>
>>
>> Wolfram: I suggest you send this patch with my ACK directly
>> to arm@kernel.org and ask it to be applied to the davinci branch
>> in the ARM SoC tree.
>
> This would work too, I guess. Wolfram, can you please keep me in CC too
> in case questions/actions come up?
Sekhar, I assume this is an ack from you too? If so, Wolfram, please
include that in the patch submitted to arm-soc.
Kevin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource
2014-01-15 15:50 ` Kevin Hilman
@ 2014-01-16 4:29 ` Sekhar Nori
2014-02-03 11:30 ` Grygorii Strashko
0 siblings, 1 reply; 8+ messages in thread
From: Sekhar Nori @ 2014-01-16 4:29 UTC (permalink / raw)
To: Kevin Hilman
Cc: Linus Walleij, Wolfram Sang, Santosh Shilimkar,
linux-kernel@vger.kernel.org, Alexandre Courbot,
linux-gpio@vger.kernel.org
On Wednesday 15 January 2014 09:20 PM, Kevin Hilman wrote:
> Sekhar Nori <nsekhar@ti.com> writes:
>
>> On Wednesday 15 January 2014 07:21 PM, Linus Walleij wrote:
>>> On Wed, Jan 15, 2014 at 1:54 PM, Sekhar Nori <nsekhar@ti.com> wrote:
>>>> On Wednesday 15 January 2014 02:58 PM, Linus Walleij wrote:
>>>
>>>>> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>>>>>
>>>>> The DaVinci maintainers are queuing GPIO patches for their driver
>>>>> for this merge window, so requesting them to apply this patch.
>>>>
>>>> I wont be sending any more pull requests for v3.14. Even if I send, the
>>>> ARM-SoC maintainers will not take it anyway.
>>>
>>> But as it is a fix I believe the ARM SoC maintainers will apply it
>>> directly to the davinci branch.
>>
>> Sorry I did not realize this is a fix.
>>
>>>
>>> Wolfram: I suggest you send this patch with my ACK directly
>>> to arm@kernel.org and ask it to be applied to the davinci branch
>>> in the ARM SoC tree.
>>
>> This would work too, I guess. Wolfram, can you please keep me in CC too
>> in case questions/actions come up?
>
> Sekhar, I assume this is an ack from you too? If so, Wolfram, please
> include that in the patch submitted to arm-soc.
Wolfram, if you have not sent it already, please add:
Acked-by: Sekhar Nori <nsekhar@ti.com>
The branch to which the patch will be applied is davinci/gpio on
git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git. Please
rebase on this branch so it applies cleanly.
Thanks,
Sekhar
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource
2014-01-16 4:29 ` Sekhar Nori
@ 2014-02-03 11:30 ` Grygorii Strashko
0 siblings, 0 replies; 8+ messages in thread
From: Grygorii Strashko @ 2014-02-03 11:30 UTC (permalink / raw)
To: Sekhar Nori, Kevin Hilman
Cc: Linus Walleij, Wolfram Sang, Santosh Shilimkar,
linux-kernel@vger.kernel.org, Alexandre Courbot,
linux-gpio@vger.kernel.org
Hi Linus, Sekhar,
On 01/16/2014 06:29 AM, Sekhar Nori wrote:
> On Wednesday 15 January 2014 09:20 PM, Kevin Hilman wrote:
>> Sekhar Nori <nsekhar@ti.com> writes:
>>
>>> On Wednesday 15 January 2014 07:21 PM, Linus Walleij wrote:
>>>> On Wed, Jan 15, 2014 at 1:54 PM, Sekhar Nori <nsekhar@ti.com> wrote:
>>>>> On Wednesday 15 January 2014 02:58 PM, Linus Walleij wrote:
>>>>
>>>>>> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>>>>>>
>>>>>> The DaVinci maintainers are queuing GPIO patches for their driver
>>>>>> for this merge window, so requesting them to apply this patch.
>>>>>
>>>>> I wont be sending any more pull requests for v3.14. Even if I send, the
>>>>> ARM-SoC maintainers will not take it anyway.
>>>>
>>>> But as it is a fix I believe the ARM SoC maintainers will apply it
>>>> directly to the davinci branch.
>>>
>>> Sorry I did not realize this is a fix.
>>>
>>>>
>>>> Wolfram: I suggest you send this patch with my ACK directly
>>>> to arm@kernel.org and ask it to be applied to the davinci branch
>>>> in the ARM SoC tree.
>>>
>>> This would work too, I guess. Wolfram, can you please keep me in CC too
>>> in case questions/actions come up?
>>
>> Sekhar, I assume this is an ack from you too? If so, Wolfram, please
>> include that in the patch submitted to arm-soc.
>
> Wolfram, if you have not sent it already, please add:
>
> Acked-by: Sekhar Nori <nsekhar@ti.com>
>
> The branch to which the patch will be applied is davinci/gpio on
> git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc.git. Please
> rebase on this branch so it applies cleanly.
>
This patch is not in 3.14 yet. Are there any chances to have it in 3.14,
as it introduces merge conflicts with future patches?
Regards,
-grygorii
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-02-03 10:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1389700739-3696-1-git-send-email-wsa@the-dreams.de>
2014-01-14 11:58 ` [PATCH 7/7] drivers/gpio: don't check resource with devm_ioremap_resource Wolfram Sang
2014-01-15 9:28 ` Linus Walleij
2014-01-15 12:54 ` Sekhar Nori
2014-01-15 13:51 ` Linus Walleij
2014-01-15 14:04 ` Sekhar Nori
2014-01-15 15:50 ` Kevin Hilman
2014-01-16 4:29 ` Sekhar Nori
2014-02-03 11:30 ` Grygorii Strashko
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).