Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3117021lqo; Tue, 21 May 2024 07:23:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW2Wkr5btPwhXMe0KaWRbdu6fPen/AVxh8yH4zJXBvrDzSzbmf6THFROY5N+mxGt410YpC4yUOcXJQde78AisCfR9ky8alV8zAOoZAVbg== X-Google-Smtp-Source: AGHT+IEz0emLBXH+NV7ahksA0NZNUFAhWIOeEKL4iMzdhjJen26/6AmTB2DotOo80Z/BuQV7jyIf X-Received: by 2002:a17:90a:7181:b0:2b2:ae4b:9e54 with SMTP id 98e67ed59e1d1-2b6cc772eadmr29574078a91.11.1716301395418; Tue, 21 May 2024 07:23:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716301395; cv=pass; d=google.com; s=arc-20160816; b=A2KP054nXjI+tapWAktEyVfktzQBD/wAf7S5d0Mx3olgps0rxjkvSKg8Ry6HhnIhTV 3raezqjX2wGSZre+f1j4iagpzXPy0X0uDfUO91l2nZdn/paPrksAjxPfFjUFL6lLfQVI bc7lZ8KT1YhBrcMZnFELtCyh3v8e4tBs+1HzWIGtspWD0hXDt8/XPFgKX0TPG2TGSd7m f6e644wnVQWRvG9Lh2jMr/AF0u0ic4LltB+QI9IZTlei7GQFK1hum6G9rjtn+pPNW2To TVi0ljI8/IVULQDfmX9WCoChszk7hp+Lm48Q17dLhiUc39vjAW+ee71nWMCELNj++xek hgfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=4UKsg7qQvlG77Y7q+ZHUhtxz8eupkMhNXaXZZpb8kN8=; fh=Y+y4pvGXeo3uCLpK5SbnTSLoVOBShbHUNMuAkw8pcRU=; b=i1phFJ8ff7lpcbIH1Q1Gg7EtNf3iOuvHYCIulqUIOWadapJbQSKfBkz4XVkOS+xPW2 waNLKmSUiZNQAKy8t89SWmNekxDalUHNtG4rPnt47XR6RlPtmOpdUo9hiN2ej5Y1ukur 1dBwg68PZ32IIg2QnATmagEFVYCgCQn0BBqK90Ra/nWsIatcH3WOOn/21cSjTUHIAOCn oYmaN7wQTzHO67hsWJmxsD5C1jzKuOGwUemlL7yaVP/KgeXWQcZbcJUsxnatpVgkZ6qY 4DqCgGKup/7ww3Z6BdsanqQUYWw5gRiA9DWWjZMlcwH7ouBok/ZOXNU0k4+6B6gswmbx aD8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=FDsC2F5o; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-185085-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2bd5e0dc696si6391037a91.5.2024.05.21.07.23.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:23:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185085-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=@linutronix.de header.s=2020 header.b=FDsC2F5o; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-185085-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185085-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 16AB6281FE3 for ; Tue, 21 May 2024 14:23:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F2BAE12FF91; Tue, 21 May 2024 14:23:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="FDsC2F5o"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="hluSej/x" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2539212EBEE; Tue, 21 May 2024 14:23:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301386; cv=none; b=cTOomSXBAy9i6QTqMi97YcunQ+Vl3d6KwN3k/i+iuHA4HTePGbDWIarJtXft98TZ86xdORPFbA7c1ZkbST1+JTK2DS1l8I8c86mmXy9VD+yQqrHX9PSTUrGdTCpHqe8MHZQR79Ps1whtBGt8lQnXkSt36tfS5CisEC2Dy15rk4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301386; c=relaxed/simple; bh=PC2VzjdE9pOS7qDKBe4Km1hSRdFZqxdUgECUk1pKFzo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Slx3ZNLTnyFCODrjcTDQIHXE3YXudue5N2aXNcmyFVyPBXU/xxc/n4+SzqID1TiUnlo34mPDt/hihfJ441ETdkO7pkV+V3uauA49b/cJJfVv23NWqPZehCP1l2s/rhsT1QImIBCUjUk3mQ1xiKfSHBG4rkdvwAU9ROO2/kBRd6c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=FDsC2F5o; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=hluSej/x; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Tue, 21 May 2024 16:22:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1716301381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4UKsg7qQvlG77Y7q+ZHUhtxz8eupkMhNXaXZZpb8kN8=; b=FDsC2F5oI6AuYvrT9NOQp/6JLwEshM6R1b/Hody5w598azHds13+S7na12ycfSGFLSg1p3 XLR7t8H985ILRAq87I33A1J3NyfKipFvCnztSSrLJRkPnNnMUt65N/hBC56TTGKOKaomcW uDXaAC4/0/Q1yTimdqFT4sdFgY45+xhLx2aiTNGWh2kc3Fwt0WYAepRVUDvB3H58d1iLzp w3TRabN2I8PXEbh7Mau4MFDiGpJZpEUmDD1wTTgPePKAYo91ZgCoJvyFbXuaAjrCWl0E9/ OE+B3aeXzd0b/7p2+kOllTT2bO2xYtdYeIdZYXOGeJe6nLPkc/BX6gj5pxxEWQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1716301381; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4UKsg7qQvlG77Y7q+ZHUhtxz8eupkMhNXaXZZpb8kN8=; b=hluSej/xipmQweXuZ8G5wzxwRmRlDLhkaQQUVK20vJyruBc4o0BFGgNvckm/+SFKp8u+Cf yRErcUTmNtFg8ADQ== From: Sebastian Andrzej Siewior To: Claudiu Cc: geert+renesas@glider.be, linus.walleij@linaro.org, didi.debian@cknow.org, efault@gmx.de, linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Claudiu Beznea Subject: Re: [PATCH] pinctrl: renesas: rzg2l: use spin_{lock,unlock}_irq{save,restore} Message-ID: <20240521142259.Pm56N8P-@linutronix.de> References: <20240520072033.228049-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20240520072033.228049-1-claudiu.beznea.uj@bp.renesas.com> On 2024-05-20 10:20:33 [+0300], Claudiu wrote: > From: Claudiu Beznea > > On PREEMPT_RT kernels the spinlock_t maps to an rtmutex. Using > raw_spin_lock_irqsave()/raw_spin_unlock_irqrestore() on > &pctrl->lock.rlock breaks the PREEMPT_RT builds. To fix this use > spin_lock_irqsave()/spin_unlock_irqrestore() on &pctrl->lock. > > Fixes: e1fd1f9f457b ("pinctrl: renesas: rzg2l: Configure the interrupt type on resume") 02cd2d3be1c31 ("pinctrl: renesas: rzg2l: Configure the interrupt type on resume") > Reported-by: Diederik de Haas > Closes: https://lore.kernel.org/all/131999629.KQPSlr0Zke@bagend > Signed-off-by: Claudiu Beznea Sebastian