Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1585745rdb; Tue, 20 Feb 2024 00:07:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWQDCLvEgYPqUiwGBagEB17ZwqzygW6nY3ZUgnHe2UI1w7ohv4wYFfwP00fO259IQj/ezwFLOQjpK+5KCdI/gWup0TiupP4OaVHRnzxWg== X-Google-Smtp-Source: AGHT+IFB8KyVcZ2MZHF3hPltsPZ4EbIeXuGWFBVy3qYUkezmAaEs5KJV8s3p/UkP2eSpNy8JnMmm X-Received: by 2002:a05:6a21:918a:b0:19e:9647:dad3 with SMTP id tp10-20020a056a21918a00b0019e9647dad3mr23827255pzb.12.1708416450462; Tue, 20 Feb 2024 00:07:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708416450; cv=pass; d=google.com; s=arc-20160816; b=rWZXnKabJeUpWgOOGN5H30jEVJokPZtsIbdk0PH4yjFTgmhPAHCQ8SXIGbmjwyOEt+ yOVsgNqZbaoNFVZ6x1mh8HajDzN/Y6Qb5wpURflrRWX74+1h/u8O49AZjUXSK13XvTRW ywzi3OVtQTUWpeZjbBtcSkFUgLKxd+pO0amC+Ufq690kH5KELazvjT0cDswiV8LThlmi WnNJys7CGUa8Qa0geC2JG5usjgdDuHvR09EIqEGIwXwQmjI4K1ohlDN2xrz/D+FFTSwH 3uBdd1iyxJawncOlscrvS+69dgXIGhSsdmz4sHnQqHr/WNRGj3bUUPcUFdKN8FGWTc6q QN2g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=awT0zTo78ApZAKonWlAU5EVPZWIHDSpLrfEEEfQsDEk=; fh=U3zCb27/TWHNGCUjh4mat5zjzMUBAiherJTCrIoKDos=; b=qUBDTh8g2UgtU5OXGlK3Xj3fePJggiAJ0KX5bHPYIQdLFZC+Kt33sWCXkrZT/fMHnH MtpMPSWnxI2VYpzBKb0Cv39KCjw8E/nAiVTrTjE7rUfw4J65Y9wLmcMxkq6yMkHgjEAu ZFGd0CarX12KUBfXEhYi8cZ0oejXMMzIjFAQ0zBNEfBKQHCXVVixcZ7gEAoD7C81LRgZ V+Es2OxuIGG8OhFqQC2wSgwARTzzlVRvvTHlgiD+CUfv1VS2QclIPC92uqvDlB1Gg56D OU7iyxfYPmnta6AW0Z99nVwx3NPIgtwXyFsRvbsLRt6Dq5wllpx/Scvrz5087dsVkYI4 wM8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dD7hcwNW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-72511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z66-20020a633345000000b005dbec9c2919si5675596pgz.379.2024.02.20.00.07.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 00:07:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dD7hcwNW; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-72511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2BCED28212F for ; Tue, 20 Feb 2024 08:07:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D7FAE5C5ED; Tue, 20 Feb 2024 08:07:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dD7hcwNW" Received: from mail-yb1-f175.google.com (mail-yb1-f175.google.com [209.85.219.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44C365C04C for ; Tue, 20 Feb 2024 08:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708416437; cv=none; b=Yv/kON9zoy8AzU8aNr//eiYB+aK+qB8A2S/1Qkw5JnJh8v8fAuK25SSGlADr5ZuBFjf6JZxXQ2ymco0aNq5+Q8yTzGKNbl9YHheYNxOvZghlA8QRa9nbo+MmKd6u1ushrfcCqiiM5m+WQPHjYGNSyJizgIvShJ0kdQes2x2eqV8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708416437; c=relaxed/simple; bh=awT0zTo78ApZAKonWlAU5EVPZWIHDSpLrfEEEfQsDEk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=olmvpeHwGtOuXV33MJ3YutiP02CNLCBgo/aND9nsGsJpPoAsBEcbtdBJXqd4aCJg/kcyzvCicEdC7WPaTQTDm2rblkWeCwe03/+HTPJiorADwIiDIIbz+FpkVcPCwmd7Wh6/bVQ8CHmRaw4BdWz7RXrOFFT60ZLNsNlN/1H96ms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dD7hcwNW; arc=none smtp.client-ip=209.85.219.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f175.google.com with SMTP id 3f1490d57ef6-dcc6fc978ddso4178448276.0 for ; Tue, 20 Feb 2024 00:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708416434; x=1709021234; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=awT0zTo78ApZAKonWlAU5EVPZWIHDSpLrfEEEfQsDEk=; b=dD7hcwNWXJ2cGycOPtjBPwQuJ/2M5NhcvRJYvnPy5wBdtAGbHtreN47OB6JuDI0U6I a/+fh/jDenLkJb3GEU+KC+NM7LFDroyYh1eLUNkMPS9wVXmT8O6J65aIbXdMHc8EvZBI F7ZQZjtyqPg9fD+H/iwKCb19PH1kPRLCKQo00uG76bK6VUB44Pfd6+NJdwjnAWm/6nGP zh6rT20V4kU0w+O4n0ZAS4tuDqePlGizHCSjMLsiipqffNp70it/teKeBS2XhjYeJeJL 684O+g9p93uA2ld79sfdgCt7g2Ej/DI55jpbbgefV1XApgztbz3C5V377jkhQc4oQAu5 7qfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708416434; x=1709021234; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=awT0zTo78ApZAKonWlAU5EVPZWIHDSpLrfEEEfQsDEk=; b=kkRAA7cpkrMsxxsQPFVthSqax3cGiFwGO5t3UxkyYcB7+Dz1uHg+nIcC6S8QWtmvxz q0Ehyn+CcUogwRai7W6QnCrfY9E8ZfhjF2hMyZp1OsL40ip7CtIJ0eXPHgUjpZ5cAt/3 MFNEj3vC01phVuWLIasybB80uFEFJx2d9SU6m2dTS8RKDj4WDomAIt9YwaJGsxLo1C5q i6SKRdRZF/O/VDMARLtiEGXo6y4TgUUeAVWYmdWbDRlkD9Efkf0XcdgBZ1BzZdJtoEH0 BDSMtR/7RqnMt0aSxIL7AwbPqNGpOnCmDBCAPyDI8b/rihOBdwN3u3BuXR2usYoOJ7Bj F+ig== X-Forwarded-Encrypted: i=1; AJvYcCVsLv8JFo9OzYD7Wa+HMfYjB5Szf8XS9ZdP0tt4i7gnvcKLAI255NrKI6jte5szQIKMGM8VUUqOrvZrgAllz8v0ldMQ1t3L1lFm+PB5 X-Gm-Message-State: AOJu0Yy1x9mSoanti1mTSwaWfVy+1+2RB7IyJft+bY8G6umCshAtj25C jAV77ELIjBNmD3foquZe/jvyWkcPn3LW/aQn0kXPzQSFoS5Wn2KrZkAvDJO9ORwQq/+fVTCziVS FlXYH0FJBBT5jSPwS0IkZtWtGj3fG3cvBXSpHeA== X-Received: by 2002:a25:bc4d:0:b0:dc6:de93:7929 with SMTP id d13-20020a25bc4d000000b00dc6de937929mr11460135ybk.26.1708416433908; Tue, 20 Feb 2024 00:07:13 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> <20240214-mbly-gpio-v1-16-f88c0ccf372b@bootlin.com> In-Reply-To: From: Linus Walleij Date: Tue, 20 Feb 2024 09:07:02 +0100 Message-ID: Subject: Re: [PATCH 16/23] gpio: nomadik: support shared GPIO IRQs To: Bartosz Golaszewski , Thomas Gleixner , Grygorii Strashko Cc: =?UTF-8?B?VGjDqW8gTGVicnVu?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 19, 2024 at 4:48=E2=80=AFPM Bartosz Golaszewski = wrote: > On Wed, Feb 14, 2024 at 5:24=E2=80=AFPM Th=C3=A9o Lebrun wrote: > > > > Support a single IRQs used by multiple GPIO banks. Change the IRQ > > handler type from a chained handler (as used by gpiolib > > for ->parent_handler) to a threaded IRQ. > > > > Use a fake raw spinlock to ensure generic_handle_irq() is called in a > > no-irq context. See Documentation/driver-api/gpio/driver.rst, "CHAINED > > CASCADED GPIO IRQCHIPS" for additional information. > > > > Any reason for not using preempt_disable()? I think this needs to be discussed with tglx if Grygorii is not available. Yours, Linus Walleij