All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v4 00/11] usb: Extend ehci and ohci generic drivers
@ 2017-05-24 13:01 patrice.chotard at st.com
  2017-05-24 13:01 ` [U-Boot] [PATCH v4 01/11] reset: add reset_request() patrice.chotard at st.com
                   ` (11 more replies)
  0 siblings, 12 replies; 25+ messages in thread
From: patrice.chotard at st.com @ 2017-05-24 13:01 UTC (permalink / raw)
  To: u-boot

From: Patrice Chotard <patrice.chotard@st.com>

This series improves generic ehci and ohci drivers by addition of :
	_ error path during probe (clocks, resets and phy release)
	_ .remove callback
	_ add generic PHY framework for both generic ehci and ohci drivers
	_ add RESET and CLOCK framework for generic ohci driver

To implement these features, some new methods are needed in RESET and
CLOCKS frameworks :
	_ add reset_request(), reset_count() and reset_assert_all() methods in
	  RESET framework
	_ add clk_count() and add clk_disable_all() methods in CLOCK framework

v4:	_ add clk_disable_all() and reset_assert_all() methods into CLOCK and
	  RESET framework as suggested by Simon Glass and Marek Vasut
	_ add reset_count() and clk_count() methods which returns respectively the 
	  number of resets and clocks declared into "resets" and "clocks" DT properties.
	  This allows to allocate the right amount of memory to keep resets and clocks
	  reference
	_ update the memory allocation for deasserted resets and enabled
	  clocks reference list. Replace lists by arrays.
	
v3:     _ keep enabled clocks and deasserted resets reference in list in order to 
	  disable clock or assert resets in error path or in .remove callback
	_ add missing commit message
	_ use struct generic_ehci * instead of struct udevice * as parameter for
	  ehci_release_resets() and ehci_release_clocks()
	_ test return value on generic_phy_get_by_index() and
	  generic_phy_init()
	_ split previous patch 5 in 3 independant patch for CLOCK, RESET and PHY support

v2:     _ add needed reset_request() in RESET framework
	_ add error path in ehci/ohci-generic to disable clocks and to assert
	resets
	_ add .remove callback with clocks, resets and phy release
	_ split the replacement of printf() by error() in an independant patch

Patrice Chotard (11):
  reset: add reset_request()
  reset: add reset_count()
  reset: add reset_assert_all()
  clk: add clk_count()
  clk: add clk_disable_all()
  usb: host: ehci-generic: replace printf() by error()
  usb: host: ehci-generic: add error path and .remove callback
  usb: host: ehci-generic: add generic PHY support
  usb: host: ohci-generic: add CLOCK support
  usb: host: ohci-generic: add RESET support
  usb: host: ohci-generic: add generic PHY support

 drivers/clk/clk-uclass.c        |  34 ++++++++++
 drivers/reset/reset-uclass.c    |  45 +++++++++++++
 drivers/usb/host/ehci-generic.c | 142 +++++++++++++++++++++++++++++++++-------
 drivers/usb/host/ohci-generic.c | 121 +++++++++++++++++++++++++++++++++-
 include/clk.h                   |  22 +++++++
 include/reset.h                 |  37 +++++++++++
 6 files changed, 376 insertions(+), 25 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 25+ messages in thread
* [U-Boot] [PATCH v4 00/11] usb: Extend ehci and ohci generic drivers
@ 2017-05-24 13:07 patrice.chotard at st.com
  2017-05-24 13:07 ` [U-Boot] [PATCH v4 01/11] reset: add reset_request() patrice.chotard at st.com
  0 siblings, 1 reply; 25+ messages in thread
From: patrice.chotard at st.com @ 2017-05-24 13:07 UTC (permalink / raw)
  To: u-boot

From: Patrice Chotard <patrice.chotard@st.com>

This series improves generic ehci and ohci drivers by addition of :
	_ error path during probe (clocks, resets and phy release)
	_ .remove callback
	_ add generic PHY framework for both generic ehci and ohci drivers
	_ add RESET and CLOCK framework for generic ohci driver

To implement these features, some new methods are needed in RESET and
CLOCKS frameworks :
	_ add reset_request(), reset_count() and reset_assert_all() methods in
	  RESET framework
	_ add clk_count() and add clk_disable_all() methods in CLOCK framework

v4:	_ add clk_disable_all() and reset_assert_all() methods into CLOCK and
	  RESET framework as suggested by Simon Glass and Marek Vasut
	_ add reset_count() and clk_count() methods which returns respectively the 
	  number of resets and clocks declared into "resets" and "clocks" DT properties.
	  This allows to allocate the right amount of memory to keep resets and clocks
	  reference
	_ update the memory allocation for deasserted resets and enabled
	  clocks reference list. Replace lists by arrays.
	
v3:     _ keep enabled clocks and deasserted resets reference in list in order to 
	  disable clock or assert resets in error path or in .remove callback
	_ add missing commit message
	_ use struct generic_ehci * instead of struct udevice * as parameter for
	  ehci_release_resets() and ehci_release_clocks()
	_ test return value on generic_phy_get_by_index() and
	  generic_phy_init()
	_ split previous patch 5 in 3 independant patch for CLOCK, RESET and PHY support

v2:     _ add needed reset_request() in RESET framework
	_ add error path in ehci/ohci-generic to disable clocks and to assert
	resets
	_ add .remove callback with clocks, resets and phy release
	_ split the replacement of printf() by error() in an independant patch

Patrice Chotard (11):
  reset: add reset_request()
  reset: add reset_count()
  reset: add reset_assert_all()
  clk: add clk_count()
  clk: add clk_disable_all()
  usb: host: ehci-generic: replace printf() by error()
  usb: host: ehci-generic: add error path and .remove callback
  usb: host: ehci-generic: add generic PHY support
  usb: host: ohci-generic: add CLOCK support
  usb: host: ohci-generic: add RESET support
  usb: host: ohci-generic: add generic PHY support

 drivers/clk/clk-uclass.c        |  34 ++++++++++
 drivers/reset/reset-uclass.c    |  45 +++++++++++++
 drivers/usb/host/ehci-generic.c | 142 +++++++++++++++++++++++++++++++++-------
 drivers/usb/host/ohci-generic.c | 121 +++++++++++++++++++++++++++++++++-
 include/clk.h                   |  22 +++++++
 include/reset.h                 |  37 +++++++++++
 6 files changed, 376 insertions(+), 25 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2017-06-05  8:59 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 13:01 [U-Boot] [PATCH v4 00/11] usb: Extend ehci and ohci generic drivers patrice.chotard at st.com
2017-05-24 13:01 ` [U-Boot] [PATCH v4 01/11] reset: add reset_request() patrice.chotard at st.com
2017-05-24 13:01 ` [U-Boot] [PATCH v4 02/11] reset: add reset_count() patrice.chotard at st.com
2017-06-01  3:10   ` Simon Glass
2017-06-01  7:49     ` Patrice CHOTARD
2017-05-24 13:01 ` [U-Boot] [PATCH v4 03/11] reset: add reset_assert_all() patrice.chotard at st.com
2017-06-01  3:10   ` Simon Glass
2017-05-24 13:01 ` [U-Boot] [PATCH v4 04/11] clk: add clk_count() patrice.chotard at st.com
2017-06-01  3:10   ` Simon Glass
2017-06-01  7:56     ` Patrice CHOTARD
2017-06-05  8:59       ` Patrice CHOTARD
2017-05-24 13:01 ` [U-Boot] [PATCH v4 05/11] clk: add clk_disable_all() patrice.chotard at st.com
2017-05-24 13:01 ` [U-Boot] [PATCH v4 06/11] usb: host: ehci-generic: replace printf() by error() patrice.chotard at st.com
2017-05-24 13:01 ` [U-Boot] [PATCH v4 07/11] usb: host: ehci-generic: add error path and .remove callback patrice.chotard at st.com
2017-06-01  3:10   ` Simon Glass
2017-05-24 13:01 ` [U-Boot] [PATCH v4 08/11] usb: host: ehci-generic: add generic PHY support patrice.chotard at st.com
2017-06-01  3:10   ` Simon Glass
2017-05-24 13:01 ` [U-Boot] [PATCH v4 09/11] usb: host: ohci-generic: add CLOCK support patrice.chotard at st.com
2017-06-01  3:10   ` Simon Glass
2017-05-24 13:01 ` [U-Boot] [PATCH v4 10/11] usb: host: ohci-generic: add RESET support patrice.chotard at st.com
2017-06-01  3:11   ` Simon Glass
2017-05-24 13:01 ` [U-Boot] [PATCH v4 11/11] usb: host: ohci-generic: add generic PHY support patrice.chotard at st.com
2017-06-01  3:11   ` Simon Glass
2017-05-24 13:04 ` [U-Boot] [PATCH v4 00/11] usb: Extend ehci and ohci generic drivers Patrice CHOTARD
2017-05-24 13:07 patrice.chotard at st.com
2017-05-24 13:07 ` [U-Boot] [PATCH v4 01/11] reset: add reset_request() patrice.chotard at st.com

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.