* [U-Boot] [PATCH] gpio: altera_pio: Fix inversed logic of gpio_is_valid() implementation
@ 2013-06-15 9:10 Axel Lin
2013-07-29 9:16 ` Albert ARIBAUD
0 siblings, 1 reply; 3+ messages in thread
From: Axel Lin @ 2013-06-15 9:10 UTC (permalink / raw)
To: u-boot
The implementation of gpio_is_valid() has inversed logic, fix it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
Hi,
I don't have this hardware to test, but current code looks obviously wrong.
I'd appreciate if someone can review and test this patch.
Axel
drivers/gpio/altera_pio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/altera_pio.c b/drivers/gpio/altera_pio.c
index fb03760..7ab6df8 100644
--- a/drivers/gpio/altera_pio.c
+++ b/drivers/gpio/altera_pio.c
@@ -294,6 +294,6 @@ int gpio_is_valid(int number)
int gidx = altera_pio_gidx(number);
if (gidx < 0)
- return 1;
- return 0;
+ return 0;
+ return 1;
}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] gpio: altera_pio: Fix inversed logic of gpio_is_valid() implementation
2013-06-15 9:10 [U-Boot] [PATCH] gpio: altera_pio: Fix inversed logic of gpio_is_valid() implementation Axel Lin
@ 2013-07-29 9:16 ` Albert ARIBAUD
2013-08-05 0:26 ` Axel Lin
0 siblings, 1 reply; 3+ messages in thread
From: Albert ARIBAUD @ 2013-07-29 9:16 UTC (permalink / raw)
To: u-boot
Hi Axel,
On Sat, 15 Jun 2013 17:10:38 +0800, Axel Lin <axel.lin@ingics.com>
wrote:
> The implementation of gpio_is_valid() has inversed logic, fix it.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> Hi,
> I don't have this hardware to test, but current code looks obviously wrong.
> I'd appreciate if someone can review and test this patch.
>
> Axel
> drivers/gpio/altera_pio.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Not sure why this was assigned to me, as this is not ARM related.
Delegating to Thomas Chou as the NIOS(II) custodian and Cc:ing him, as
well as Scott McNutt, nios2-generic maintainer.
> diff --git a/drivers/gpio/altera_pio.c b/drivers/gpio/altera_pio.c
> index fb03760..7ab6df8 100644
> --- a/drivers/gpio/altera_pio.c
> +++ b/drivers/gpio/altera_pio.c
> @@ -294,6 +294,6 @@ int gpio_is_valid(int number)
> int gidx = altera_pio_gidx(number);
>
> if (gidx < 0)
> - return 1;
> - return 0;
> + return 0;
> + return 1;
> }
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] gpio: altera_pio: Fix inversed logic of gpio_is_valid() implementation
2013-07-29 9:16 ` Albert ARIBAUD
@ 2013-08-05 0:26 ` Axel Lin
0 siblings, 0 replies; 3+ messages in thread
From: Axel Lin @ 2013-08-05 0:26 UTC (permalink / raw)
To: u-boot
2013/7/29 Albert ARIBAUD <albert.u.boot@aribaud.net>:
> Hi Axel,
>
> On Sat, 15 Jun 2013 17:10:38 +0800, Axel Lin <axel.lin@ingics.com>
> wrote:
>
>> The implementation of gpio_is_valid() has inversed logic, fix it.
>>
>> Signed-off-by: Axel Lin <axel.lin@ingics.com>
>> ---
>> Hi,
>> I don't have this hardware to test, but current code looks obviously wrong.
>> I'd appreciate if someone can review and test this patch.
>>
>> Axel
>> drivers/gpio/altera_pio.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Not sure why this was assigned to me, as this is not ARM related.
> Delegating to Thomas Chou as the NIOS(II) custodian and Cc:ing him, as
> well as Scott McNutt, nios2-generic maintainer.
I guess it is just because there is no response from both Thomas Chou and
Scott McNutt. I have CCed them when submitted the patch.
Checking the maillist archive, seems no email from Thomas Chou and Scott McNutt
in 2013. So I have no idea who will pick up this patch.
Regards,
Axel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-05 0:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-15 9:10 [U-Boot] [PATCH] gpio: altera_pio: Fix inversed logic of gpio_is_valid() implementation Axel Lin
2013-07-29 9:16 ` Albert ARIBAUD
2013-08-05 0:26 ` Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox