Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B093FC433EF for ; Thu, 30 Dec 2021 14:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240455AbhL3Owv convert rfc822-to-8bit (ORCPT ); Thu, 30 Dec 2021 09:52:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbhL3Ows (ORCPT ); Thu, 30 Dec 2021 09:52:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EC91C061574; Thu, 30 Dec 2021 06:52:48 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BE033616F1; Thu, 30 Dec 2021 14:52:47 +0000 (UTC) Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPSA id 290A5C36AE9; Thu, 30 Dec 2021 14:52:40 +0000 (UTC) Date: Thu, 30 Dec 2021 14:58:26 +0000 From: Jonathan Cameron To: Uwe =?UTF-8?B?S2xlaW5lLUvDtm5pZw==?= Cc: William Breathitt Gray , Greg Kroah-Hartman , Jonathan Cameron , Kamel Bouhara , Ahmad Fatoum , David Lechner , Jonathan Corbet , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Oleksij Rempel , Alexandre Torgue , Fabrice Gasnier , Jarkko Nikula , linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, Patrick Havelange , Syed Nayyar Waris , linux-stm32@st-md-mailman.stormreply.com, Maxime Coquelin Subject: Re: [PATCH v3 00/23] counter: cleanups and device lifetime fixes Message-ID: <20211230145826.7f23becb@jic23-huawei> In-Reply-To: <20211230085351.pywngltvdam25emx@pengutronix.de> References: <20211229154441.38045-1-u.kleine-koenig@pengutronix.de> <20211230085351.pywngltvdam25emx@pengutronix.de> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Dec 2021 09:53:51 +0100 Uwe Kleine-König wrote: > Hello, > > On Wed, Dec 29, 2021 at 04:44:18PM +0100, Uwe Kleine-König wrote: > > this is v3 of my series to fix device lifetime issues in the counter > > framework. This hopefully addresses all things pointed out for v2. > > > > Note this depends on 60f07e74f86b (which is in next) now. Full diffstat > > below. > > > > Things that could be further improved: > > > > [...] > > > > Uwe Kleine-König (23): > > counter: Use container_of instead of drvdata to track counter_device > > counter: ftm-quaddec: Drop unused platform_set_drvdata() > > counter: microchip-tcb-capture: Drop unused platform_set_drvdata() > > counter: Provide a wrapper to access device private data > > counter: 104-quad-8: Convert to counter_priv() wrapper > > counter: interrupt-cnt: Convert to counter_priv() wrapper > > counter: microchip-tcb-capture: Convert to counter_priv() wrapper > > counter: intel-qep: Convert to counter_priv() wrapper > > counter: ftm-quaddec: Convert to counter_priv() wrapper > > counter: ti-eqep: Convert to counter_priv() wrapper > > counter: stm32-lptimer-cnt: Convert to counter_priv() wrapper > > counter: stm32-timer-cnt: Convert to counter_priv() wrapper > > counter: Provide alternative counter registration functions > > counter: Update documentation for new counter registration functions > > counter: 104-quad-8: Convert to new counter registration > > counter: interrupt-cnt: Convert to new counter registration > > counter: intel-qep: Convert to new counter registration > > counter: ftm-quaddec: Convert to new counter registration > > counter: microchip-tcb-capture: Convert to new counter registration > > counter: stm32-timer-cnt: Convert to new counter registration > > counter: stm32-lptimer-cnt: Convert to new counter registration > > counter: ti-eqep: Convert to new counter registration > > counter: remove old and now unused registration API > > > > Documentation/driver-api/generic-counter.rst | 10 +- > > drivers/counter/104-quad-8.c | 93 +++++----- > > drivers/counter/counter-core.c | 186 ++++++++++++++----- > > drivers/counter/ftm-quaddec.c | 36 ++-- > > drivers/counter/intel-qep.c | 46 ++--- > > drivers/counter/interrupt-cnt.c | 38 ++-- > > drivers/counter/microchip-tcb-capture.c | 44 ++--- > > drivers/counter/stm32-lptimer-cnt.c | 51 ++--- > > drivers/counter/stm32-timer-cnt.c | 48 ++--- > > drivers/counter/ti-eqep.c | 31 ++-- > > include/linux/counter.h | 15 +- > > 11 files changed, 356 insertions(+), 242 deletions(-) > > > > Range-diff against v2: > > [...] > > > > base-commit: a7904a538933c525096ca2ccde1e60d0ee62c08e > > prerequisite-patch-id: 9459ad8bc78190558df9123f8bebe28ca1c396ea > > All patches have a blessing by at least one of William and Jonathan. For future reference (may be fine this time) William has final say on counter stuff as the maintainer so treat my input as just another set of eyes. Anyhow, plenty of time for any necessary fixes during the RCs so shouldn't be a problem. Jonathan > The prerequisite commit (60f07e74f86b) is in Greg's char-misc-next branch. > > Assuming noone still finds a problem in this series that requires me to > respin I wonder who will pick it up? Greg? > > Given that it fixes a possible use-after-free in all counter drivers, > I'd like to see it hit before v5.17-rc1. For 5.16 it's probably too > late. > > Best regards > Uwe >