USB: isp1760: Fix probe in PCI glue code
commit834fd53eabb313a8c8d1ed92ecb66a1314146bf7
authorKarl Bongers <kbongers@jged.com>
Thu, 29 Jan 2009 17:37:38 +0000 (29 18:37 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Feb 2009 22:00:40 +0000 (6 14:00 -0800)
tree8a919623b3ea6a05d0934f3f190b296d41d07bb8
parent0cb2fbb804d48fbbb30c6c08b3dbe6d727bfa72f
USB: isp1760: Fix probe in PCI glue code

This is the backported version of the upstream commit
Stefan Bader <stefan.bader@canonical.com> did the backport

Contains fixes so probe on x86 PCI runs, apparently I'm first to try
this. Several fixes to memory access to probe host scratch register.
Previously would bug check on chip_addr var used uninitialized.
Scratch reg write failed in one instance due to 16-bit initial access
mode, so added "& 0x0000ffff" to the readl as fix.
Includes some general cleanup - remove global vars, organize memory map
resource use.

Signed-off-by: Karl Bongers <kbongers@jged.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/isp1760-if.c