Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25c12a8e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "rpmsg: glink: spi: Update intent before sending cmd"

parents d4a57fe5 3c0655f1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1212,8 +1212,8 @@ static int glink_spi_send_data(struct glink_channel *channel,
		mutex_lock(&glink->tx_lock);
	}
	glink_spi_write(glink, data, intent->addr + intent->offset, chunk_size);
	glink_spi_tx_write(glink, &req, sizeof(req), NULL, 0);
	intent->offset += chunk_size;
	glink_spi_tx_write(glink, &req, sizeof(req), NULL, 0);

	mutex_unlock(&glink->tx_lock);
	return 0;