Thread (15 messages) flat view 15 messages, 3 authors, 2015-01-15

Re: [PATCH 3/3] CXL: Add reset to sysfs

From: Ian Munsie <hidden>
Date: 2015-01-15 05:51:52

Excerpts from Ryan Grimm's message of 2015-01-15 13:56:41 +1100:
+What:           /sys/class/cxl/<card>/reset
+Date:           October 2014
+Contact:        linuxppc-dev@lists.ozlabs.org
+Description:    write only
+                Writing 1 here will issue a PERST to card.
...
+static ssize_t reset_adapter_store(struct device *device,
+                   struct device_attribute *attr,
+                   const char *buf, size_t count)
+{
+    struct cxl *adapter = to_cxl_adapter(device);
+    int rc;
+
+    if ((rc = cxl_reset(adapter)))
+        return rc;
+    return count;
+}
Looks like we reset the card no matter what is written to that file?

I like the description better - add a test here to match what it says.

Cheers,
-Ian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help