projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0902ca
)
can: gs_usb: document the PAD_PKTS_TO_MAX_PKT_SIZE feature
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Sun, 7 Nov 2021 13:52:10 +0000
(14:52 +0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Thu, 10 Mar 2022 08:49:15 +0000
(09:49 +0100)
The widely used open source firmware candleLight supports padding the
USB packets to max packet size to improve performance on Windows
systems.
This patch documents the bit.
Link:
https://lore.kernel.org/all/20220309124132.291861-12-mkl@pengutronix.de
Link:
https://github.com/candle-usb/candleLight_fw/pull/7
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/usb/gs_usb.c
b/drivers/net/can/usb/gs_usb.c
index e739980589d7fe622d8a75fa49c7808c3d3f2108..52c84792361e832ce177ab208fbcfd123776846b 100644
(file)
--- a/
drivers/net/can/usb/gs_usb.c
+++ b/
drivers/net/can/usb/gs_usb.c
@@
-97,6
+97,7
@@
struct gs_device_config {
#define GS_CAN_MODE_HW_TIMESTAMP BIT(4)
/* GS_CAN_FEATURE_IDENTIFY BIT(5) */
/* GS_CAN_FEATURE_USER_ID BIT(6) */
+#define GS_CAN_MODE_PAD_PKTS_TO_MAX_PKT_SIZE BIT(7)
struct gs_device_mode {
__le32 mode;
@@
-128,6
+129,7
@@
struct gs_identify_mode {
#define GS_CAN_FEATURE_HW_TIMESTAMP BIT(4)
#define GS_CAN_FEATURE_IDENTIFY BIT(5)
#define GS_CAN_FEATURE_USER_ID BIT(6)
+#define GS_CAN_FEATURE_PAD_PKTS_TO_MAX_PKT_SIZE BIT(7)
struct gs_device_bt_const {
__le32 feature;