[U-Boot] [PATCH v2 0/4] Make some changes to SDP

2019-08-21 Thread Sherry Sun
Changes in v2: - Update the commit log in patch 1/4. The current patches have been validated on both i.MX8 and i.MX8M platform. This patchset adds: 1. Add usb_gadget_initialize() and usb_gadget_release() to initialize and release UDC during sdp download. 2. Add high speed endpoint descriptor for

[U-Boot] [PATCH v2 4/4] SDP: Call usb_gadget_initialize and usb_gadget_release to support UDC

2019-08-21 Thread Sherry Sun
Need initialize UDC before run sdp download and release it at the end of sdp. Signed-off-by: Sherry Sun Signed-off-by: Frank Li --- common/spl/spl_sdp.c | 4 1 file changed, 4 insertions(+) diff --git a/common/spl/spl_sdp.c b/common/spl/spl_sdp.c index 806bf1327e..7b0a213d4c 100644 ---

Re: [U-Boot] [EXT] Re: [PATCH 1/1] nvme: Fix PRP Offset Invalid

2019-08-21 Thread Bin Meng
Hi Aaron, On Wed, Aug 21, 2019 at 7:26 PM Aaron Williams wrote: > > Hi Bin, > > I submitted another patch via git. Hopefully it went through. I'm new to > trying to get email to work with GIT since until now nobody in my group has > had access to a working SMTP server so I'm still learning how

[U-Boot] [PATCH v5 2/7] usb: gadget: Add the cadence USB3 gadget driver

2019-08-21 Thread Sherry Sun
This driver is ported from NXP i.MX U-Boot version imx_v2019.04 and some changes have also been made to adapt to U-Boot. Add the Cadence USB3 IP(CDNS3) driver for the gadget (device mode). The CDNS3 gadget driver support DM mode. CONFIG_DM_USB_GADGET should be enabled when use this driver.

[U-Boot] [PATCH v5 3/7] usb: gadget: Add match_ep call back to usb_gadget_ops

2019-08-21 Thread Sherry Sun
Since some new fields in usb_ep structure been moved to usb_ss_ep. The CDNS3 gadget driver should replies on this operation to bind the usb_ss_ep with the endpoint descriptor when function layer uses usb_ep_autoconfig to add endpoint descriptors to gadget. So that CDNS3 driver can know the EP

[U-Boot] [PATCH v5 4/7] usb: gadget: Add gadget_is_cdns3 checking to provide bcdUSB value

2019-08-21 Thread Sherry Sun
Like other usb controllers, add gadget_is_cdns3 checking to provide bcdUSB value in device descriptor. Signed-off-by: Sherry Sun --- drivers/usb/gadget/gadget_chips.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/usb/gadget/gadget_chips.h

[U-Boot] [PATCH v5 5/7] usb: host: Add the USB3 host driver

2019-08-21 Thread Sherry Sun
Add the USB3 host driver for NXP imx8 platform, and the cadence IP is in it. The USB3 host driver support DM mode, it will probe USB3 host node in dts. Signed-off-by: Sherry Sun --- drivers/usb/host/Kconfig | 9 ++ drivers/usb/host/Makefile| 1 + drivers/usb/host/xhci-imx8.c | 210

[U-Boot] [PATCH v5 7/7] usb: gadget: core: introduce ->udc_set_speed() method

2019-08-21 Thread Sherry Sun
This patch was copied from kernel commit: 67fdfda4a99ed. Sometimes, the gadget driver we want to run has max_speed lower than what the UDC supports. In such situations, UDC might want to make sure we don't try to connect on speeds not supported by the gadget driver because that will just fail.

[U-Boot] [PATCH v2 1/4] imx: spl: Change USB boot device type for imx8/8m

2019-08-21 Thread Sherry Sun
The SPL SDP is configured as BOOT_DEVICE_BOARD, but for i.MX8 and i.MX8M, the boot_device_spl is still set to BOOT_DEVICE_USB, which may cause SDP can't work, in order to fix this issue, when booting from USB in spl, we change its type to BOOT_DEVICE_BOARD. Signed-off-by: Sherry Sun

[U-Boot] [PATCH v2 2/4] SDP: use CONFIG_SDP_LOADADDR as default load address

2019-08-21 Thread Sherry Sun
If SDP_WRITE and SDP_JUMP command addr is zero, use CONFIG_SDP_LOADADDR as default address. Signed-off-by: Sherry Sun Signed-off-by: Frank Li --- drivers/usb/gadget/Kconfig | 4 drivers/usb/gadget/f_sdp.c | 6 -- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH v2 3/4] SDP: fix wrong usb request size and add high speed endpoint descriptor

2019-08-21 Thread Sherry Sun
Because the buffer length of sdp usb request is 65, we have to allocate 65 bytes not 64 bytes. Otherwise there is potential buffer overflow. So the wMaxPacketSize of fullspeed can't meet the needs. Add HS endpoint descriptor for SDP. Then we can use high speed endpoint, and the SDP device can

<    1   2