From patchwork Sun Sep 20 13:25:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Cameron X-Patchwork-Id: 11787661 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B41BA92C for ; Sun, 20 Sep 2020 13:27:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 972962220C for ; Sun, 20 Sep 2020 13:27:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600608476; bh=W2Ys2+yKOHYpX/ox4uRQogxuqiNiZBaToqJJsbdBmNI=; h=From:To:Cc:Subject:Date:List-ID:From; b=WNl+XgGjIKnjqqz8wrE9ZoSHGiINc3Ps9C83GnmiMEDWjINhWeMqXrJcjrWoKFBX6 ctmNgETC4HSSGoUKPFPQtGck0MDh6+P2DbZsPasceBlKGUKTae2DAZ+eoHJ1UE80t7 +tiZmDltCOPd58wGpxEtr4l8ieLrgmsDNecMGYqk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726427AbgITN14 (ORCPT ); Sun, 20 Sep 2020 09:27:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:43488 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726333AbgITN1y (ORCPT ); Sun, 20 Sep 2020 09:27:54 -0400 Received: from localhost.localdomain (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B524620EDD; Sun, 20 Sep 2020 13:27:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600608473; bh=W2Ys2+yKOHYpX/ox4uRQogxuqiNiZBaToqJJsbdBmNI=; h=From:To:Cc:Subject:Date:From; b=b/G3Btc0n7Vhq/+xl03o/21aBujUhbiIpSMlAZQo/L7oVUUYQFBpF+ztoMFivgMG/ xXojkTpEIGwBwIpS09LAYBDKa7/8ssrHw3ovtW/wNnLvajYYMVu1tqao2HaF9qUidV 2n7GCQe8XalLqCiLO1G3MhFYjKJd4shnoH0UQoRo= From: Jonathan Cameron To: linux-iio@vger.kernel.org, Lars-Peter Clausen Cc: Sebastian Andrzej Siewior , Christian Eggers , Jonathan Cameron Subject: [PATCH 0/2] iio:trigger: Remove re-poll logic. Date: Sun, 20 Sep 2020 14:25:46 +0100 Message-Id: <20200920132548.196452-1-jic23@kernel.org> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org From: Jonathan Cameron This code isn't used by any current mainline drivers (except via error handling routes that shouldn't exist). The original user is long gone. It is causing issues, so let's drop it. The main bulk of this mini-series is renaming the function to account for the change in what it does. Lars, what impact does doing this have on your patches to mark hrtimer and irq_work as expiring in hardirq context? I got a bit lost in the discussion of that series, beyond figuring out his corner needed cleaning up. Jonathan Cameron (2): iio: Fix: Do not poll the driver again if try_reenable() callback returns non 0. iio:trigger: rename try_reenable() to reenable() plus return void drivers/iio/accel/bma180.c | 9 ++++++--- drivers/iio/accel/bmc150-accel-core.c | 12 ++++-------- drivers/iio/accel/kxcjk-1013.c | 10 +++------- drivers/iio/accel/mxc4005.c | 16 ++++++---------- drivers/iio/adc/at91-sama5d2_adc.c | 8 +++----- drivers/iio/gyro/adxrs290.c | 6 ++---- drivers/iio/gyro/bmg160_core.c | 12 ++++-------- drivers/iio/imu/kmx61.c | 10 +++------- drivers/iio/industrialio-trigger.c | 6 ++---- drivers/iio/magnetometer/bmc150_magn.c | 10 +++++----- include/linux/iio/trigger.h | 4 ++-- 11 files changed, 40 insertions(+), 63 deletions(-) Reviewed-by: Lars-Peter Clausen