usb:hsotg:samsung: Determine number of EPs from HW configuration register
authorLukasz Majewski <l.majewski@samsung.com>
Fri, 4 May 2012 12:17:09 +0000 (14:17 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 4 May 2012 12:53:15 +0000 (15:53 +0300)
commitb3f489b2b658e530f5cdefe4d38c60cf13453e43
treefabe10cd7f028d94a91f5480c6ac69eae6ca2985
parent12a1f4dc0dfe4c72e565dc02d6a1c021f3f98b61
usb:hsotg:samsung: Determine number of EPs from HW configuration register

This commit adds support for determining of EPs number during run time.

Configuration is read from a HW configuration register in a specially
created s3c_hsotg_hw_cfg function.

Moreover it was necessary to defer at probe allocation of the
struct s3c_hsotg_ep instances until number of endpoints is known.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c-hsotg.c