Commit 4365831d authored by Li Yang's avatar Li Yang Committed by Greg Kroah-Hartman
Browse files

USB: fsl_usb2_udc: Get max ep number from DCCPARAMS register



Currently the driver is expecting max ep number in platform
data which isn't passing this information.  This patch fix
the problem by reading it from DCCPARAMS(Device Controller
Capability Parameters) register.  The change also need some
reordering of the probe code.

Signed-off-by: default avatarLi Yang <leoli@freescale.com>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 37b5453d
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment