From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vk1-f171.google.com (mail-vk1-f171.google.com [209.85.221.171]) (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 27DFE3D9DA5 for ; Fri, 5 Jun 2026 09:47:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780652879; cv=none; b=WHrLEZDzaolBcTjLMeSNb4iaPkBX4SeuNXH0bxnZ+fGjFzclziCrbU7gN5DmyYDllS13Po+1w0MfOUlHj+GKwmT9M+vjg62a9eQfQl3Nodp+OIvxGKuwHZ2sWlpRgMiYLDzG4N1blo68dwlny34GOohnbiTD5014jzyA9Dl3wUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780652879; c=relaxed/simple; bh=XegPlP0QUg8N4ZbYcx0a/twqRUS5iUtjIM8XQ1lg9EA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=LS55DPYMlm8G4tTfoQpk/Aa3phAWaZPN3PK9FjO28ylp4Ypxmb+KjDVtkKkxTiNe2O7vo77YYe7PotxEQbdIOWZXw0cx1dNzNUlcDxptuhG+QAHnIlYaTN/JdQI46KGFF6dyYVfkakv50i346FxuAymBiV6zyX3CbjoIWx4cq0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.221.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-f171.google.com with SMTP id 71dfb90a1353d-5a46be4862fso433837e0c.0 for ; Fri, 05 Jun 2026 02:47:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780652874; x=1781257674; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=frpOI/birEQQyfTPmqA3egHq/XurZUvg89/zJvb+Gi8=; b=hoVnPDG0nXal4ms+NfX8VazSImm4cmzdNe/XBnYbvkFhpZ5RdFfpZUkmzwUfuQ2k7R ih/fzZ2SwF2C+PdSgBy4+Lnyb9dQJov/CWWBmudiyLESqj/syV4Tm+vq3VvAczvy/C43 yVyTjuECfuXgnizUGQEWEeFPto5nd1ButQJICwKo7vDF1P2DHQ7wA7xHdHHjWFZaxlHB EYZCR96M5UmJR0WiJMWs5VjcqvIS76zyHnH6uVxXrxUZNLoZmMpjJaIPE3yREjn8zoMR na3WnorOfPbeTTRy0Ro+lJ4Xa93CeYv07aCStrsBX/fyZqmBz5vRluQlACbi/z4HSP7w il3Q== X-Forwarded-Encrypted: i=1; AFNElJ8XBq2YNR4jfvkCikjA+HbsVWj0dZSmBfECgUk0v5okOtu+w8/fas6lANqvhStHpoZAskEsMOr+I5bLB8E=@vger.kernel.org X-Gm-Message-State: AOJu0YyHWCV4OAgm0TVP9YKyH8INrJTAmyfcAFljGQC0t6PJHibLL9F+ GAn94pf1uVsEc2q3aqcwBTv3xkO0yy6Yc3F/M3we588K2vPl1LPlIL6BegBInarW X-Gm-Gg: Acq92OEJP+DQJNzUmFzRZfKSKK1xPgKzw6Dz5kh9VD/QK3N0rwx+FFraLoTL/Kpr0IK XCJFUQYhBctKgxjXVK2zZzTmfC/2JQQC2W007UdklcM5NgAZJBGT6Qi93RrN58OdggRkwX0b+GR W0f6sopiPsxo7Rqb0XXY1fwvKpCmYpNpSvVdYQq0u6TYOpp7R3H3P34BTFw6TIwfR8hAv1pcH21 +1t0Xx+hRNtlwIRm8bgBFzQctaj093Gl8IPjjb6EhIoqzs/bBidUEksFYw9YRDJ8DCa4wPCc4AU RJFbYqSESj39Hidh+KhbAKMzVVK4eG8cP/Sy+Mjf9+7pnPjT0CHXWHCNVMruhiw59FwaGsMnRnI gghN89gxTaLnEzOPCdQQcXsMb82jPxAld5QVlNSJA/h4JZUi8L4BHjumR7RJuTvyIsHCSc7zMDJ Maozsz2N4kLJj1DX3kEnSSGkk3Hp291jzhcRLsjbqt1ysAGvE8hTibERepr51st4MT2HON50ka9 WA= X-Received: by 2002:a05:6122:8b16:b0:575:29ef:7df8 with SMTP id 71dfb90a1353d-5ac4dcf256dmr1235868e0c.2.1780652873980; Fri, 05 Jun 2026 02:47:53 -0700 (PDT) Received: from mail-vk1-f172.google.com (mail-vk1-f172.google.com. [209.85.221.172]) by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5a6ddacc48bsm7288181e0c.18.2026.06.05.02.47.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jun 2026 02:47:53 -0700 (PDT) Received: by mail-vk1-f172.google.com with SMTP id 71dfb90a1353d-59c627b53a0so501167e0c.3 for ; Fri, 05 Jun 2026 02:47:53 -0700 (PDT) X-Forwarded-Encrypted: i=1; AFNElJ+xS4p+vWAyxCYxH37GuIiqYkjYnAQf5XaxVp76w4nL2+tbOSYm5ADS/al07u4QS4FSnSeYO3vDWQs6f2E=@vger.kernel.org X-Received: by 2002:a05:6102:5094:b0:631:26f6:701a with SMTP id ada2fe7eead31-6ff156acf6fmr1089364137.29.1780652873088; Fri, 05 Jun 2026 02:47:53 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20260603151642.4075678-1-claudiu.beznea@kernel.org> <20260603151642.4075678-2-claudiu.beznea@kernel.org> In-Reply-To: From: Geert Uytterhoeven Date: Fri, 5 Jun 2026 11:47:41 +0200 X-Gmail-Original-Message-ID: X-Gm-Features: AVVi8Cd8crXCTmvuTR9VXD3Qx0xyM45BlA1nZ2BpfmDiwjntvYP3B16PpfLU8T8 Message-ID: Subject: Re: [PATCH v3 1/6] pinctrl: renesas: rzg2l: Use raw_spinlock_irqsave() on power source update To: Biju Das Cc: Claudiu Beznea , "geert+renesas@glider.be" , "linusw@kernel.org" , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" , "magnus.damm" , Prabhakar Mahadev Lad , "Claudiu.Beznea" , "linux-renesas-soc@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Claudiu Beznea , "stable@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Hi Biju, On Thu, 4 Jun 2026 at 12:58, Biju Das wrote: > > From: Geert Uytterhoeven > > Sent: 04 June 2026 10:49 > > Subject: Re: [PATCH v3 1/6] pinctrl: renesas: rzg2l: Use raw_spinlock_irqsave() on power source update > > > > On Wed, 3 Jun 2026 at 17:17, Claudiu Beznea wrote: > > > From: Claudiu Beznea > > > > > > The rest of the driver uses > > > raw_spin_lock_irqsave()/raw_spin_unlock_irqrestore() for locking. To > > > avoid concurrency issues or deadlocks, use raw_spinlock_irqsave() via > > > the scoped_guard() helper for power source updates as well. > > Just a question, will rzg2l_set_power_source() called from IRQ context? > > This driver does not have IRQ. If any consumer calls rzg2l_set_power_source() > in IRQ contest? > > Have we seen any such dead locks/concurrency issue during any testing? All pin control drivers use the irqsave variants. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds