From: William Breathitt Gray <wbg@kernel.org>
To: "Bence Csókás" <csokas.bence@prolan.hu>
Cc: linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org,
Kamel Bouhara <kamel.bouhara@bootlin.com>
Subject: Re: [PATCH v7 1/2] counter: microchip-tcb-capture: Add IRQ handling
Date: Thu, 6 Mar 2025 14:49:14 +0900 [thread overview]
Message-ID: <Z8k3WlJHCrYPdW4j@ishi> (raw)
In-Reply-To: <20250304155156.374150-2-csokas.bence@prolan.hu>
[-- Attachment #1: Type: text/plain, Size: 974 bytes --]
On Tue, Mar 04, 2025 at 04:51:51PM +0100, Bence Csókás wrote:
> Add interrupt servicing to allow userspace to wait for the following:
> * Change-of-state caused by external trigger
> * Capture of timer value into RA/RB
> * Compare to RC register
> * Overflow
>
> Signed-off-by: Bence Csókás <csokas.bence@prolan.hu>
Hi Bence,
I'm mostly statisfied with this patch now, but I have one minor
suggestion below.
> @@ -27,6 +33,7 @@ struct mchp_tc_data {
> int qdec_mode;
> int num_channels;
> int channel[2];
> + int irq;
We don't use the irq member during the driver operation, so I don't
think this value needs to be saved here with the driver data. It seems
to only be needed in mchp_tc_irq_enable() for devm_request_irq().
Perhaps you can pass the irq value as a parameter to
mchp_tc_irq_enable() instead.
With that change made, I think I'll be ready to pick up this patchset
and merge it into counter-next.
William Breathitt Gray
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2025-03-06 5:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 15:51 [PATCH v7 0/2] microchip-tcb-capture: Add Capture, Compare, Overflow etc. events Bence Csókás
2025-03-04 15:51 ` [PATCH v7 1/2] counter: microchip-tcb-capture: Add IRQ handling Bence Csókás
2025-03-06 5:49 ` William Breathitt Gray [this message]
2025-03-04 15:51 ` [PATCH v7 2/2] counter: microchip-tcb-capture: Add capture extensions for registers RA/RB Bence Csókás
2025-03-06 5:51 ` William Breathitt Gray
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=Z8k3WlJHCrYPdW4j@ishi \
--to=wbg@kernel.org \
--cc=csokas.bence@prolan.hu \
--cc=kamel.bouhara@bootlin.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).