All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick DELAUNAY <patrick.delaunay@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RESEND][PATCH v1 3/4] board: stm32mp1: Add tx_fifo_sz_array support
Date: Fri, 22 Mar 2019 10:18:51 +0000	[thread overview]
Message-ID: <08746f5e5d374d2d893144f5924167f2@SFHDAG6NODE3.st.com> (raw)
In-Reply-To: <9bdd0165-91b8-2291-3c41-d0afceba568e@denx.de>

> From: U-Boot <u-boot-bounces@lists.denx.de> On Behalf Of Marek Vasut
> Sent: lundi 18 mars 2019 19:47
> 
> On 3/18/19 5:59 PM, Patrice CHOTARD wrote:
> > Hi Marek
> >
> > +Patrick
> >
> > On 3/14/19 1:00 PM, Marek Vasut wrote:
> >> On 3/14/19 11:51 AM, Patrice Chotard wrote:
> >>> Allows to use an array of tx-fifo-size defined in device tree as
> >>> following:
> >>>    g-tx-fifo-size = <128 128 64 64 64 64 32 32>;
> >>>
> >>> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
> >>> ---
> >>>
> >>>  board/st/stm32mp1/stm32mp1.c | 11 +++++++++--
> >>>  1 file changed, 9 insertions(+), 2 deletions(-)
> >>>
> >>> diff --git a/board/st/stm32mp1/stm32mp1.c
> >>> b/board/st/stm32mp1/stm32mp1.c index 54feca0ecff5..81c080ff3199
> >>> 100644
> >>> --- a/board/st/stm32mp1/stm32mp1.c
> >>> +++ b/board/st/stm32mp1/stm32mp1.c
> >>> @@ -42,6 +42,7 @@ int board_usb_init(int index, enum usb_init_type init)
> >>>  	int node;
> >>>  	int phy_provider;
> >>>  	int ret;
> >>> +	int count;
> >>>
> >>>  	/* find the usb otg node */
> >>>  	node = fdt_node_offset_by_compatible(blob, -1, "snps,dwc2"); @@
> >>> -138,8 +139,14 @@ int board_usb_init(int index, enum usb_init_type init)
> >>>  						     "g-rx-fifo-size", 0);
> >>>  	stm32mp_otg_data.np_tx_fifo_sz = fdtdec_get_int(blob, node,
> >>>  							"g-np-tx-fifo-size", 0);
> >>> -	stm32mp_otg_data.tx_fifo_sz = fdtdec_get_int(blob, node,
> >>> -						     "g-tx-fifo-size", 0);
> >>> +
> >>> +	count = fdtdec_get_int_array_count(blob, node, "g-tx-fifo-size",
> >>> +
> 	&stm32mp_otg_data.tx_fifo_sz_array[DWC2_SIZE_OFFS],
> >>> +			ARRAY_SIZE(stm32mp_otg_data.tx_fifo_sz_array));
> >>> +
> >>> +	if (count != -FDT_ERR_NOTFOUND)
> >>> +		stm32mp_otg_data.tx_fifo_sz_array[DWC2_SIZE_NB_OFFS] =
> count;
> >>
> >> This should be in the driver , not board code.
> >
> > Ok, Patrick Delaunay will rework the dwc2 gadget driver to be able to
> > retrieve device tree properties.
> > The series will be sent soon.
> 
> Thanks.
> 
> That said, are these fixes for current release or stuff for the next one ?

I am preparing a serie for the next release.
I think it is too late for the current one and the serie depends of the stm32mp1 baord update not yet merged.

- DWC2 USB gadget migration to driver model (minimal)
- change STM32MP1 board to use USB gadget uclass
- introduce STUSB1600 Type C controller for DK2

These Seis will superseded the Patrice patch.

=> after this serie, the USB should be work in upstream tree for stm32mp1 board.
 
I expect to sent the serie next week.

Regards

> --
> Best regards,
> Marek Vasut
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot

Regards
Patrick

  reply	other threads:[~2019-03-22 10:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14 10:51 [U-Boot] [RESEND][PATCH v1 0/4] usb: dwc2_udc_otg: Add tx_fifo_sz array support Patrice Chotard
2019-03-14 10:51 ` [U-Boot] [RESEND][PATCH v1 1/4] usb: dwc2_udc_otg: Read MAX_HW_ENDPOINT from HWCFG4 register Patrice Chotard
2019-03-14 10:51 ` [U-Boot] [RESEND][PATCH v1 2/4] usb: dwc2_udc_otg: Add tx_fifo_sz array support Patrice Chotard
2019-03-14 11:59   ` Marek Vasut
2019-03-18 16:58     ` Patrice CHOTARD
2019-03-14 10:51 ` [U-Boot] [RESEND][PATCH v1 3/4] board: stm32mp1: Add tx_fifo_sz_array support Patrice Chotard
2019-03-14 12:00   ` Marek Vasut
2019-03-18 16:59     ` Patrice CHOTARD
2019-03-18 18:47       ` Marek Vasut
2019-03-22 10:18         ` Patrick DELAUNAY [this message]
2019-03-22 10:50           ` Marek Vasut
2019-03-29 14:49             ` Patrick DELAUNAY
2019-03-14 10:51 ` [U-Boot] [RESEND][PATCH v1 4/4] ARM: dts: stm32: Remove g-tx-fifo-size from stm32mp157c-ev1-u-boot Patrice Chotard

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=08746f5e5d374d2d893144f5924167f2@SFHDAG6NODE3.st.com \
    --to=patrick.delaunay@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.