| 155e740f | 04-Dec-2015 |
Marek Vasut <marex@denx.de> |
usb: s3c-otg: Rename remaining local s3c_*() functions
The driver is actually for the Designware DWC2 controller. This patch renames the remaining local s3c_*() functions to reflect this.
Signed-of
usb: s3c-otg: Rename remaining local s3c_*() functions
The driver is actually for the Designware DWC2 controller. This patch renames the remaining local s3c_*() functions to reflect this.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| f52dd802 | 04-Dec-2015 |
Marek Vasut <marex@denx.de> |
usb: s3c-otg: Rename s3c_udc_*() functions
The driver is actually for the Designware DWC2 controller. This patch renames the s3c_ep_*() functions to reflect this. The function s3c_udc_probe() is a s
usb: s3c-otg: Rename s3c_udc_*() functions
The driver is actually for the Designware DWC2 controller. This patch renames the s3c_ep_*() functions to reflect this. The function s3c_udc_probe() is a special case and is not renamed by this patch yet.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| ae1f2f0c | 04-Dec-2015 |
Marek Vasut <marex@denx.de> |
usb: s3c-otg: Rename s3c_ep_*() functions
The driver is actually for the Designware DWC2 controller. This patch renames the s3c_ep_*() functions to reflect this.
Signed-off-by: Marek Vasut <marex@d
usb: s3c-otg: Rename s3c_ep_*() functions
The driver is actually for the Designware DWC2 controller. This patch renames the s3c_ep_*() functions to reflect this.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 28b97748 | 04-Dec-2015 |
Marek Vasut <marex@denx.de> |
usb: s3c-otg: Rename s3c_ep0_*() functions
The driver is actually for the Designware DWC2 controller. This patch renames the s3c_ep0_*() functions to reflect this.
Signed-off-by: Marek Vasut <marex
usb: s3c-otg: Rename s3c_ep0_*() functions
The driver is actually for the Designware DWC2 controller. This patch renames the s3c_ep0_*() functions to reflect this.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 1f99ab5c | 04-Dec-2015 |
Marek Vasut <marex@denx.de> |
usb: s3c-otg: Rename struct s3c_usbotg_phy to dwc2_usbotg_phy
The driver is actually for the Designware DWC2 controller. This patch renames struct s3c_usbotg_phy to struct dwc2_usbotg_phy to make th
usb: s3c-otg: Rename struct s3c_usbotg_phy to dwc2_usbotg_phy
The driver is actually for the Designware DWC2 controller. This patch renames struct s3c_usbotg_phy to struct dwc2_usbotg_phy to make things more obvious and clear.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 2c12ff03 | 04-Dec-2015 |
Marek Vasut <marex@denx.de> |
usb: s3c-otg: Split private bits from s3c_udc.h
Most of the functions are local to the s3c_udc driver, remove them from the s3c_udc.h header to stop those bits from propagating all over the place. I
usb: s3c-otg: Split private bits from s3c_udc.h
Most of the functions are local to the s3c_udc driver, remove them from the s3c_udc.h header to stop those bits from propagating all over the place. Instead, move all the private stuff into new private s3c_udc_otg_priv.h header.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 01472813 | 04-Dec-2015 |
Marek Vasut <marex@denx.de> |
usb: s3c-otg: Rename struct s3c_usbotg_reg to dwc2_usbotg_reg
The driver is actually for the Designware DWC2 controller. This patch renames struct s3c_usbotg_reg to struct dwc2_usbotg_reg to make th
usb: s3c-otg: Rename struct s3c_usbotg_reg to dwc2_usbotg_reg
The driver is actually for the Designware DWC2 controller. This patch renames struct s3c_usbotg_reg to struct dwc2_usbotg_reg to make things more obvious and clear.
Signed-off-by: Marek Vasut <marex@denx.de>
show more ...
|
| 6c9e00ee | 15-Oct-2015 |
Maxime Ripard <maxime.ripard@free-electrons.com> |
fastboot: Implement flashing session counter
The fastboot flash command that writes an image to a partition works in several steps:
1 - Retrieve the maximum size the device can download through the
fastboot: Implement flashing session counter
The fastboot flash command that writes an image to a partition works in several steps:
1 - Retrieve the maximum size the device can download through the "max-download-size" variable
2 - Retrieve the partition type through the "partition-type:%s" variable, that indicates whether or not the partition needs to be erased (even though the fastboot client has minimal support for that)
3a - If the image is smaller than what the device can handle, send the image and flash it.
3b - If the image is larger than what the device can handle, create a sparse image, and split it in several chunks that would fit. Send the chunk, flash it, repeat until we have no more data to send.
However, in the 3b case, the subsequent transfers have no particular identifiers, the protocol just assumes that you would resume the writes where you left it.
While doing so works well, it also means that flashing two subsequent images on the same partition (for example because the user made a mistake) would not work withouth flashing another partition or rebooting the board, which is not really intuitive.
Since we have always the same pattern, we can however maintain a counter that will be reset every time the client will retrieve max-download-size, and incremented after each buffer will be flashed, that will allow us to tell whether we should simply resume the flashing where we were, or start back at the beginning of the partition.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>
show more ...
|
| f6fcebf5 | 30-Oct-2015 |
Michal Simek <michal.simek@xilinx.com> |
usb: udc: Fix warnings on 64-bit builds
Cast u32 bit value to 64bit before recasting to 64bit pointer to avoid pointer from integer cast size mismatch warnings.
Warning log: +../drivers/usb/gadget/
usb: udc: Fix warnings on 64-bit builds
Cast u32 bit value to 64bit before recasting to 64bit pointer to avoid pointer from integer cast size mismatch warnings.
Warning log: +../drivers/usb/gadget/udc/udc-core.c: In function ‘usb_gadget_unmap_request’: +../drivers/usb/gadget/udc/udc-core.c:68:19: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
show more ...
|