diff --git a/drivers/soundwire/debugfs.c b/drivers/soundwire/debugfs.c index dafa955c3c1aff..253026957f4e2c 100644 --- a/drivers/soundwire/debugfs.c +++ b/drivers/soundwire/debugfs.c @@ -263,6 +263,7 @@ static int cmd_go(void *data, u64 value) if (cmd_type) { struct sdw_bpt_msg msg = {0}; + dev_info(&slave->dev, "%s: BRA start\n", __func__); ret = sdw_bpt_open_stream(slave->bus, slave, SDW_BRA); if (ret < 0) { dev_err(&slave->dev, "bpt_open_stream failed: %d\n", ret); @@ -270,6 +271,8 @@ static int cmd_go(void *data, u64 value) goto out; } + dev_info(&slave->dev, "%s: open done\n", __func__); + msg.addr = start_addr; msg.len = num_bytes; msg.dev_num = slave->dev_num; @@ -286,18 +289,24 @@ static int cmd_go(void *data, u64 value) goto out; } + dev_info(&slave->dev, "%s: send_async done\n", __func__); + ret = sdw_bpt_wait(slave->bus, slave, &msg); if (ret < 0) dev_err(&slave->dev, "bpt_wait failed: %d\n", ret); + dev_info(&slave->dev, "%s: wait done\n", __func__); + ret = sdw_bpt_close_stream(slave->bus, slave, SDW_BRA); if (ret < 0) { dev_err(&slave->dev, "bpt_open_close failed: %d\n", ret); release_firmware(fw); goto out; } + dev_info(&slave->dev, "%s: close done\n", __func__); + } else { ret = sdw_nwrite_no_pm(slave, start_addr, num_bytes, fw->data); release_firmware(fw);