Home
last modified time | relevance | path

Searched hist:"0559 d8dc" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/infiniband/core/
H A Dsysfs.c0559d8dc Mon Apr 02 12:57:31 CDT 2012 Roland Dreier <roland@purestorage.com> IB/core: Don't return EINVAL from sysfs rate attribute for invalid speeds

Commit e9319b0cb00d ("IB/core: Fix SDR rates in sysfs") changed our
sysfs rate attribute to return EINVAL to userspace if the underlying
device driver returns an invalid rate. Apparently some drivers do this
when the link is down and some userspace pukes if it gets an error when
reading this attribute, so avoid a regression by not return an error to
match the old code.

Signed-off-by: Roland Dreier <roland@purestorage.com>
0559d8dc Mon Apr 02 12:57:31 CDT 2012 Roland Dreier <roland@purestorage.com> IB/core: Don't return EINVAL from sysfs rate attribute for invalid speeds

Commit e9319b0cb00d ("IB/core: Fix SDR rates in sysfs") changed our
sysfs rate attribute to return EINVAL to userspace if the underlying
device driver returns an invalid rate. Apparently some drivers do this
when the link is down and some userspace pukes if it gets an error when
reading this attribute, so avoid a regression by not return an error to
match the old code.

Signed-off-by: Roland Dreier <roland@purestorage.com>