Skip to contentSkip to conversation

mei: show the HBM protocol versions in the device attributes

PATCH New Tomas Winkler 1 participant 2 messages Oct 29, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mei: show the HBM protocol versions in the device attributes

From: Alexander Usyskin <[email protected]>

The HBM protocol version is negotiated during the setup phase, then settled on a highest possible common version of the driver and the firmware. The sysfs API advertises both negotiated and driver supported versions in the device attributes.

---
 Documentation/ABI/testing/sysfs-class-mei | 16 ++++++++++++
 drivers/misc/mei/main.c                   | 43 ++++++++++++++++++++++++++++++-
 2 files changed, 58 insertions(+), 1 deletion(-)
Documentation/ABI/testing/sysfs-class-mei +16 -0
index 80d9888a8ece..5096a82f4cde 100644
@@ -29,3 +29,19 @@ Description:	Display fw status registers content
 		Also number of registers varies between 1 and 6
 		depending on generation.
 
+What:		/sys/class/mei/meiN/hbm_ver
+Date:		Aug 2016
+KernelVersion:	4.9
+Contact:	Tomas Winkler <[email protected]>
+Description:	Display the negotiated HBM protocol version.
+
+		The HBM protocol version negotiated
+		between the driver and the device.
+
+What:		/sys/class/mei/meiN/hbm_ver_drv
+Date:		Aug 2016
+KernelVersion:	4.9
+Contact:	Tomas Winkler <[email protected]>
+Description:	Display the driver HBM protocol version.
+
+		The HBM protocol version supported by the driver.
drivers/misc/mei/main.c +42 -1

57 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 mei: bus: demote error to debug level upon disconnect

From: Alexander Usyskin <[email protected]>

A mei client driver on the mei client bus can call disconnect function on already internal disconnected client. A client can disconnect internally, for example, during link reset or upon FW request. Those are legitimate flows and we should not log an error message, hence we demote 'Already disconnected' message to the debug level.

---
 drivers/misc/mei/bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/mei/bus.c +1 -1
index 89a694ca624c..8a1e813a548d 100644
@@ -481,7 +481,7 @@ int mei_cldev_disable(struct mei_cl_device *cldev)
 	mutex_lock(&bus->device_lock);
 
 	if (!mei_cl_is_connected(cl)) {
-		dev_err(bus->dev, "Already disconnected");
+		dev_dbg(bus->dev, "Already disconnected");
 		err = 0;
 		goto out;
 	}
Signature · 1 line
2.7.4