Skip to content

xhci: dbc: Update driver to use modern APIs

Andy Shevchenko linux-usb lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 2 repliesIn review
  2. v110 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10xhci: dbc: Drop duplicate checks for dma_free_coherent()drivers/usb/host/xhci-dbgcap.c+5 -90 replies
2/10xhci: dbc: Convert to use sysfs_streq()drivers/usb/host/xhci-dbgcap.c+2 -20 replies
3/10xhci: dbc: Use sysfs_emit() to instead of scnprintf()drivers/usb/host/xhci-dbgcap.c drivers/usb/host/xhci-dbgcap.h+17 -280 replies
4/10xhci: dbc: Use ATTRIBUTE_GROUPS()drivers/usb/host/xhci-dbgcap.c+4 -70 replies
5/10xhci: dbc: Check for errors first in xhci_dbc_stop()drivers/usb/host/xhci-dbgcap.c+4 -42 replies
6/10xhci: dbc: Don't shadow error codes in store() functionsdrivers/usb/host/xhci-dbgcap.c+18 -80 replies
7/10xhci: dbc: Replace custom return value with proper Linux error codedrivers/usb/host/xhci-dbgcap.c+1 -10 replies
8/10xhci: dbc: Use sizeof_field() where it makes sensedrivers/usb/host/xhci-dbgcap.c+1 -10 replies
9/10xhci: dbc: Use sizeof(*pointer) instead of sizeof(type)drivers/usb/host/xhci-dbgcap.c+3 -30 replies
10/10xhci: dbc: Add missing headersdrivers/usb/host/xhci-dbgcap.c+16 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/10] xhci: dbc: Update driver to use modern APIs

Update driver to use some of modern APIs. It's not a full clean up series, just a set of ad-hoc changes.

In v2:
- fixed mistakes pointed by Mathias and LKP
- sent with a cover letter

Andy Shevchenko (10):
xhci: dbc: Drop duplicate checks for dma_free_coherent()
xhci: dbc: Convert to use sysfs_streq()
xhci: dbc: Use sysfs_emit() to instead of scnprintf()
xhci: dbc: Use ATTRIBUTE_GROUPS()
xhci: dbc: Check for errors first in xhci_dbc_stop()
xhci: dbc: Don't shadow error codes in store() functions
xhci: dbc: Replace custom return value with proper Linux error code
xhci: dbc: Use sizeof_field() where it makes sense
xhci: dbc: Use sizeof(*pointer) instead of sizeof(type)
xhci: dbc: Add missing headers

 drivers/usb/host/xhci-dbgcap.c | 132 +++++++++++++++++----------------
 drivers/usb/host/xhci-dbgcap.h |   1 +
 2 files changed, 70 insertions(+), 63 deletions(-)
Signature · 1 line
2.40.0.1.gaa8946217a0b