public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Patrice Chotard <patrice.chotard@foss.st.com>, u-boot@lists.denx.de
Cc: Patrice CHOTARD <patrice.chotard@foss.st.com>,
	Patrick DELAUNAY <patrick.delaunay@foss.st.com>,
	U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com>,
	Caleb Connolly <caleb.connolly@linaro.org>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v2 8/9] board: stih410-b2260: Remove board_usb_init/cleanup()
Date: Thu, 16 Jan 2025 11:15:45 +0100	[thread overview]
Message-ID: <874j1z83ou.fsf@baylibre.com> (raw)
In-Reply-To: <20250116081738.2511223-9-patrice.chotard@foss.st.com>

Hi Patrice,

Thank you for the patch.

On jeu., janv. 16, 2025 at 09:17, Patrice Chotard <patrice.chotard@foss.st.com> wrote:

> Since DM_USB_GADGET is enable for this board, board_usb_init()
> and board_usb_cleanup() can be removed.
>
> Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>

Yay, glad to see some more board_usb_{init,cleanup}() getting removed!

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>

> ---
>
> (no changes since v1)
>
>  board/st/stih410-b2260/board.c | 29 -----------------------------
>  1 file changed, 29 deletions(-)
>
> diff --git a/board/st/stih410-b2260/board.c b/board/st/stih410-b2260/board.c
> index 3a495eb5089..8ad593cccdd 100644
> --- a/board/st/stih410-b2260/board.c
> +++ b/board/st/stih410-b2260/board.c
> @@ -7,10 +7,6 @@
>  #include <cpu_func.h>
>  #include <init.h>
>  #include <asm/cache.h>
> -#include <asm/global_data.h>
> -#include <linux/usb/otg.h>
> -#include <dwc3-uboot.h>
> -#include <usb.h>
>  
>  DECLARE_GLOBAL_DATA_PTR;
>  
> @@ -42,31 +38,6 @@ int board_init(void)
>  }
>  
>  #ifdef CONFIG_USB_DWC3
> -static struct dwc3_device dwc3_device_data = {
> -	.maximum_speed = USB_SPEED_HIGH,
> -	.dr_mode = USB_DR_MODE_PERIPHERAL,
> -	.index = 0,
> -};
> -
> -int board_usb_init(int index, enum usb_init_type init)
> -{
> -	int node;
> -	const void *blob = gd->fdt_blob;
> -
> -	/* find the snps,dwc3 node */
> -	node = fdt_node_offset_by_compatible(blob, -1, "snps,dwc3");
> -
> -	dwc3_device_data.base = fdtdec_get_addr(blob, node, "reg");
> -
> -	return dwc3_uboot_init(&dwc3_device_data);
> -}
> -
> -int board_usb_cleanup(int index, enum usb_init_type init)
> -{
> -	dwc3_uboot_exit(index);
> -	return 0;
> -}
> -
>  int g_dnl_board_usb_cable_connected(void)
>  {
>  	return 1;
> -- 
> 2.25.1

  reply	other threads:[~2025-01-16 10:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-16  8:17 [PATCH v2 0/9] Restore USB and add UMS support for STiH407-B2260 Patrice Chotard
2025-01-16  8:17 ` [PATCH v2 1/9] ARM: dts: sti: Add fixed clock for ehci and ohci nodes in stih410-b2260.dtsi Patrice Chotard
2025-01-16  8:17 ` [PATCH v2 2/9] configs: stih410-b2260: Enable DM_REGULATOR flag Patrice Chotard
2025-01-16  8:17 ` [PATCH v2 3/9] usb: dwc3-generic: Reorder include Patrice Chotard
2025-01-16 10:12   ` Mattijs Korpershoek
2025-01-20  7:20     ` Patrice CHOTARD
2025-01-16  8:17 ` [PATCH v2 4/9] usb: dwc3-generic: Add STih407 support Patrice Chotard
2025-01-16 10:24   ` Mattijs Korpershoek
2025-01-20  7:28     ` Patrice CHOTARD
2025-01-16  8:17 ` [PATCH v2 5/9] configs: stih410-b2260: Enable USB_DWC3_GENERIC and USB_DWC3_STI flags Patrice Chotard
2025-01-16  8:17 ` [PATCH v2 6/9] usb: dwc3: Remove dwc3 glue driver support for STi Patrice Chotard
2025-01-16 10:25   ` Mattijs Korpershoek
2025-01-16  8:17 ` [PATCH v2 7/9] configs: stih410-b2260: Enable DM_USB_GADGET flag Patrice Chotard
2025-01-16  8:17 ` [PATCH v2 8/9] board: stih410-b2260: Remove board_usb_init/cleanup() Patrice Chotard
2025-01-16 10:15   ` Mattijs Korpershoek [this message]
2025-01-16  8:17 ` [PATCH v2 9/9] configs: stih410-b2260: Enable CMD_USB_MASS_STORAGE flag 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=874j1z83ou.fsf@baylibre.com \
    --to=mkorpershoek@baylibre.com \
    --cc=caleb.connolly@linaro.org \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=patrice.chotard@foss.st.com \
    --cc=patrick.delaunay@foss.st.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-stm32@st-md-mailman.stormreply.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox