From: Tony Lindgren <tony@atomide.com>
To: Judith Mendez <jm@ti.com>
Cc: Chandrasekar Ramakrishnan <rcsekar@samsung.com>,
linux-can@vger.kernel.org,
Wolfgang Grandegger <wg@grandegger.com>,
Marc Kleine-Budde <mkl@pengutronix.de>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Schuyler Patton <spatton@ti.com>, Tero Kristo <kristo@kernel.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
devicetree@vger.kernel.org,
Oliver Hartkopp <socketcan@hartkopp.net>,
Simon Horman <simon.horman@corigine.com>,
Conor Dooley <conor+dt@linaro.org>
Subject: Re: [PATCH v8 2/2] can: m_can: Add hrtimer to generate software interrupt
Date: Wed, 31 May 2023 07:30:40 +0300 [thread overview]
Message-ID: <20230531043040.GQ14287@atomide.com> (raw)
In-Reply-To: <20230530224820.303619-3-jm@ti.com>
* Judith Mendez <jm@ti.com> [230530 22:48]:
> Introduce timer polling method to MCAN since some SoCs may not
> have M_CAN interrupt routed to A53 Linux and do not have
> interrupt property in device tree M_CAN node.
>
> On AM62x SoC, MCANs on MCU domain do not have hardware interrupt
> routed to A53 Linux, instead they will use timer polling method.
>
> Add an hrtimer to MCAN class device. Each MCAN will have its own
> hrtimer instantiated if there is no hardware interrupt found in
> device tree M_CAN node. The timer will generate a software
> interrupt every 1 ms. In hrtimer callback, we check if there is
> a transaction pending by reading a register, then process by
> calling the isr if there is.
Reviewed-by: Tony Lindgren <tony@atomide.com>
next prev parent reply other threads:[~2023-05-31 4:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-30 22:48 [PATCH v8 0/2] Enable multiple MCAN on AM62x Judith Mendez
2023-05-30 22:48 ` [PATCH v8 1/2] dt-bindings: net: can: Remove interrupt properties for MCAN Judith Mendez
2023-05-31 4:30 ` Tony Lindgren
2023-05-30 22:48 ` [PATCH v8 2/2] can: m_can: Add hrtimer to generate software interrupt Judith Mendez
2023-05-31 4:30 ` Tony Lindgren [this message]
2023-06-14 7:02 ` Marc Kleine-Budde
2023-06-15 12:02 ` Hiago Franco
2023-06-13 17:41 ` [PATCH v8 0/2] Enable multiple MCAN on AM62x Judith Mendez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230531043040.GQ14287@atomide.com \
--to=tony@atomide.com \
--cc=conor+dt@linaro.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=jm@ti.com \
--cc=kristo@kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-can@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rcsekar@samsung.com \
--cc=robh+dt@kernel.org \
--cc=simon.horman@corigine.com \
--cc=socketcan@hartkopp.net \
--cc=spatton@ti.com \
--cc=wg@grandegger.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.