[PATCH 3/3] CXL: Add reset to sysfs
Ian Munsie
imunsie at au1.ibm.com
Thu Jan 15 16:51:48 AEDT 2015
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 at 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
More information about the Linuxppc-dev
mailing list