Searched hist:"27 f782b6a137b51fe81dc2900d64ea6cbe502663" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/usb/host/ |
| H A D | ehci-tegra.c | 27f782b6a137b51fe81dc2900d64ea6cbe502663 Wed Mar 25 18:22:20 UTC 2015 Simon Glass <sjg@chromium.org> dm: usb: tegra: Store the controller type explicitly
At present the tegra driver uses a separate pointer to know which controller type is in use. This works because only one controller type is used at a time.
With driver model we want to make the controller state hermetic in the sense that it is not necessary to look elsewhere to know the controller type. This will permit a controller to implement the EHCI weak functions without reference to global data structures.
To achieve this, define an enum for the controller type and store it with the information on each EHCI controller.
Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de>
|