Skip to contentSkip to conversation

ntb: fix sysfs display of usd vs dsd

PATCH New Dave Jiang 1 participant 1 message Aug 14, 2014 NTB driver core

lore
Share & tools
lore

Dave Jiang

author maintainer
#0 lore raw

PATCH 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.

---
 drivers/ntb/ntb_hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ntb/ntb_hw.c +1 -1
index db0fe8a..ce6680a 100644
@@ -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