]> 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)
commit8a453acf5c3b82d1aede79911d0f695a10bc94f5
tree9c9470acc64f7160b5cc00fdf43a645367e9de63
parent2676a11692308261e3ece7be544767f07e424178
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