Commit b62868e5 authored by Asai Thambi S P's avatar Asai Thambi S P Committed by Jens Axboe

mtip32xx: Proper reporting of write protect status on big-endian

Proper reporting of write protect status on big-endian
Signed-off-by: default avatarAsai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: default avatarSelvan Mani <smani@micron.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent d7c8b945
...@@ -3218,8 +3218,8 @@ static int mtip_hw_init(struct driver_data *dd) ...@@ -3218,8 +3218,8 @@ static int mtip_hw_init(struct driver_data *dd)
"Unable to check write protect progress\n"); "Unable to check write protect progress\n");
else else
dev_info(&dd->pdev->dev, dev_info(&dd->pdev->dev,
"Write protect progress: %d%% (%d blocks)\n", "Write protect progress: %u%% (%u blocks)\n",
attr242.cur, attr242.data); attr242.cur, le32_to_cpu(attr242.data));
return rv; return rv;
out3: out3:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment