Skip to contentSkip to conversation

staging: fsl-mc: add sysfs ABI doc

PATCH New Stuart Yoder 1 participant 2 messages Dec 7, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: fsl-mc: add sysfs ABI doc

define the bind/unbind sysfs interfaces for the fsl-mc bus

---
 Documentation/ABI/testing/sysfs-bus-fsl-mc | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc
Documentation/ABI/testing/sysfs-bus-fsl-mc new file +21 -0
new file mode 100644
index 0000000..80256b8
@@ -0,0 +1,21 @@
+What:		/sys/bus/fsl-mc/drivers/.../bind
+Date:		December 2016
+Contact:	[email protected]
+Description:
+		Writing a device location to this file will cause
+		the driver to attempt to bind to the device found at
+		this location. The format for the location is Object.Id
+		and is the same as found in /sys/bus/fsl-mc/devices/.
+                For example:
+		# echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/bind
+
+What:		/sys/bus/fsl-mc/drivers/.../unbind
+Date:		December 2016
+Contact:	[email protected]
+Description:
+		Writing a device location to this file will cause the
+		driver to attempt to unbind from the device found at
+		this location. The format for the location is Object.Id
+		and is the same as found in /sys/bus/fsl-mc/devices/.
+                For example:
+		# echo dpni.2 > /sys/bus/fsl-mc/drivers/fsl_dpaa2_eth/unbind
Signature · 1 line
1.9.0
#1 lore raw

PATCH 1/1 staging: fsl-mc: remove unnecessary info prints from bus driver

remove pr_info/dev_info prints that add unnecessary verbosity

---
 drivers/staging/fsl-mc/bus/fsl-mc-bus.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/staging/fsl-mc/bus/fsl-mc-bus.c +0 -6
index f9fed63..5ac373c 100644
@@ -231,7 +231,6 @@ int __fsl_mc_driver_register(struct fsl_mc_driver *mc_driver,
 		return error;
 	}
 
-	pr_info("driver %s registered\n", mc_driver->driver.name);
 	return 0;
 }
 EXPORT_SYMBOL_GPL(__fsl_mc_driver_register);
@@ -731,8 +730,6 @@ static int fsl_mc_bus_probe(struct platform_device *pdev)
 	struct mc_version mc_version;
 	struct resource res;
 
-	dev_info(&pdev->dev, "root DPRC probed");
-
 	mc = devm_kzalloc(&pdev->dev, sizeof(*mc), GFP_KERNEL);
 	if (!mc)
 		return -ENOMEM;
@@ -822,7 +819,6 @@ static int fsl_mc_bus_remove(struct platform_device *pdev)
 	fsl_destroy_mc_io(mc->root_mc_bus_dev->mc_io);
 	mc->root_mc_bus_dev->mc_io = NULL;
 
-	dev_info(&pdev->dev, "root DPRC removed");
 	return 0;
 }
 
@@ -861,8 +857,6 @@ static int __init fsl_mc_bus_driver_init(void)
 		goto error_cleanup_cache;
 	}
 
-	pr_info("bus type registered\n");
-
 	error = platform_driver_register(&fsl_mc_bus_driver);
 	if (error < 0) {
 		pr_err("platform_driver_register() failed: %d\n", error);
Signature · 1 line
1.9.0