Re: [PATCH] watchdog: sbsa: Support architecture version 1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 10, 2021 at 04:44:21PM +0800, Shaokun Zhang wrote:

> >>> +static void sbsa_gwdt_reg_write(u64 val, struct sbsa_gwdt *gwdt)
> >>
> >> What is the point of making val an u64 variable ? Without changing
> > 
> > Oops, unsigned int is enough.
> > 
> 
> Sorry, it shall be 'u64', because it is the value that clock * timeout
> and will be written to WOR register which is 64-bit register in
> architecture version 1.
> 

As I have been trying to point out, that won't really happen unless
max_hw_heartbeat_ms is adjusted. The register may be a 64 bit register,
and the variable may be a 64-bit variable, but that doesn't make the
value passed in that variable larger than 32 bit unless the code is
in place to actually do that.

Guenter



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux