All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrice CHOTARD <patrice.chotard@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v8 00/10] usb: Extend ehci and ohci generic drivers
Date: Wed, 21 Jun 2017 08:35:07 +0000	[thread overview]
Message-ID: <69632fbb-2a0f-4e8a-1e9c-2e3340fcdbc1@st.com> (raw)
In-Reply-To: <1498031424-15931-1-git-send-email-patrice.chotard@st.com>

Don't take care of this series, I need to resend a new one

Sorry

On 06/21/2017 09:50 AM, patrice.chotard at st.com wrote:
> 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, clock and
> in dm/core framework:
> 	_ add reset_request() and reset_assert_all() methods in RESET framework
> 	_ add clk_count() and clk_disable_all() methods in CLOCK framework
> 	_ add ofnode_count_phandle_with_args() in dm/core
> 
> v8:	_ rework error path by propagating the initial error code until the end of probe()
> 	_ replace devm_kmalloc() with devm_kcalloc()
> 	_ fix cosmetics remarks
> 
> v7:	_ replace clk_count() and reset_count() methods by
> 	  ofnode_count_phandle_with_args() in patches 3, 4 and 5	
> 
> v6:	_ replace clk_get_by_index() by dev_read_phandle_with_args() in
> 	  clk_count() in patch 4
> 	_  add Reviewed-by Simon Glass for patch 2 and 5
> 
> v5:	_ rebase on top of dm/master requested by Simon Glass in order to use
> 	  livetree update
> 	_ replace fdtdec_parse_phandle_with_args() by dev_read_phandle_with_args() in patch 2
> 
> 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 (10):
>    reset: add reset_request()
>    reset: add reset_assert_all()
>    clk: add clk_disable_all()
>    dm: core: add ofnode_count_phandle_with_args()
>    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        |  22 ++++++
>   drivers/core/of_access.c        |   7 ++
>   drivers/core/ofnode.c           |  12 ++++
>   drivers/reset/reset-uclass.c    |  31 +++++++++
>   drivers/usb/host/ehci-generic.c | 149 +++++++++++++++++++++++++++++++++-------
>   drivers/usb/host/ohci-generic.c | 130 ++++++++++++++++++++++++++++++++++-
>   include/clk.h                   |  10 +++
>   include/dm/of_access.h          |  18 +++++
>   include/dm/ofnode.h             |  17 +++++
>   include/reset.h                 |  26 +++++++
>   10 files changed, 397 insertions(+), 25 deletions(-)
> 

      parent reply	other threads:[~2017-06-21  8:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-21  7:50 [U-Boot] [PATCH v8 00/10] usb: Extend ehci and ohci generic drivers patrice.chotard at st.com
2017-06-21  7:50 ` [U-Boot] [PATCH v8 01/10] reset: add reset_request() patrice.chotard at st.com
2017-06-21  7:50 ` [U-Boot] [PATCH v8 02/10] reset: add reset_assert_all() patrice.chotard at st.com
2017-06-21  9:02   ` Lothar Waßmann
2017-06-21 11:18     ` Patrice CHOTARD
2017-06-21  7:50 ` [U-Boot] [PATCH v8 03/10] clk: add clk_disable_all() patrice.chotard at st.com
2017-06-21  7:50 ` [U-Boot] [PATCH v8 04/10] dm: core: add ofnode_count_phandle_with_args() patrice.chotard at st.com
2017-06-21  7:50 ` [U-Boot] [PATCH v8 05/10] usb: host: ehci-generic: replace printf() by error() patrice.chotard at st.com
2017-06-21  7:50 ` [U-Boot] [PATCH v8 06/10] usb: host: ehci-generic: add error path and .remove callback patrice.chotard at st.com
2017-06-21  7:50 ` [U-Boot] [PATCH v8 07/10] usb: host: ehci-generic: add generic PHY support patrice.chotard at st.com
2017-06-21  7:50 ` [U-Boot] [PATCH v8 08/10] usb: host: ohci-generic: add CLOCK support patrice.chotard at st.com
2017-07-06  4:48   ` Simon Glass
2017-07-06  7:09     ` Patrice CHOTARD
2017-06-21  7:50 ` [U-Boot] [PATCH v8 09/10] usb: host: ohci-generic: add RESET support patrice.chotard at st.com
2017-06-21  7:50 ` [U-Boot] [PATCH v8 10/10] usb: host: ohci-generic: add generic PHY support patrice.chotard at st.com
2017-06-21  8:35 ` Patrice CHOTARD [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=69632fbb-2a0f-4e8a-1e9c-2e3340fcdbc1@st.com \
    --to=patrice.chotard@st.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.