summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorHans Wippel <hwippel@linux.vnet.ibm.com>2016-06-16 17:19:01 +0300
committerDavid S. Miller <davem@davemloft.net>2016-06-17 08:16:13 +0300
commit6c7cd7124493de05d01ea53bdbfcf35918dae4c3 (patch)
tree188c731ef8b450eb157f12c90a0b982f3b7d8095 /include/drm
parent9bdc441102f012b70f51e1ca73b603312fff8b5d (diff)
downloadlinux-6c7cd7124493de05d01ea53bdbfcf35918dae4c3.tar.xz
qeth: improve set_features error handling
The function set_features is called to configure network device features on the hardware. If errors occur, the network device features should reflect the changed hardware state and the function should return an error in order to notify the user. In case of an error, the current implementation does not necessarily save the changed hardware state in the network device features before an error is returned. This patch improves error handling by saving features, that could be changed, to the network device features before returning an error. If the device is not running, an additional check in fix_features removes features, that require hardware changes, before they are passed to set_features. Thus, the corresponding check was removed in set_features. Signed-off-by: Hans Wippel <hwippel@linux.vnet.ibm.com> Signed-off-by: Ursula Braun <ubraun@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions