From patchwork Tue Oct 25 15:56:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 13019503 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 5F6F2FA3740 for ; Tue, 25 Oct 2022 15:57:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232161AbiJYP5O (ORCPT ); Tue, 25 Oct 2022 11:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232540AbiJYP5J (ORCPT ); Tue, 25 Oct 2022 11:57:09 -0400 Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AD55F17D86C; Tue, 25 Oct 2022 08:57:06 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.95,212,1661785200"; d="scan'208";a="140317228" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 26 Oct 2022 00:57:05 +0900 Received: from localhost.localdomain (unknown [10.226.92.152]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 2409540083F9; Wed, 26 Oct 2022 00:56:59 +0900 (JST) From: Biju Das To: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Biju Das , Vincent Mailhol , =?utf-8?q?Stefan_M=C3=A4tje?= , Lad Prabhakar , Ulrich Hecht , Christophe JAILLET , Rob Herring , linux-can@vger.kernel.org, netdev@vger.kernel.org, Geert Uytterhoeven , Fabrizio Castro , Chris Paterson , linux-renesas-soc@vger.kernel.org Subject: [PATCH v2 0/3] R-Car CANFD fixes Date: Tue, 25 Oct 2022 16:56:54 +0100 Message-Id: <20221025155657.1426948-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: netdev@vger.kernel.org This patch series fixes the below issues in R-Car CAN FD driver. 1) Race condition in CAN driver under heavy CAN load condition with both channels enabled results in IRQ storm on global fifo receive irq line. 2) Add channel specific tx interrupts handling for RZ/G2L SoC as it has separate IRQ lines for each tx. 3) Remove unnecessary SoC specific checks in probe. v1->v2: * Added check for irq active and enabled before handling the irq on a particular channel. Biju Das (3): can: rcar_canfd: Fix IRQ storm on global fifo receive can: rcar_canfd: Fix channel specific IRQ handling for RZ/G2L can: rcar_canfd: Use devm_reset_control_get_optional_exclusive drivers/net/can/rcar/rcar_canfd.c | 46 +++++++++++++++---------------- 1 file changed, 22 insertions(+), 24 deletions(-)