Hi Guenter,
Thank you very much for your review.
-----Original Message-----Yes, a bit many changes.
From: Guenter Roeck [mailto:linux@xxxxxxxxxxxx]
Sent: 2015年7月28日 15:14
To: Yang, Wenyou; wim@xxxxxxxxx; robh+dt@xxxxxxxxxx; pawel.moll@xxxxxxx;
mark.rutland@xxxxxxx; ijc+devicetree@xxxxxxxxxxxxxx; galak@xxxxxxxxxxxxxx
Cc: sylvain.rochet@xxxxxxxxxxxx; Ferre, Nicolas; boris.brezillon@free-
electrons.com; devicetree@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx; linux-
watchdog@xxxxxxxxxxxxxxx; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [PATCH 1/2] drivers: watchdog: at91sam9_wdt: add new feature
support
On 07/28/2015 12:00 AM, Wenyou Yang wrote:
In the datasheet, the new feature is describled as "WDT_MR can beSince there are so many changes, I wonder is a separate driver would make more
written until a LOCKMR command is issued in WDT_CR".
That is to say, as long as the bootstrap and u-boot don't issue a
LOCKMR command, WDT_MR can be written in kernel.
So the driver can enable/disable the watchdog timer hardware, set
WDV(Watchdog Counter Value) and WDD(Watchdog Delta Value) fields of
WDT_MR register to set the watchdog timer timeout.
The timer is not necessary that regularly sends a keepalive ping to
the watchdog timer hardware.
It is introduced from sama5d4 SoCs.
sense.
I thought reuse the driver code.
If a separate driver, I am afraid it includes much duplicated code.
After all, it is for the same device with different feature.
I don't think it is necessary to have multiple drivers for the same peripheral with different feature.