ntb: fix sysfs display of usd vs dsd
Dave Jiang
maintainerPATCH 1/1 ntb: fix sysfs display of usd vs dsd
The sysfs display is opposite of the discovery printout and what the BIOS has configured.
Signed-off-by Dave Jiang <[email protected]>
--- drivers/ntb/ntb_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ntb/ntb_hw.c +1 -1
@@ -1369,7 +1369,7 @@ static ssize_t ntb_debugfs_read(struct file *filp, char __user *ubuf, offset +=snprintf (buf + offset, out_count - offset,"Device Type - \t\t\t%s\n" , ndev->dev_type ==NTB_DEV_USD ? -"DSD/USP" :"USD/DSP" ); +"USD/DSP" :"DSD/USP" ); offset +=snprintf (buf + offset, out_count - offset,"Max Number of Callbacks - \t%u\n" ,ntb_max_cbs (ndev));
Signature · 1 line
1.9.3