From patchwork Sat Apr 9 20:51:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 559341 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 AFAD6C433F5 for ; Sat, 9 Apr 2022 20:51:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231680AbiDIUxy (ORCPT ); Sat, 9 Apr 2022 16:53:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44922 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231649AbiDIUxx (ORCPT ); Sat, 9 Apr 2022 16:53:53 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95016CD4 for ; Sat, 9 Apr 2022 13:51:43 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id c7so17755190wrd.0 for ; Sat, 09 Apr 2022 13:51:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cACyB2KNmobopctUHQpdd+tFeJQNIy3DwPag/D99BI4=; b=Pi5nfqmwfnoDPHUVXy4zqXah8SOmPr2bLwSkRcnrQ4qey1mMIcm26mImpnOn29rzMC 9nueOoyN/0DUT+5PfxvuI8p50hIXo65bsDKoypTqTcmWcPeUY1UJ05p+5arDcK9UmMsr XvHq65jQVOVI8LdeOwVU/2SzVR6ooahjRcctxJP6CQ3uxEDlK7pWEDZD51G3WnN61JqG G9giazd2ph1Fv9iJyF54ds8Xaf0gm3Wa7NaF/4VTKO2L8bUlI3Ba4fevMNCU8nrQlY1U ogiOwPNABcZNoI7+Iu2rQ7O+jkng6A7cDBlN8ikiN6wsvh/8ihELW97FmyrNEmWqEBh/ 8ENw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=cACyB2KNmobopctUHQpdd+tFeJQNIy3DwPag/D99BI4=; b=Ih+OyCXWBwx+CIQLi9Z/lHX/O7myOoXxGxi5eVAxc+opuprd/+AfDwwGXn/hqFbFFf dbG4IIqZc8/v19zWZ4nwcjHVaO99b9iSrcST4yfSD4Qj4heTlU7aph3DL6y2/ft+08Q8 C7DmBcwfXlDnbssCbLIfOR7dPi+U3FLzzZyBSlVjm9Ghnh2W9ZEZ5skG/C3gDYlRbzOz 7ry1RxzNR3YwDuFL1LozCP/ZENlWIXHdtUvd19eKvusPghL5gZ900sNTBx6mFD2lPbYz oJsRHA0a2Eez4LFpjIAeiX2h7argLYRiWlbVEGTLFUC7WD6puH62984eU+iNstj/UlxS FZRw== X-Gm-Message-State: AOAM53301Rr2+YNh3qizJyFAoMuBhq4FYeseBSRIP8H5UAgB4tu5u8T6 dAnzQK01BlWWslraR531/pa2q2F7BWen8T70 X-Google-Smtp-Source: ABdhPJw4zQjdlK+KBXiDNyxJmxQ6RnD5VnrMcW7DsB40E2sjHmmPOSmG/b3SK8QiSq6hl+feTjkw8w== X-Received: by 2002:a5d:6e87:0:b0:206:452:5b87 with SMTP id k7-20020a5d6e87000000b0020604525b87mr19200557wrz.473.1649537502193; Sat, 09 Apr 2022 13:51:42 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:4dc6:8d6a:4095:700e]) by smtp.gmail.com with ESMTPSA id t4-20020adfe104000000b00205b50f04f0sm22223279wrz.86.2022.04.09.13.51.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Apr 2022 13:51:41 -0700 (PDT) From: Bartosz Golaszewski To: Linus Torvalds Cc: Andy Shevchenko , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [GIT PULL] gpio: fixes for v5.18-rc2 Date: Sat, 9 Apr 2022 22:51:34 +0200 Message-Id: <20220409205134.13070-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Linus, Here's a single fix for a race condition between the GPIO core and consumers of GPIO IRQ chips. Please pull, Bartosz Golaszewski The following changes since commit 3123109284176b1532874591f7c81f3837bbdc17: Linux 5.18-rc1 (2022-04-03 14:08:21 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git tags/gpio-fixes-for-v5.18-rc2 for you to fetch changes up to 5467801f1fcbdc46bc7298a84dbf3ca1ff2a7320: gpio: Restrict usage of GPIO chip irq members before initialization (2022-04-04 14:41:34 +0200) ---------------------------------------------------------------- gpio fixes for v5.18-rc2 - fix a race condition with consumers accessing the fields of GPIO IRQ chips before they're fully initialized ---------------------------------------------------------------- Shreeya Patel (1): gpio: Restrict usage of GPIO chip irq members before initialization drivers/gpio/gpiolib.c | 19 +++++++++++++++++++ include/linux/gpio/driver.h | 9 +++++++++ 2 files changed, 28 insertions(+)