Linux IIO development
 help / color / mirror / Atom feed
From: David Lechner <david@lechnology.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
	"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>,
	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:24:12 -0600	[thread overview]
Message-ID: <63e59329-24b9-989b-ebf5-589e2f36e866@lechnology.com> (raw)
In-Reply-To: <20211225192038.amgzrvkeyjgzzbuz@pengutronix.de>

On 12/25/21 1:20 PM, Uwe Kleine-König wrote:
> Hello,
> 
> some sidestory to this series: While working on fixing the struct dev
> lifetime thing, I saw a few ugly things that I don't intend to fix
> myself. Here is just a mail to let you know this with a list of issues.
> Feel free to address or ignore:
> 
>   - 104_QUAD_8 depends on X86, but compiles fine on ARCH=arm. Maybe
>     adding support for COMPILE_TEST would be a good idea.
> 
>   - 104-quad-8.c uses devm_request_irq() and (now) devm_counter_add(). On
>     unbind an irq might be pending which results in quad8_irq_handler()
>     calling counter_push_event() for a counter that is already
>     unregistered. (The issue exists also without my changes.)
> 
>   - I think intel-qep.c makes the counter unfunctional in
>     intel_qep_remove before the counter is unregistered.
> 
>   - I wonder why counter is a bus and not a class device type. There is
>     no driver that would ever bind a counter device, is there? So
>     /sys/bus/counter/driver is always empty.

This last item has been brought up before. The conclusion was yes it
should have been a class but it is too late to change it now since it
would break userspace.

(I think bus was cargo-culted from the iio subsystem.)

  reply	other threads:[~2021-12-27 15:24 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 [this message]
2021-12-27  8:22 ` Uwe Kleine-König

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=63e59329-24b9-989b-ebf5-589e2f36e866@lechnology.com \
    --to=david@lechnology.com \
    --cc=Jonathan.Cameron@huawei.com \
    --cc=balbi@kernel.org \
    --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=u.kleine-koenig@pengutronix.de \
    --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