From: nicolas.ferre@atmel.com (Nicolas Ferre)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 03/12] ARM: at91/USB host: specify and handle properly vbus_pin_active_low
Date: Mon, 02 Apr 2012 12:19:57 +0200 [thread overview]
Message-ID: <4F797D4D.3060703@atmel.com> (raw)
In-Reply-To: <4F777C6F.2070603@mvista.com>
On 03/31/2012 11:51 PM, Sergei Shtylyov :
> Hello.
>
> On 29-03-2012 17:27, Nicolas Ferre wrote:
>
>> Due to an error while handling vbus_pin_active_low in ohci-at91 driver,
>> the specification of this property was not good in devices/board files.
>
>> Signed-off-by: Nicolas Ferre<nicolas.ferre@atmel.com>
>> Acked-by: Jean-Christophe PLAGNIOL-VILLARD<plagnioj@jcrosoft.com>
>> Cc: stable<stable@vger.kernel.org> [3.2+]
>> ---
>> arch/arm/mach-at91/at91sam9263_devices.c | 3 ++-
>> arch/arm/mach-at91/at91sam9g45_devices.c | 6 ++++--
>> arch/arm/mach-at91/board-sam9263ek.c | 1 +
>> arch/arm/mach-at91/board-sam9m10g45ek.c | 1 +
>> 4 files changed, 8 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/arm/mach-at91/at91sam9263_devices.c
>> b/arch/arm/mach-at91/at91sam9263_devices.c
>> index 53688c4..5cdca89d 100644
>> --- a/arch/arm/mach-at91/at91sam9263_devices.c
>> +++ b/arch/arm/mach-at91/at91sam9263_devices.c
>> @@ -72,7 +72,8 @@ void __init at91_add_device_usbh(struct
>> at91_usbh_data *data)
>> /* Enable VBus control for UHP ports */
>> for (i = 0; i< data->ports; i++) {
>> if (gpio_is_valid(data->vbus_pin[i]))
>> - at91_set_gpio_output(data->vbus_pin[i], 0);
>> + at91_set_gpio_output(data->vbus_pin[i],
>> + data->vbus_pin_active_low[i] ^ 0);
>
> Note that XOR with 0 is a nop, left operand doesn't change its value.
Sure I will correct that.
Thanks, best regards,
--
Nicolas Ferre
WARNING: multiple messages have this Message-ID (diff)
From: Nicolas Ferre <nicolas.ferre@atmel.com>
To: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: linux-arm-kernel@lists.infradead.org, linux-usb@vger.kernel.org,
plagnioj@jcrosoft.com, ludovic.desroches@atmel.com,
linux-kernel@vger.kernel.org, arnd@arndb.de, olof@lixom.net
Subject: Re: [PATCH 03/12] ARM: at91/USB host: specify and handle properly vbus_pin_active_low
Date: Mon, 02 Apr 2012 12:19:57 +0200 [thread overview]
Message-ID: <4F797D4D.3060703@atmel.com> (raw)
In-Reply-To: <4F777C6F.2070603@mvista.com>
On 03/31/2012 11:51 PM, Sergei Shtylyov :
> Hello.
>
> On 29-03-2012 17:27, Nicolas Ferre wrote:
>
>> Due to an error while handling vbus_pin_active_low in ohci-at91 driver,
>> the specification of this property was not good in devices/board files.
>
>> Signed-off-by: Nicolas Ferre<nicolas.ferre@atmel.com>
>> Acked-by: Jean-Christophe PLAGNIOL-VILLARD<plagnioj@jcrosoft.com>
>> Cc: stable<stable@vger.kernel.org> [3.2+]
>> ---
>> arch/arm/mach-at91/at91sam9263_devices.c | 3 ++-
>> arch/arm/mach-at91/at91sam9g45_devices.c | 6 ++++--
>> arch/arm/mach-at91/board-sam9263ek.c | 1 +
>> arch/arm/mach-at91/board-sam9m10g45ek.c | 1 +
>> 4 files changed, 8 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/arm/mach-at91/at91sam9263_devices.c
>> b/arch/arm/mach-at91/at91sam9263_devices.c
>> index 53688c4..5cdca89d 100644
>> --- a/arch/arm/mach-at91/at91sam9263_devices.c
>> +++ b/arch/arm/mach-at91/at91sam9263_devices.c
>> @@ -72,7 +72,8 @@ void __init at91_add_device_usbh(struct
>> at91_usbh_data *data)
>> /* Enable VBus control for UHP ports */
>> for (i = 0; i< data->ports; i++) {
>> if (gpio_is_valid(data->vbus_pin[i]))
>> - at91_set_gpio_output(data->vbus_pin[i], 0);
>> + at91_set_gpio_output(data->vbus_pin[i],
>> + data->vbus_pin_active_low[i] ^ 0);
>
> Note that XOR with 0 is a nop, left operand doesn't change its value.
Sure I will correct that.
Thanks, best regards,
--
Nicolas Ferre
next prev parent reply other threads:[~2012-04-02 10:19 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-29 13:27 [PATCH 00/12] at91: 3.4-rc1 fixes Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 01/12] ARM: at91/at91sam9x5: add clkdev entries for DMA controllers Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 02/12] USB: ohci-at91: fix vbus_pin_active_low handling Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 03/12] ARM: at91/USB host: specify and handle properly vbus_pin_active_low Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-31 21:51 ` Sergei Shtylyov
2012-03-31 21:51 ` Sergei Shtylyov
2012-04-02 10:19 ` Nicolas Ferre [this message]
2012-04-02 10:19 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 04/12] ARM: at91/dts: USB host vbus is active low Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 05/12] USB: ohci-at91: rework and fix initialization Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 06/12] USB: ohci-at91: change maximum number of ports Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 15:04 ` Alan Stern
2012-03-29 15:04 ` Alan Stern
2012-04-02 10:21 ` Nicolas Ferre
2012-04-02 10:21 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 07/12] USB: ohci-at91: coding style modifications with one-line ifs Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 08/12] USB: ohci-at91: trivial return code name change Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 09/12] ARM: at91/at91sam9x5.dtsi: fix NAND ale/cle in DT file Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 10/12] ARM: at91/NAND DT bindings: add comments Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 11/12] USB: ehci-atmel: add needed of.h header file Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-29 13:27 ` [PATCH 12/12] ARM: at91: fix check of valid GPIO for SPI and USB Nicolas Ferre
2012-03-29 13:27 ` Nicolas Ferre
2012-03-30 12:31 ` [PATCH] ARM: at91: include newly created system_misc.h file Nicolas Ferre
2012-03-30 12:31 ` Nicolas Ferre
2012-03-31 21:38 ` Sergei Shtylyov
2012-03-31 21:38 ` Sergei Shtylyov
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=4F797D4D.3060703@atmel.com \
--to=nicolas.ferre@atmel.com \
--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.