| c05ad0fb | 20-Jan-2023 |
Andy Shevchenko <[email protected]> |
usb: fotg210: use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly w
usb: fotg210: use devm_platform_get_and_ioremap_resource()
Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does.
Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 6a426eb4 | 20-Jan-2023 |
Andy Shevchenko <[email protected]> |
usb: fotg210-udc: remove redundant error logging
A call to platform_get_irq() already prints an error on failure within its own implementation. So printing another error based on its return value in
usb: fotg210-udc: remove redundant error logging
A call to platform_get_irq() already prints an error on failure within its own implementation. So printing another error based on its return value in the caller is redundant and should be removed. The clean up also makes if condition block braces unnecessary. Remove that as well.
Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 7159deb7 | 20-Jan-2023 |
Andy Shevchenko <[email protected]> |
usb: fotg210-hcd: Don't shadow error codes in store()
kstrtox() along with regmap API can return different error codes based on circumstances.
Don't shadow them when returning to the caller.
Signe
usb: fotg210-hcd: Don't shadow error codes in store()
kstrtox() along with regmap API can return different error codes based on circumstances.
Don't shadow them when returning to the caller.
Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 861fa1c3 | 20-Jan-2023 |
Andy Shevchenko <[email protected]> |
usb: fotg210-hcd: use sysfs_emit() to instead of scnprintf()
Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting t
usb: fotg210-hcd: use sysfs_emit() to instead of scnprintf()
Follow the advice of the Documentation/filesystems/sysfs.rst and show() should only use sysfs_emit() or sysfs_emit_at() when formatting the value to be returned to user space.
Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| c5d4297f | 23-Jan-2023 |
Fabian Vogt <[email protected]> |
fotg210-udc: Improve device initialization
Reset the device explicitly to get into a known state and also set the chip enable bit. Additionally, mask interrupts which aren't handled.
Signed-off-by:
fotg210-udc: Improve device initialization
Reset the device explicitly to get into a known state and also set the chip enable bit. Additionally, mask interrupts which aren't handled.
Signed-off-by: Fabian Vogt <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 3e679bde | 18-Jan-2023 |
Linus Walleij <[email protected]> |
usb: fotg210-udc: Implement VBUS session
Implement VBUS session handling for FOTG210. This is mainly used by the UDC driver which needs to call down to the FOTG210 core and enable/disable VBUS, as t
usb: fotg210-udc: Implement VBUS session
Implement VBUS session handling for FOTG210. This is mainly used by the UDC driver which needs to call down to the FOTG210 core and enable/disable VBUS, as this needs to be handled outside of the HCD and UDC drivers, by platform specific glue code.
The Gemini has a special bit in a system register to turn VBUS on and off so we implement this in the FOTG210 core.
Signed-off-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|
| 816f518d | 18-Jan-2023 |
Linus Walleij <[email protected]> |
usb: fotg210-udc: Assign of_node and speed on start
Follow the example set by other drivers to assign of_node and speed to the driver when binding, also print bound info akin to other UDC drivers.
usb: fotg210-udc: Assign of_node and speed on start
Follow the example set by other drivers to assign of_node and speed to the driver when binding, also print bound info akin to other UDC drivers.
Signed-off-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
show more ...
|