Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1102530ybg; Mon, 27 Jul 2020 08:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGJ/nhDpXDyz9fz8gH4bvVx2nfvWx07TASw7M/RDSshqg3MPnBkdHg3510L1kxtecZW+qQ X-Received: by 2002:a17:906:d04c:: with SMTP id bo12mr22238861ejb.31.1595862048415; Mon, 27 Jul 2020 08:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595862048; cv=none; d=google.com; s=arc-20160816; b=qLvdZ3od9qQxtZrgXaJWbR/zC9bgfMjPKjcb4RaHGg9tyz28zl3Jp4tsG0+Hnd1+st /O9jOaKAEXVocVRNu0JZWH2xmAEDAOmZE0TwjZ5QFbuZYlptzc09C8fai24su9tkCNZc Hpm6tTHdByjyNLtYY/YfyXMcYSbRsHJyZgaXO1Kf1RqQGnhR25ckvylAgapWuSC50c7N 0I543p4RZ6nk+v3Xg0IaBRF/L/fSgcbQktu20jwM1hjd9jXbGM9EX4ADVpYhkZakqVe7 p+hmOyDme1CPuEMwL0UoKRJ6j8NmXcoByAp9+Wej1ma2zyfy/h1dMs0jfXsnTVyYxwGR 4lEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=uiSTS4D9zKNOFIO/TUG4mNQEiaMGkBeu62ByxDgjh30=; b=gZ0emJZXGFtncT91OA0XEoNtoV30Vo2r5ayVEfleW2mL4RNfFNwqEOkogxPew3PJek UzDZOHN5dls7fKOOCvlXSqiUFhUEZV9zTqu6JBdIaaa8jG1dgn0F/liZd0v99EYetD1J WZEl1/n3FLtqBR4h5YqcwqrazWIaVXdbJvblUzK1eyZCPH7lWbMb9zsQjIdDnI6a5XWD IdtOVJWYd2rO8ZpXnPY+H85iAQpdt1p62imV81Kr8TM9APIb66iBge2jHvYEvuVgf83B o7Hzfu3TN45uIFrt8/p1G2BO5V5jZNdxuHTyto8FUVOXV8m56bOBXiWRhQ3TcRZlCmnx /n5A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g5si5887562ejx.63.2020.07.27.08.00.25; Mon, 27 Jul 2020 08:00:48 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729409AbgG0O7y (ORCPT + 99 others); Mon, 27 Jul 2020 10:59:54 -0400 Received: from mailout10.rmx.de ([94.199.88.75]:60088 "EHLO mailout10.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728776AbgG0O7x (ORCPT ); Mon, 27 Jul 2020 10:59:53 -0400 X-Greylist: delayed 673 seconds by postgrey-1.27 at vger.kernel.org; Mon, 27 Jul 2020 10:59:52 EDT Received: from kdin01.retarus.com (kdin01.dmz1.retloc [172.19.17.48]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout10.rmx.de (Postfix) with ESMTPS id 4BFjdd30Rvz36nt; Mon, 27 Jul 2020 16:59:49 +0200 (CEST) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin01.retarus.com (Postfix) with ESMTPS id 4BFjd050Rmz2xFT; Mon, 27 Jul 2020 16:59:16 +0200 (CEST) Received: from N95HX1G2.wgnetz.xx (192.168.54.121) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 27 Jul 2020 16:59:16 +0200 From: Christian Eggers To: Jonathan Cameron CC: Christian Eggers , , "Hartmut Knaack" , Lars-Peter Clausen , "Peter Meerwald-Stadler" , Geert Uytterhoeven , Alexandru Ardelean , , Subject: [PATCH 1/2] iio: trigger: hrtimer: Disable irqs before calling iio_trigger_poll() Date: Mon, 27 Jul 2020 16:58:59 +0200 Message-ID: <20200727145900.4563-1-ceggers@arri.de> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.54.121] X-RMX-ID: 20200727-165916-4BFjd050Rmz2xFT-0@kdin01 X-RMX-SOURCE: 217.111.95.66 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org iio_trigger_poll() calls generic_handle_irq(). This function expects to be run with local IRQs disabled. Signed-off-by: Christian Eggers Cc: stable@vger.kernel.org --- drivers/iio/trigger/iio-trig-hrtimer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iio/trigger/iio-trig-hrtimer.c b/drivers/iio/trigger/iio-trig-hrtimer.c index f59bf8d58586..2fe8a5c1484e 100644 --- a/drivers/iio/trigger/iio-trig-hrtimer.c +++ b/drivers/iio/trigger/iio-trig-hrtimer.c @@ -89,7 +89,9 @@ static enum hrtimer_restart iio_hrtimer_trig_handler(struct hrtimer *timer) info = container_of(timer, struct iio_hrtimer_info, timer); hrtimer_forward_now(timer, info->period); + local_irq_disable(); iio_trigger_poll(info->swt.trigger); + local_irq_enable(); return HRTIMER_RESTART; } -- Christian Eggers Embedded software developer Arnold & Richter Cine Technik GmbH & Co. Betriebs KG Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918 Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477 Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler