From patchwork Tue Aug 15 07:55:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 13353643 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 52D30C0015E for ; Tue, 15 Aug 2023 07:57:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235482AbjHOH4m (ORCPT ); Tue, 15 Aug 2023 03:56:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235465AbjHOH4K (ORCPT ); Tue, 15 Aug 2023 03:56:10 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 85B76DD; Tue, 15 Aug 2023 00:56:08 -0700 (PDT) X-IronPort-AV: E=Sophos;i="6.01,174,1684767600"; d="scan'208";a="176670067" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 15 Aug 2023 16:56:07 +0900 Received: from localhost.localdomain (unknown [10.226.92.136]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 2ACFF4182314; Tue, 15 Aug 2023 16:56:04 +0900 (JST) From: Biju Das To: Linus Walleij Cc: Biju Das , Geert Uytterhoeven , Lad Prabhakar , Fabrizio Castro , Chris Brandt , Jacopo Mondi , linux-renesas-soc@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH v2 0/3] Fix NULL pointer dereference in RZ/{G2L,V2M,A2} pinctrl driver Date: Tue, 15 Aug 2023 08:55:59 +0100 Message-Id: <20230815075602.10473-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Fix NULL pointer dereference in RZ/{G2L,V2M,A2M} pinctrl driver due to a race condition during boot. We have seen issues with RZ/{G2L,V2M} boards. Based on the code, RZ/A2 will also hit this issue. So fixing RZ/A2 aswell. This issue is reproducible with 1/200 reboots. v1->v2: * Updated crash logs as per submitting patches doc. Biju Das (3): pinctrl: renesas: rzg2l: Fix NULL pointer dereference in rzg2l_dt_subnode_to_map() pinctrl: renesas: rzv2m: Fix NULL pointer dereference in rzv2m_dt_subnode_to_map() pinctrl: renesas: rza2: Add lock around pinctrl_generic{{add,remove}_group,{add,remove}_function} drivers/pinctrl/renesas/pinctrl-rza2.c | 11 ++++++++++- drivers/pinctrl/renesas/pinctrl-rzg2l.c | 8 ++++++++ drivers/pinctrl/renesas/pinctrl-rzv2m.c | 8 ++++++++ 3 files changed, 26 insertions(+), 1 deletion(-)