1 --- a/drivers/ssb/driver_extif.c
2 +++ b/drivers/ssb/driver_extif.c
3 @@ -112,9 +112,10 @@ void ssb_extif_get_clockcontrol(struct s
4 *m = extif_read32(extif, SSB_EXTIF_CLOCK_SB);
7 -void ssb_extif_watchdog_timer_set(struct ssb_extif *extif,
9 +void ssb_extif_watchdog_timer_set(struct ssb_extif *extif, u32 ticks)
11 + if (ticks > SSB_EXTIF_WATCHDOG_MAX_TIMER)
12 + ticks = SSB_EXTIF_WATCHDOG_MAX_TIMER;
13 extif_write32(extif, SSB_EXTIF_WATCHDOG, ticks);
16 --- a/include/linux/ssb/ssb_driver_extif.h
17 +++ b/include/linux/ssb/ssb_driver_extif.h
20 #define SSB_EXTIF_WATCHDOG_CLK 48000000 /* Hz */
22 +#define SSB_EXTIF_WATCHDOG_MAX_TIMER ((1 << 28) - 1)
25 #ifdef CONFIG_SSB_DRIVER_EXTIF