]> 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)
commit9e7c4320da28693bf2f5a75d0c175ea168fd456e
tree9ad04276164dcbdf7e0a7cd7e133c452de8a4497
parentfdfcb9c073c7424465e96db616e46742223c2c8f
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