phy: Return correct error code when timeout happens
authorMichal Simek <michal.simek@xilinx.com>
Wed, 18 May 2016 10:48:57 +0000 (12:48 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 24 May 2016 11:17:59 +0000 (13:17 +0200)
commitef5e821bd89aa059a20841e041221dadbf60aa7d
tree4561d886f5e471891c407cd784527509f71b841b
parent55259e7cda875bff3e0fcfd5fc61478f40872841
phy: Return correct error code when timeout happens

Return -ETIMEDOUT if timeout happens.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
drivers/net/phy/marvell.c
drivers/net/phy/phy.c