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)
commita028a9e003f299cf427d98501861bbbb4f5ba7a5
tree9c9470acc64f7160b5cc00fdf43a645367e9de63
parente8eb36cd8ca93f52f738c6087073202c44ac7746
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