Commit 8cd77865 authored by Kelvin Cao's avatar Kelvin Cao Committed by Jon Mason
Browse files

ntb_hw_switchtec: Fix a minor issue in config_req_id_table()



The req_id_table_size field is 16-bit wide, use ioread16() to read the
value.

Signed-off-by: default avatarKelvin Cao <kelvin.cao@microchip.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 1d3cfc28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -955,7 +955,7 @@ static int config_req_id_table(struct switchtec_ntb *sndev,
	u32 error;
	u32 proxy_id;

	if (ioread32(&mmio_ctrl->req_id_table_size) < count) {
	if (ioread16(&mmio_ctrl->req_id_table_size) < count) {
		dev_err(&sndev->stdev->dev,
			"Not enough requester IDs available.\n");
		return -EFAULT;