Skip to content

Commit 57c4011

Browse files
nxpfranklialexandrebelloni
authored andcommitted
net: mctp i3c: switch to use i3c_xfer from i3c_priv_xfer
Switch to use i3c_xfer instead of i3c_priv_xfer because framework will update to support HDR mode. i3c_priv_xfer is now an alias of i3c_xfer. Replace i3c_device_do_priv_xfers() with i3c_device_do_xfers(..., I3C_SDR) to align with the new API. Prepare for removal of i3c_priv_xfer and i3c_device_do_priv_xfers(). Signed-off-by: Frank Li <Frank.Li@nxp.com> Acked-by: Matt Johnston <matt@codeconstruct.com.au> Link: https://patch.msgid.link/20251028-lm75-v1-2-9bf88989c49c@nxp.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 1f08a91 commit 57c4011

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/net/mctp/mctp-i3c.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ struct mctp_i3c_internal_hdr {
9999

100100
static int mctp_i3c_read(struct mctp_i3c_device *mi)
101101
{
102-
struct i3c_priv_xfer xfer = { .rnw = 1, .len = mi->mrl };
102+
struct i3c_xfer xfer = { .rnw = 1, .len = mi->mrl };
103103
struct net_device_stats *stats = &mi->mbus->ndev->stats;
104104
struct mctp_i3c_internal_hdr *ihdr = NULL;
105105
struct sk_buff *skb = NULL;
@@ -127,7 +127,7 @@ static int mctp_i3c_read(struct mctp_i3c_device *mi)
127127

128128
/* Make sure netif_rx() is read in the same order as i3c. */
129129
mutex_lock(&mi->lock);
130-
rc = i3c_device_do_priv_xfers(mi->i3c, &xfer, 1);
130+
rc = i3c_device_do_xfers(mi->i3c, &xfer, 1, I3C_SDR);
131131
if (rc < 0)
132132
goto err;
133133

@@ -360,7 +360,7 @@ mctp_i3c_lookup(struct mctp_i3c_bus *mbus, u64 pid)
360360
static void mctp_i3c_xmit(struct mctp_i3c_bus *mbus, struct sk_buff *skb)
361361
{
362362
struct net_device_stats *stats = &mbus->ndev->stats;
363-
struct i3c_priv_xfer xfer = { .rnw = false };
363+
struct i3c_xfer xfer = { .rnw = false };
364364
struct mctp_i3c_internal_hdr *ihdr = NULL;
365365
struct mctp_i3c_device *mi = NULL;
366366
unsigned int data_len;
@@ -409,7 +409,7 @@ static void mctp_i3c_xmit(struct mctp_i3c_bus *mbus, struct sk_buff *skb)
409409
data[data_len] = pec;
410410

411411
xfer.data.out = data;
412-
rc = i3c_device_do_priv_xfers(mi->i3c, &xfer, 1);
412+
rc = i3c_device_do_xfers(mi->i3c, &xfer, 1, I3C_SDR);
413413
if (rc == 0) {
414414
stats->tx_bytes += data_len;
415415
stats->tx_packets++;

0 commit comments

Comments
 (0)