Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion drivers/net/mctp/mctp-i3c.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,21 @@ static void mctp_i3c_xmit(struct mctp_i3c_bus *mbus, struct sk_buff *skb)
data[data_len] = pec;

xfer.data.out = data;

/* add sleep of 1ms before and after the trasmit to give
* time to the slow target devices to empty the previously
* sent requests. Needed especially when the MCTP message
* consists of multiple fragments.
*/
msleep (1);
rc = i3c_device_do_priv_xfers(mi->i3c, &xfer, 1);
msleep (1);
if (rc == 0) {
stats->tx_bytes += data_len;
stats->tx_packets++;
} else {
stats->tx_errors++;
}

out:
if (mi)
mutex_unlock(&mi->lock);
Expand Down
2 changes: 1 addition & 1 deletion net/mctp/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <trace/events/mctp.h>

static const unsigned int mctp_message_maxlen = 64 * 1024;
static const unsigned long mctp_key_lifetime = 6 * CONFIG_HZ;
static const unsigned long mctp_key_lifetime = 2 * 6 * CONFIG_HZ;

static void mctp_flow_prepare_output(struct sk_buff *skb, struct mctp_dev *dev);

Expand Down