]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
USB: otg/ulpi.c : fix register write
authorEric Bénard <eric@eukrea.com>
Thu, 15 Jul 2010 07:20:19 +0000 (09:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 21:35:40 +0000 (14:35 -0700)
commitfa345d0109ac8c8e388196b1db29d1a570239d3b
tree65d4eae41856f1a6041678945c7c762081aa0321
parent9800eb330df0c1a8ef6f4123705eea691000e374
USB: otg/ulpi.c : fix register write

ulpi_set_vbus and ulpi_set_flags are using ULPI_SET(register) to write
to the PHY's registers, which means we can only set bits in the PHY's
register and not clear them.
By directly using the address of the register without any offset, we
now get the expected behaviour for these functions.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Cc: Daniel Mack <daniel@caiaq.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Sascha Hauer <kernel@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/otg/ulpi.c