Hi Vaibhav,

On Tue, Jan 24, 2012 at 10:32 AM, Bedia, Vaibhav <[email protected]> wrote:
> On Mon, Jan 23, 2012 at 16:43:07, Datta, Shubhrajyoti wrote:
>> This patch intends to implement the WDIOC_GETBOOTSTATUS ioctl
>> for the omap3 and omap4.
>>
>
> Instead of just returning the register content why not parse
> the RSTST register value and check if it's really a watchdog
> reset or not?

That is what is done for 24xx and below cpus. So I thought of extending it.


>
>> Signed-off-by: Shubhrajyoti D <[email protected]>
>> ---
>>  drivers/watchdog/omap_wdt.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c
>> index 4b33e3f..5395a4c 100644
>> --- a/drivers/watchdog/omap_wdt.c
>> +++ b/drivers/watchdog/omap_wdt.c
>> @@ -229,7 +229,7 @@ static long omap_wdt_ioctl(struct file *file, unsigned 
>> int cmd,
>>               if (cpu_is_omap16xx())
>>                       return put_user(__raw_readw(ARM_SYSST),
>>                                       (int __user *)arg);
>> -             if (cpu_is_omap24xx())
>> +             if (cpu_is_omap24xx() || cpu_is_omap34xx() || 
>> cpu_is_omap44xx())
>>                       return put_user(omap_prcm_get_reset_sources(),
>>                                       (int __user *)arg);
>>               return put_user(0, (int __user *)arg);
>> --
>> 1.7.1
>>
>>
>> _______________________________________________
>> linux-arm-kernel mailing list
>> [email protected]
>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to