Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6358028pxb; Thu, 27 Jan 2022 12:02:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhDNQgKHBzrqQ15/ow6+i7NMwXpKan2l3cRAdLzIwMjGanJS7Xpu0508G1ZfIGZlCnIalS X-Received: by 2002:a17:90a:65c7:: with SMTP id i7mr15697726pjs.116.1643313770948; Thu, 27 Jan 2022 12:02:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643313770; cv=none; d=google.com; s=arc-20160816; b=RKSH2yMxStIWWwBdSNhlP8d3PPRv+f6Its7dSKCd35/ZfXUVswUghp7S2V6eiL1xr7 2uVPyEZj0YxWFbD90VWIEfFRu/FDWi0wMZQkvvTvtuHl22a4B6xnowEdcgeaYKDiWjL5 zCVVjsQBk5NDimRjYFXr5HwgqB1sHpLfstJ+/+KCFqwQch2x3nEAElhVHoQIWFwvPd3h 1WuSSFEqW+XUsWo1GCgQPlntBN1tALVFFBnt1SGqOKjlsycB0RPc84W5Ur2DZtZQ7Ff/ 0kc/5Dl4Yn/pYf/dFKltZS3EWat9krku8lHOAe/mNaZUkJ00BjjeG4jl87UmN+8tigYl LdBg== 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 :message-id:date:subject:cc:to:dkim-signature:dkim-signature:from; bh=mYuhfjkgxLhE5J8QB5lsf+7ptUPDT96pRbbQPehAdC8=; b=VQGHKblcZa4YxSfjoE8VtNs1voNPO8I5fVjoA7652Enlqhjhd6gVhGf8NASIN6utoG bfMz6f20uB56L7JbuQ/950CbPDgSpiChKtLp3rxOIb9Gywyh8lc7KZ8DbEIVPbFSPNv6 HCS7JDmWAxe1v1PMYU9+yC15WruhA3t8LA1FBMsBZVE8AsGlaVcvip8ipwIFdFK98a4+ ufUG5yXEJJj1HnzkHzrBy+PoOU0DJHReVvBsEA4Wa0JgV0bouGR0l7pxm+k4vjdJCyCT lszbEpY4mVfZQ9xYkgcIZ0PQB/3DakPqFgd3aflglJ5apgdYI2mtjZRSfbkXh+f64Q7N WI+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=XZCFerNU; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=GhwP9tvT; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j13si3179523pfc.194.2022.01.27.12.02.36; Thu, 27 Jan 2022 12:02:50 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=XZCFerNU; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=GhwP9tvT; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240458AbiA0LdQ (ORCPT + 99 others); Thu, 27 Jan 2022 06:33:16 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:35616 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240422AbiA0LdN (ORCPT ); Thu, 27 Jan 2022 06:33:13 -0500 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643283192; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mYuhfjkgxLhE5J8QB5lsf+7ptUPDT96pRbbQPehAdC8=; b=XZCFerNUAmzCKjtqqGZwMhE9HSLl1QSDm2Q8IIOFsTVkH0Ajuh7tbVE3b450WaT3A5txzB h+M8uUgiQFmnLlpOlJR8+PZ6naF2+gpYPSawH9bTTZb6jMnXy8q7msFSx34FUYYiPT+Z8o kg0PCUg5FDRvNQn/tNgZYUtv5fmgkeUg+W2ouBsbS3Uyz+6iilSrRrSf3ZaPp5brxJ0tWg 8rU+bFShHVDZmV4DlAxV/xw/Ub2+a9arOZc4gCByObSBEJS2rUqzLr5/AGk0jA7oonhXdJ SiGhhT4K75i/WNxqqMQc2k/ucIbPqYMekysfWa6QeXXYxFppvAvz9TtPOj48Ng== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643283192; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=mYuhfjkgxLhE5J8QB5lsf+7ptUPDT96pRbbQPehAdC8=; b=GhwP9tvTaIPi+tfKsIwn4x++BLWbtaW9ubbbR0b2mwK09vTxnXqK716l0qaHvLBem+lW0L odIz4rEwqEU8I/Bw== To: greybus-dev@lists.linaro.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, linux-usb@vger.kernel.org, netdev@vger.kernel.org Cc: "David S. Miller" , Alex Elder , Arnd Bergmann , Greg Kroah-Hartman , Hans de Goede , Jakub Kicinski , Johan Hovold , Lee Jones , Rui Miguel Silva , Thomas Gleixner , UNGLinuxDriver@microchip.com, Wolfram Sang , Woojung Huh Subject: [PATCH 0/7] Provide and use generic_handle_irq_safe() where appropriate. Date: Thu, 27 Jan 2022 12:32:56 +0100 Message-Id: <20220127113303.3012207-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org generic_handle_irq() must be used from primary IRQ-handler (chain handler/ interrupt controller entry). It is low level code and the function expects that interrupts are disabled at entry point. This isn't the case for invocations from tasklets, workqueues or the primary interrupt handler on PREEMPT_RT. Once this gets noticed a "local_irq_disable|safe()" is added. To avoid further confusion this series adds generic_handle_irq_safe() which can be used from any context and adds a few user. Sebastian