History log of /rk3399_rockchip-uboot/drivers/usb/host/ohci-generic.c (Results 1 – 16 of 16)
Revision Date Author Comments
# 1a4f6af8 02-Mar-2020 Joseph Chen <chenjh@rock-chips.com>

Merge branch 'next-dev' into thunder-boot


# 541cc577 28-Aug-2019 Kever Yang <kever.yang@rock-chips.com>

UPSTREAM: usb: ohci-generic: don't probe fail if there is no clk_enable() ops

Some clock driver do not have a clk_enable() call back, and we should not
treat this as fail in ehci probe like other mo

UPSTREAM: usb: ohci-generic: don't probe fail if there is no clk_enable() ops

Some clock driver do not have a clk_enable() call back, and we should not
treat this as fail in ehci probe like other modules, eg. clk_enabl_bulk()
do not return fail if ret value is '-ENOSYS'

Change-Id: I6a87df188857287f860d4c7d9e66694e561da2dd
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
(cherry picked from commit 6578db896113816e5b61d1914169fad5f06d7903)

show more ...


# f7dd2187 14-Mar-2018 Patrice Chotard <patrice.chotard@st.com>

UPSTREAM: usb: ohci-generic: replace pr_err() by dev_err()

As we get access to struct udevice, use dev_err() instead
of pr_err().

Conflicts:
drivers/usb/host/ohci-generic.c

Change-Id: Iead8650006

UPSTREAM: usb: ohci-generic: replace pr_err() by dev_err()

As we get access to struct udevice, use dev_err() instead
of pr_err().

Conflicts:
drivers/usb/host/ohci-generic.c

Change-Id: Iead8650006d027d32910cd3dae24d934326f578f
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
(cherry picked from commit 6048d42fa7a2b97913db9a033675bf267fb4e030)

show more ...


# 8a1be473 14-Mar-2018 Patrice Chotard <patrice.chotard@st.com>

UPSTREAM: usb: ohci-generic: factorize PHY operation

Factorize PHY get/init/poweron and PHY poweroff/exit operations
into separate function, it simplify the error path.

Change-Id: I191c2690754972d6

UPSTREAM: usb: ohci-generic: factorize PHY operation

Factorize PHY get/init/poweron and PHY poweroff/exit operations
into separate function, it simplify the error path.

Change-Id: I191c2690754972d689d6e4bbed0f5582a7f64a27
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit cab4d48a939537ab10e00429fc774825b743ed10)

show more ...


# 324810fc 14-Mar-2018 Patrice Chotard <patrice.chotard@st.com>

UPSTREAM: usb: ohci-generic: handle phy power on/off

Add generic_phy_power_on() and generic_phy_power_off()
calls to switch ON/OFF phy during probe and remove functions.

Change-Id: Iea4dcb865e7c23c

UPSTREAM: usb: ohci-generic: handle phy power on/off

Add generic_phy_power_on() and generic_phy_power_off()
calls to switch ON/OFF phy during probe and remove functions.

Change-Id: Iea4dcb865e7c23c016e23601b20c77933258da87
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit 633e1ec6bf7131d3c8fecbb4adcc96e17925a015)

show more ...


# d2e45d1f 23-Feb-2018 Frank Wang <frank.wang@rock-chips.com>

usb: host: amend clock exception handling for ehci and ohci

Some platforms, like Rockchip, not implement clk_enable/clk_disable
APIs, add 'ENOSYS' condition to exclude it.

Change-Id: Ic79122dcad30d

usb: host: amend clock exception handling for ehci and ohci

Some platforms, like Rockchip, not implement clk_enable/clk_disable
APIs, add 'ENOSYS' condition to exclude it.

Change-Id: Ic79122dcad30d318d9326aeb287d0b15c99bfbae
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>

show more ...


# 5ccb6a79 23-Feb-2018 Frank Wang <frank.wang@rock-chips.com>

usb: host: use map_physmem method in ohci-generic

Using map_physmem method instead of typecasting fdt_addr_t to a
pointer directly.

This is inspired by commit 643cacb6d ("usb: ehci: Use map_physmem

usb: host: use map_physmem method in ohci-generic

Using map_physmem method instead of typecasting fdt_addr_t to a
pointer directly.

This is inspired by commit 643cacb6d ("usb: ehci: Use map_physmem
in ehci-generic").

Change-Id: I99590eabc763ad73bfb8f0cba7d02f9ef2fb423a
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>

show more ...


# 90aa625c 16-Sep-2017 Masahiro Yamada <yamada.masahiro@socionext.com>

treewide: replace with error() with pr_err()

U-Boot widely uses error() as a bit noisier variant of printf().

This macro causes name conflict with the following line in
include/linux/compiler-gcc.h

treewide: replace with error() with pr_err()

U-Boot widely uses error() as a bit noisier variant of printf().

This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:

# define __compiletime_error(message) __attribute__((error(message)))

This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux. (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)

Let's convert error() into now treewide-available pr_err().

Done with the help of Coccinelle, excluing tools/ directory.

The semantic patch I used is as follows:

// <smpl>
@@@@
-error
+pr_err
(...)
// </smpl>

Change-Id: I921807c1770d36a91e692c48ab477558bb2ed0b8
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 9b643e312d528f291966c1f30b0d90bf3b1d43dc)

show more ...


# 211aaf30 29-Jul-2017 Tom Rini <trini@konsulko.com>

Merge git://git.denx.de/u-boot-usb


# 2080d023 24-Jul-2017 Patrice Chotard <patrice.chotard@st.com>

usb: host: ohci-generic: initialize PHY only when found

Call generic_phy_init() only when a PHY was found.
This will avoid a crash if no "phys" property is found in DT.

Signed-off-by: Patrice Chota

usb: host: ohci-generic: initialize PHY only when found

Call generic_phy_init() only when a PHY was found.
This will avoid a crash if no "phys" property is found in DT.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reported-by: Patrick Delaunay <patrick.delaunay@st.com>

show more ...


# 28df1cfd 18-Jul-2017 Patrice Chotard <patrice.chotard@st.com>

usb: host: ohci-generic: add generic PHY support

Extend ohci-generic driver with generic PHY framework

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium

usb: host: ohci-generic: add generic PHY support

Extend ohci-generic driver with generic PHY framework

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

show more ...


# 8a51b4b3 18-Jul-2017 Patrice Chotard <patrice.chotard@st.com>

usb: host: ohci-generic: add RESET support

use array to save deasserted resets reference in order to
assert them in case of error during probe() or during driver
removal.

Signed-off-by: Patrice Cho

usb: host: ohci-generic: add RESET support

use array to save deasserted resets reference in order to
assert them in case of error during probe() or during driver
removal.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

show more ...


# 155d9f65 18-Jul-2017 Patrice Chotard <patrice.chotard@st.com>

usb: host: ohci-generic: add CLOCK support

use array to save enabled clocks reference in order to
disabled them in case of error during probe() or during
driver removal.

Signed-off-by: Patrice Chot

usb: host: ohci-generic: add CLOCK support

use array to save enabled clocks reference in order to
disabled them in case of error during probe() or during
driver removal.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

show more ...


# a821c4af 17-May-2017 Simon Glass <sjg@chromium.org>

dm: Rename dev_addr..() functions

These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing function

dm: Rename dev_addr..() functions

These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.

In the end we will have:

1. dev_read_addr...() - works on devices, supports flat/live tree
2. devfdt_get_addr...() - current functions, flat tree only
3. of_get_address() etc. - new functions, live tree only

All drivers will be written to use 1. That function will in turn call
either 2 or 3 depending on whether the flat or live tree is in use.

Note this involves changing some dead code - the imx_lpi2c.c file.

Signed-off-by: Simon Glass <sjg@chromium.org>

show more ...


# 123b7017 18-Dec-2015 Tom Rini <trini@konsulko.com>

Merge branch 'master' of git://git.denx.de/u-boot-usb


# fee331f6 14-Dec-2015 Alexey Brodkin <Alexey.Brodkin@synopsys.com>

usb: add support of generic OHCI devices

This driver is meant to be used with any OHCI-compatible host
controller in case if there's no need for platform-specific
glue such as setup of controller or

usb: add support of generic OHCI devices

This driver is meant to be used with any OHCI-compatible host
controller in case if there's no need for platform-specific
glue such as setup of controller or PHY's power mode via
GPIOs etc.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Marek Vasut <marex@denx.de>

show more ...