You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
ssb: register watchdog driver
Register the watchdog driver to the system if it is a SoC. Using the watchdog on a non SoC device, like a PCI card, will make the PCI card die when the timeout expired, but starting it again is not supported by ssb. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
9f640a6376
commit
bde327eff8
@@ -13,6 +13,7 @@
|
||||
#include <linux/delay.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/ssb/ssb.h>
|
||||
#include <linux/ssb/ssb_regs.h>
|
||||
#include <linux/ssb/ssb_driver_gige.h>
|
||||
@@ -433,6 +434,11 @@ static void ssb_devices_unregister(struct ssb_bus *bus)
|
||||
if (sdev->dev)
|
||||
device_unregister(sdev->dev);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SSB_EMBEDDED
|
||||
if (bus->bustype == SSB_BUSTYPE_SSB)
|
||||
platform_device_unregister(bus->watchdog);
|
||||
#endif
|
||||
}
|
||||
|
||||
void ssb_bus_unregister(struct ssb_bus *bus)
|
||||
@@ -561,6 +567,8 @@ static int __devinit ssb_attach_queued_buses(void)
|
||||
if (err)
|
||||
goto error;
|
||||
ssb_pcicore_init(&bus->pcicore);
|
||||
if (bus->bustype == SSB_BUSTYPE_SSB)
|
||||
ssb_watchdog_register(bus);
|
||||
ssb_bus_may_powerdown(bus);
|
||||
|
||||
err = ssb_devices_register(bus);
|
||||
|
||||
Reference in New Issue
Block a user