mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
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>
This commit is contained in:
parent
1f08a91cec
commit
57c4011d36
|
|
@ -99,7 +99,7 @@ struct mctp_i3c_internal_hdr {
|
|||
|
||||
static int mctp_i3c_read(struct mctp_i3c_device *mi)
|
||||
{
|
||||
struct i3c_priv_xfer xfer = { .rnw = 1, .len = mi->mrl };
|
||||
struct i3c_xfer xfer = { .rnw = 1, .len = mi->mrl };
|
||||
struct net_device_stats *stats = &mi->mbus->ndev->stats;
|
||||
struct mctp_i3c_internal_hdr *ihdr = NULL;
|
||||
struct sk_buff *skb = NULL;
|
||||
|
|
@ -127,7 +127,7 @@ static int mctp_i3c_read(struct mctp_i3c_device *mi)
|
|||
|
||||
/* Make sure netif_rx() is read in the same order as i3c. */
|
||||
mutex_lock(&mi->lock);
|
||||
rc = i3c_device_do_priv_xfers(mi->i3c, &xfer, 1);
|
||||
rc = i3c_device_do_xfers(mi->i3c, &xfer, 1, I3C_SDR);
|
||||
if (rc < 0)
|
||||
goto err;
|
||||
|
||||
|
|
@ -360,7 +360,7 @@ mctp_i3c_lookup(struct mctp_i3c_bus *mbus, u64 pid)
|
|||
static void mctp_i3c_xmit(struct mctp_i3c_bus *mbus, struct sk_buff *skb)
|
||||
{
|
||||
struct net_device_stats *stats = &mbus->ndev->stats;
|
||||
struct i3c_priv_xfer xfer = { .rnw = false };
|
||||
struct i3c_xfer xfer = { .rnw = false };
|
||||
struct mctp_i3c_internal_hdr *ihdr = NULL;
|
||||
struct mctp_i3c_device *mi = NULL;
|
||||
unsigned int data_len;
|
||||
|
|
@ -409,7 +409,7 @@ static void mctp_i3c_xmit(struct mctp_i3c_bus *mbus, struct sk_buff *skb)
|
|||
data[data_len] = pec;
|
||||
|
||||
xfer.data.out = data;
|
||||
rc = i3c_device_do_priv_xfers(mi->i3c, &xfer, 1);
|
||||
rc = i3c_device_do_xfers(mi->i3c, &xfer, 1, I3C_SDR);
|
||||
if (rc == 0) {
|
||||
stats->tx_bytes += data_len;
|
||||
stats->tx_packets++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user