[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F777C6F.2070603@mvista.com>
Date: Sun, 01 Apr 2012 01:51:43 +0400
From: Sergei Shtylyov <sshtylyov@...sta.com>
To: Nicolas Ferre <nicolas.ferre@...el.com>
CC: linux-arm-kernel@...ts.infradead.org, linux-usb@...r.kernel.org,
plagnioj@...osoft.com, ludovic.desroches@...el.com,
linux-kernel@...r.kernel.org, arnd@...db.de, olof@...om.net
Subject: Re: [PATCH 03/12] ARM: at91/USB host: specify and handle properly
vbus_pin_active_low
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@...el.com>
> Acked-by: Jean-Christophe PLAGNIOL-VILLARD<plagnioj@...osoft.com>
> Cc: stable<stable@...r.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.
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists