From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: William Breathitt Gray <vilhelm.gray@gmail.com>
Cc: Felipe Balbi <balbi@kernel.org>,
Lars-Peter Clausen <lars@metafoo.de>,
Raymond Tan <raymond.tan@intel.com>,
David Lechner <david@lechnology.com>,
Kamel Bouhara <kamel.bouhara@bootlin.com>,
linux-iio@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Oleksij Rempel <o.rempel@pengutronix.de>,
Jarkko Nikula <jarkko.nikula@linux.intel.com>,
kernel@pengutronix.de,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Fabrice Gasnier <fabrice.gasnier@st.com>,
Patrick Havelange <patrick.havelange@essensium.com>
Subject: Re: [PATCH v1 00/23] counter: cleanups and device lifetime fixes
Date: Mon, 27 Dec 2021 09:22:05 +0100 [thread overview]
Message-ID: <20211227082205.ktoeioa5bpxe23o7@pengutronix.de> (raw)
In-Reply-To: <20211225161056.682797-1-u.kleine-koenig@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 2465 bytes --]
Hello,
I just noticed I had a few dirty changes in my working copy that need to
be squashed into these commits:
diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c
index 4315b14f239e..680c7ba943a4 100644
--- a/drivers/counter/104-quad-8.c
+++ b/drivers/counter/104-quad-8.c
@@ -1084,7 +1084,8 @@ static struct counter_count quad8_counts[] = {
static irqreturn_t quad8_irq_handler(int irq, void *private)
{
- struct quad8 *const priv = private;
+ struct counter_device *counter = private;
+ struct quad8 *const priv = counter_priv(counter);
const unsigned long base = priv->base;
unsigned long irq_status;
unsigned long channel;
@@ -1115,7 +1116,7 @@ static irqreturn_t quad8_irq_handler(int irq, void *private)
continue;
}
- counter_push_event(&priv->counter, event, channel);
+ counter_push_event(counter, event, channel);
}
/* Clear pending interrupts on device */
@@ -1192,7 +1193,7 @@ static int quad8_probe(struct device *dev, unsigned int id)
outb(QUAD8_CHAN_OP_ENABLE_INTERRUPT_FUNC, base[id] + QUAD8_REG_CHAN_OP);
err = devm_request_irq(dev, irq[id], quad8_irq_handler, IRQF_SHARED,
- counter->name, priv);
+ counter->name, counter);
if (err)
return err;
diff --git a/drivers/counter/ftm-quaddec.c b/drivers/counter/ftm-quaddec.c
index d73506436e58..c636183b1337 100644
--- a/drivers/counter/ftm-quaddec.c
+++ b/drivers/counter/ftm-quaddec.c
@@ -301,7 +301,7 @@ static int ftm_quaddec_probe(struct platform_device *pdev)
ret = devm_counter_add(&pdev->dev, counter);
if (ret)
- return dev_err_probe(&pdev->dev, "Failed to add counter\n");
+ return dev_err_probe(&pdev->dev, ret, "Failed to add counter\n");
return 0;
}
diff --git a/drivers/counter/interrupt-cnt.c b/drivers/counter/interrupt-cnt.c
index 3f816454220e..9e99702470c2 100644
--- a/drivers/counter/interrupt-cnt.c
+++ b/drivers/counter/interrupt-cnt.c
@@ -215,7 +215,7 @@ static int interrupt_cnt_probe(struct platform_device *pdev)
ret = devm_counter_add(dev, counter);
if (ret < 0)
- return dev_err_probe(dev, err, "Failed to add counter\n");
+ return dev_err_probe(dev, ret, "Failed to add counter\n");
return 0;
}
Will fix these in a v2.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2021-12-27 8:22 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-25 16:10 [PATCH v1 00/23] counter: cleanups and device lifetime fixes Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 01/23] counter: Use container_of instead of drvdata to track counter_device Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 02/23] counter: ftm-quaddec: Drop unused platform_set_drvdata() Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 03/23] counter: microchip-tcb-capture: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 04/23] counter: Provide a wrapper to access device private data Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 05/23] counter: 104-quad-8: Convert to counter_priv() wrapper Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 06/23] counter: interrupt-cnt: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 07/23] counter: microchip-tcb-capture: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 08/23] counter: intel-qep: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 09/23] counter: ftm-quaddec: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 10/23] counter: ti-eqep: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 11/23] counter: stm32-lptimer-cnt: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 12/23] counter: stm32-timer-cnt: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 13/23] counter: Provide alternative counter registration functions Uwe Kleine-König
2021-12-25 16:34 ` Marc Kleine-Budde
2021-12-25 19:06 ` Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 14/23] counter: Update documentation for new " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 15/23] counter: 104-quad-8: Convert to new counter registration Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 16/23] counter: interrupt-cnt: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 17/23] counter: intel-qep: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 18/23] counter: ftm-quaddec: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 19/23] counter: microchip-tcb-capture: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 20/23] counter: stm32-timer-cnt: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 21/23] counter: stm32-lptimer-cnt: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 22/23] counter: ti-eqep: " Uwe Kleine-König
2021-12-25 16:10 ` [PATCH v1 23/23] counter: remove old and now unused registration API Uwe Kleine-König
2021-12-25 19:20 ` [PATCH v1 00/23] counter: cleanups and device lifetime fixes Uwe Kleine-König
2021-12-27 15:24 ` David Lechner
2021-12-27 8:22 ` Uwe Kleine-König [this message]
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=20211227082205.ktoeioa5bpxe23o7@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=Jonathan.Cameron@huawei.com \
--cc=balbi@kernel.org \
--cc=david@lechnology.com \
--cc=fabrice.gasnier@st.com \
--cc=gregkh@linuxfoundation.org \
--cc=jarkko.nikula@linux.intel.com \
--cc=kamel.bouhara@bootlin.com \
--cc=kernel@pengutronix.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=patrick.havelange@essensium.com \
--cc=raymond.tan@intel.com \
--cc=vilhelm.gray@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox