]> git.baikalelectronics.ru Git - kernel.git/commit
USB: MUSB: save hardware revision at init
authorAnand Gadiyar <gadiyar@ti.com>
Mon, 16 Nov 2009 15:39:21 +0000 (21:09 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:25 +0000 (11:55 -0800)
commit4d785697fc493b0b0a65fdb0e406ef709ee3ec9f
tree8c868427abac6a9c8006cd2c44fa32ee164694ee
parent456bf225c22d4491c130ca4839f24f7423fc8c63
USB: MUSB: save hardware revision at init

MUSB: save hardware revision at init

This can be used later to flag workarounds for issues affecting
particular revisions. Saving this at init avoids having to
read the HWVERS register multiple times in code.

While at it, use macros to extract the version information
instead of using hardcoded values.

Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Cc: Ajay Kumar Gupta <ajay.gupta@ti.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_core.h