[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d5b28017aad83771052d4387bfec45dac289d737.camel@infradead.org>
Date: Tue, 02 Dec 2025 23:43:27 +0000
From: David Woodhouse <dwmw2@...radead.org>
To: "Chalios, Babis" <bchalios@...zon.es>, "richardcochran@...il.com"
<richardcochran@...il.com>, "andrew+netdev@...n.ch"
<andrew+netdev@...n.ch>, "davem@...emloft.net" <davem@...emloft.net>,
"edumazet@...gle.com" <edumazet@...gle.com>, "kuba@...nel.org"
<kuba@...nel.org>, "pabeni@...hat.com" <pabeni@...hat.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Cc: "Graf (AWS), Alexander" <graf@...zon.de>, "mzxreary@...inter.de"
<mzxreary@...inter.de>
Subject: Re: [PATCH v2 4/4] ptp: ptp_vmclock: Add device tree support
On Tue, 2025-12-02 at 20:12 +0000, Chalios, Babis wrote:
> From: David Woodhouse <dwmw@...zon.co.uk>
>
> Add device tree support to the ptp_vmclock driver, allowing it to probe
> via device tree in addition to ACPI.
>
> Handle optional interrupt for clock disruption notifications, mirroring
> the ACPI notification behavior.
>
> Signed-off-by: David Woodhouse <dwmw@...zon.co.uk>
> Signed-off-by: Babis Chalios <bchalios@...zon.es>
> ---
> drivers/ptp/ptp_vmclock.c | 69 +++++++++++++++++++++++++++++++++++----
> 1 file changed, 63 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/ptp/ptp_vmclock.c b/drivers/ptp/ptp_vmclock.c
> index 49a17435bd35..1af50e06e212 100644
> --- a/drivers/ptp/ptp_vmclock.c
> +++ b/drivers/ptp/ptp_vmclock.c
> @@ -18,6 +18,7 @@
> #include <linux/miscdevice.h>
> #include <linux/mm.h>
> #include <linux/module.h>
> +#include <linux/of.h>
> #include <linux/platform_device.h>
> #include <linux/slab.h>
Needs <linux/interrupt.h> (a few lines up) too.
...
> +static int vmclock_probe_dt(struct device *dev, struct vmclock_state *st)
> +{
> + struct platform_device *pdev = to_platform_device(dev);
> + struct resource *res;
> + int irq, ret;
Those are unused now.
Download attachment "smime.p7s" of type "application/pkcs7-signature" (5069 bytes)
Powered by blists - more mailing lists