USB: musb: fix CONFIGDATA register read issue
commit2bbff7b742d55b094ed1467702efe146cd60c64f
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Mon, 27 Jul 2009 21:32:15 +0000 (27 14:32 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jul 2009 21:31:11 +0000 (28 14:31 -0700)
treeae65f3589a29f4922b63383c5daf5a55753abf24
parent3a9f5bd82dc986d496d8484ff54b107b4515f43f
USB: musb: fix CONFIGDATA register read issue

INDEX register has to be set to '0' before reading
CONFIGDATA register which is only present in TI musb
platforms.

Currently the default register access mode is set to
FLAT_MODE thus INDEX register is not getting set
properly with musb_ep_select() which is just a nop
operation in FLAT_MODE.This invalid register read is
causing module reinset failure.

Fixing the issue by moving INDEX register write part to
musb_read_configdata() function itself.

Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_regs.h