]> git.baikalelectronics.ru Git - kernel.git/commit
fjes: Do not load fjes driver if extended socket device is not power on.
authorYasuaki Ishimatsu <yasu.isimatu@gmail.com>
Tue, 21 Mar 2017 15:46:35 +0000 (11:46 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Mar 2017 19:38:17 +0000 (12:38 -0700)
commit1784c7fd365b54865986251aae285509b7876042
tree9ad04276164dcbdf7e0a7cd7e133c452de8a4497
parenta58778f04aa2f77bb4eb3b7fd81b5c1cd66c2b4d
fjes: Do not load fjes driver if extended socket device is not power on.

The extended device socket cannot turn on/off while system is running.
So when system boots up and the device is not power on, the fjes driver
does not need be loaded.

To check the status of the device, the patch adds ACPI _STA method check.

Signed-off-by: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
CC: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fjes/fjes_main.c