From patchwork Mon Apr 3 17:53:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 670641 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 97042C76188 for ; Mon, 3 Apr 2023 17:53:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230527AbjDCRxs (ORCPT ); Mon, 3 Apr 2023 13:53:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231695AbjDCRxr (ORCPT ); Mon, 3 Apr 2023 13:53:47 -0400 Received: from mail-yw1-x1133.google.com (mail-yw1-x1133.google.com [IPv6:2607:f8b0:4864:20::1133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56BEF30E2 for ; Mon, 3 Apr 2023 10:53:28 -0700 (PDT) Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-5445009c26bso566971937b3.8 for ; Mon, 03 Apr 2023 10:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680544407; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pd9Jdz3B1SV91h6NLZvrdVDwNVrNDtan+IBMNGupTQk=; b=Nj/jSV5bFvROgzKaoQxJbRMDMPB/iOtB0mLhe6Fa2/TjnB4hIQEMQtr9s0d/RtJciF nMX2IiNeVWbRtdG3aHvgRso36213IyjwzHVoray3wALsCs2d2KPljjcDxaysgvJ1bXJZ oMssqjXjwLs2jYDTzcphwKc8l0eGsujrnXVjEb4xqLif+8IfkU+fIzSa4tuZv3/oge66 ynZcEXjlNA6m2hk7EoBl+Bh2aJj7uD9omuK+onAxS07PdA1v5UOdH2WQ1CGA3Qa0ct+x zyBxAv2bAX182Zx947+M3FwLTjPFcYgK9HO2g3ZOHUHADHe310vEJ1rd+sU8Dq5ESjn9 PEsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680544407; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pd9Jdz3B1SV91h6NLZvrdVDwNVrNDtan+IBMNGupTQk=; b=S5a9qBeIONNPZF4PeMfG/iE33I6cHATyn+vMTPu3+ljiDaknOxkbqlLSY0etN0+7zX x/wyvMOrktp1MMToU2SfeAWYCFlLWXfz4f4VAaFSSO1khYj3ZlET9wnNiTPLtMx6I1Kt GhoDGibDlMaQRFTJ0/05FWif0y533HhWM99p/+Uvrs9PifCj9/ydB29nBk3nMKFaFgDp 19Xb0vRQ9385bAaO8M2cESQNqnm63rKiKBN85OY2bbL7T78uoSEMYCBuQVqBG9/Cu16j m3w0l7DnMz0tP4zngK/mp4t/P+Ey5khto0lQXYfNZSsuxdq8ehiO7KFe4UT98kw2dD3y BNnw== X-Gm-Message-State: AAQBX9fQejgwSljvCsEj9cf0Cewn4vvXaK7xhB/cifDCI9yIXTvxi5tQ z8Nkgp7UPt0VZkr+dOB8AoQ+LA== X-Google-Smtp-Source: AKy350bE6Me58iqO2ykQwLIpoVILHI34G1RRebNmeh8kvxw548+F69sj8/NDQKgV7FupUfIwZ8TjnA== X-Received: by 2002:a81:4b91:0:b0:538:47b2:c45c with SMTP id y139-20020a814b91000000b0053847b2c45cmr19235930ywa.8.1680544407337; Mon, 03 Apr 2023 10:53:27 -0700 (PDT) Received: from fedora.attlocal.net (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id z135-20020a814c8d000000b00545a08184adsm2661663ywa.61.2023.04.03.10.53.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Apr 2023 10:53:26 -0700 (PDT) From: William Breathitt Gray To: Linus Walleij , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH 0/2] Fix possible deadlocks for i8255 GPIO drivers Date: Mon, 3 Apr 2023 13:53:12 -0400 Message-Id: X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The 104-dio-48e and 104-idi-48 drivers leverage regmap-irq to handle IRQ. The default regmap locking utilizes spinlocks but this can result in deadlocks for IRQ chips when running -rt kernels [0]. Enable use_raw_spinlock for the regmap_config of these drivers to prevent such. [0] https://lore.kernel.org/all/1466065537-82027-1-git-send-email-mika.westerberg@linux.intel.com/ William Breathitt Gray (2): gpio: 104-dio-48e: Enable use_raw_spinlock for dio48e_regmap_config gpio: 104-idi-48: Enable use_raw_spinlock for idi48_regmap_config drivers/gpio/gpio-104-dio-48e.c | 1 + drivers/gpio/gpio-104-idi-48.c | 1 + 2 files changed, 2 insertions(+) base-commit: d49765b5f4320a402fbc4ed5edfd73d87640f27c