Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2699730pxb; Sat, 30 Jan 2021 11:07:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzb71C/OKPxFutvoisccXqB3Q2jD+2w3vxYzmsCLxPgR7ISs4DwDaC1njwBtPv0mQkjgEjF X-Received: by 2002:a17:906:af92:: with SMTP id mj18mr10165969ejb.290.1612033648554; Sat, 30 Jan 2021 11:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612033648; cv=none; d=google.com; s=arc-20160816; b=W6emQxUYCfbyQDbDQlF6NgKuv0F8lACrcnLb/RwBpwznn1KE+ZVBIbMFtneFk1IzO8 H450n+smYzST4Bg87sQhDwlkfpSBJl4gM8ugS6+Fpz96WohETPhtSR770IFfYKXMHlPV Rwk7Pou0oYhVer7LDci8xicHhdncpqZGGbuU8VwXVmDJf/wUo8GglranuZVT3CSrwXbd BsjkVNWTWqLhUn1Rz0fN5m4TtkWLtmcPu5nqcSmMnu9Wfs/lxPyjcDiNhzUfrgdpxzWN JHpDdE56qHfneLpSB6m5zxNkNpQ57F7UKMHYTOpvoWkxmP6Gv+fD8GqD2ZHq3YH7enGa O4lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=CV+D+a29kRbM75ZEOhDf9gh9ph5nPN+n3wFh2fM/K0c=; b=clZa7UsdRTB53WicB5soK0cC6o/fzFXMzOGxLScU8Di8TjUSwEQ6ydz92UHNWn3LX6 f+r3E5HaSlZCqGY2RvodEGdJGsR8J0ugtGgfhI9UKpPouBsRs7uOsB0WlEk4QcjCA9mr n5+lrxosUJdarbnb3Kdfuy4dn0WxyW8jMgyS8wYmGXfDken+kcJ0Ti8R31H7ft21+bRj imT4QvaBmx2Pc+6TcC4Pw9bANc3bCFLt/C4AGL9DYXKxXYJzEwNhYaPFcXFqMkr1C9Xx YpzKuwBTBKa9uq6vdoYxaqoSaF0oGZVFfDZ0VpYl/Jdiet9h3bRfA74PGTT89UlIBNLJ g0kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si7383470edy.526.2021.01.30.11.07.04; Sat, 30 Jan 2021 11:07:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232156AbhA3TFj (ORCPT + 99 others); Sat, 30 Jan 2021 14:05:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:36502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231923AbhA3TFi (ORCPT ); Sat, 30 Jan 2021 14:05:38 -0500 Received: from archlinux (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 mail.kernel.org (Postfix) with ESMTPSA id 8D82A64E11; Sat, 30 Jan 2021 19:04:55 +0000 (UTC) Date: Sat, 30 Jan 2021 19:04:52 +0000 From: Jonathan Cameron To: William Breathitt Gray Cc: fabrice.gasnier@foss.st.com, fabrice.gasnier@st.com, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, benjamin.gaignard@st.com Subject: Re: [PATCH v2 0/2] Remove the IIO counter ABI Message-ID: <20210130190452.34c6bf37@archlinux> In-Reply-To: References: X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 30 Jan 2021 11:37:02 +0900 William Breathitt Gray wrote: > Changes in v2: > - Add missing argument to devm_kzalloc() call in quad8_probe(). > - Remove superfluous 'err' variable from quad8_probe(). > > The IIO counter driver has been superseded by the Counter subsystem as > discussed in [1]. This patchset removes the IIO counter ABI code and > documentation. > > A patch to remove the IIO counter ABI code from the stm32-lptimer-cnt > counter driver has been submitted to the list separately [2]; if you > would like me to combine it with this patchset, please let me know. No problem, I've already picked that one. > > One final user of the IIO counter ABI code is still remaining for now: > drivers/iio/trigger/stm32-timer-trigger.c. Is this driver related to the > drivers/counter/stm32-timer-cnt.c driver? Can it be migrated to the > Counter subsystem ABI instead? I'm going to guess that we could probably drop the iio_dev part of the stm32-timer-trigger entirely, though I'm not totally sure so wouldn't be confident doing it without someone having hardware to test. In particular there may be some connections between whether the device is enabled and the triggers working that isn't documented anywhere that I can spot. Whilst that's still in place, I'm going to pick up patch 1 of this set, but leave patch 2. The ABI is clearly marked deprecated so we shouldn't get new users and we can pick up that patch hwen the stm32-timer-trigger has been tidied up as well. Applied patch 1. Thanks, Jonathan > > [1] https://lore.kernel.org/lkml/20210119104105.000010df@Huawei.com/ > [2] https://marc.info/?l=linux-arm-kernel&m=161192667926697 > > William Breathitt Gray (2): > counter: 104-quad-8: Remove IIO counter ABI > iio: Remove the IIO counter ABI documentation > > Documentation/ABI/testing/sysfs-bus-iio | 40 -- > .../testing/sysfs-bus-iio-counter-104-quad-8 | 133 ---- > MAINTAINERS | 1 - > drivers/counter/104-quad-8.c | 653 ++---------------- > drivers/counter/Kconfig | 2 +- > 5 files changed, 65 insertions(+), 764 deletions(-) > delete mode 100644 Documentation/ABI/testing/sysfs-bus-iio-counter-104-quad-8 >