]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: move the settings of PHY to a work queue
authorhayeswang <hayeswang@realtek.com>
Mon, 13 Jun 2016 09:49:36 +0000 (17:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2016 05:37:48 +0000 (22:37 -0700)
commitabf9d9ba7f0af13be3969861bb27169766dfb90b
tree9c9470acc64f7160b5cc00fdf43a645367e9de63
parent59a49d69250e2c4e7e5359c2f5b4dd989be7334c
r8152: move the settings of PHY to a work queue

Move the settings of PHY to a work queue and schedule it after
rtl_ops.init().

There are some reasons for this. First, the settings are only
needed for the first time initialization or after the power
down occurs.

Second, the settings are independent with the others.

Last, the settings may take more time than the others. Leave
they in probe() or open() may delay the following flows.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c