Re: [PATCH 2/2] clocksource: tegra: Register watchdog device

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

 



On Mon, Oct 13, 2014 at 09:42:10AM -0700, Guenter Roeck wrote:
> On 10/13/2014 05:05 AM, Thierry Reding wrote:
> >From: Thierry Reding <treding@xxxxxxxxxx>
> >
> >The watchdog timer is part of the timer controller block on Tegra. In
> >order to avoid access to the same registers from two drivers, register
> >the watchdog device from the clocksource driver.
> >
> >Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
> 
> Does that really make sense ?
> 
> A couple of callbacks into the clock driver to implement register accesses
> might be a better approach.

I guess that would be a valid approach as well. It has the downside of
requiring the addition of at least two globally visible symbols to the
kernel. It also means that we'd need to somehow pass around a struct
device for diagnostic messages and so on. Dealing with all of that seems
like much more of a burden than this.

Also if you look at the diffstat this approach allows us to get rid of
80 lines of code. Adding a custom mechanism to share the register space
would be more likely to result in a positive diffstat.

Thierry

Attachment: pgpQeyVOWBJWS.pgp
Description: PGP signature


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux