Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp333799rwd; Tue, 30 May 2023 21:45:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7uK/spxsfuR4ps8TIH8O3hddGHZsP/bYjWYmqNwnU09T2n8W3/goACEkz/cL66F9vLmvJe X-Received: by 2002:a17:902:d4c5:b0:1a6:71b1:a0b9 with SMTP id o5-20020a170902d4c500b001a671b1a0b9mr4241620plg.47.1685508313203; Tue, 30 May 2023 21:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685508313; cv=none; d=google.com; s=arc-20160816; b=zTEnwjSrNecq2FzjRd+bMCB6dpgSVcZwzEtl6JUtSQx59nqlC86SNbzNGCq8nm41jq ck96E1rXH1VQNksqZ3MQlALe4DnG5QJjqHXfqzzrgEE+KAL2gCdna8uy7ZvW8XDA0cfX U8U2/cULR/NlIB9WAn2eZLALm5SyXVKXX2oXDvIdiO/Yer+QaqkIvG553tcqUyOZLeYA EWJ8KtmcLKnK2GWeQPOKterUV5CpF2/z4aiJZjwcGFuynrBFgQVHAYv04WTcthtqqdRu btsKFRnhqVD0MjWffL6UORnH3ZSMWQnlcfN47d/LxIikUcwH5+R/BNPPGoHIjKCDN6Ew Hycg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=bXrO9ppouZ7HG7OlIrI/PkSnq38wfHIHOR8zSiqPAFM=; b=VQzvVP65eRF39Glgp7680tQHG95eowEsqzuoLBg17U8LYc3qcy4/6GUdSmopq9isd+ 6yZbzg4qVPJWv5sypqhyu6olmkJQwaGaBLB0KGT02ZCnPzTf+zE3G4UWfObsmQ5FCx1S avdL3F66a8E4I7l9ScYf6QasyjNDO+/dwcoJas16pLoZajEZWJKU3tZJPgtuuv/Sb1xS 1gHP20u9HGbdLFivWu53vrEe98YOHN2wewGuq405nV5C1JplKRVnixzgEIeuug7Kky4B xZvnG+g14dgBOc5HmqZCy8RVWW+p1eITjOAbf8nWXdaZ24G7G3JMG1eDbTjdg7pv/Arw yl/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jf20-20020a170903269400b001ab2a0e3163si177598plb.598.2023.05.30.21.44.59; Tue, 30 May 2023 21:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231357AbjEaEbN (ORCPT + 99 others); Wed, 31 May 2023 00:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234277AbjEaEau (ORCPT ); Wed, 31 May 2023 00:30:50 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 279B8186; Tue, 30 May 2023 21:30:49 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 303408167; Wed, 31 May 2023 04:30:44 +0000 (UTC) Date: Wed, 31 May 2023 07:30:40 +0300 From: Tony Lindgren To: Judith Mendez Cc: Chandrasekar Ramakrishnan , linux-can@vger.kernel.org, Wolfgang Grandegger , Marc Kleine-Budde , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Schuyler Patton , Tero Kristo , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Oliver Hartkopp , Simon Horman , Conor Dooley Subject: Re: [PATCH v8 2/2] can: m_can: Add hrtimer to generate software interrupt Message-ID: <20230531043040.GQ14287@atomide.com> References: <20230530224820.303619-1-jm@ti.com> <20230530224820.303619-3-jm@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230530224820.303619-3-jm@ti.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Judith Mendez [230530 22:48]: > Introduce timer polling method to MCAN since some SoCs may not > have M_CAN interrupt routed to A53 Linux and do not have > interrupt property in device tree M_CAN node. > > On AM62x SoC, MCANs on MCU domain do not have hardware interrupt > routed to A53 Linux, instead they will use timer polling method. > > Add an hrtimer to MCAN class device. Each MCAN will have its own > hrtimer instantiated if there is no hardware interrupt found in > device tree M_CAN node. The timer will generate a software > interrupt every 1 ms. In hrtimer callback, we check if there is > a transaction pending by reading a register, then process by > calling the isr if there is. Reviewed-by: Tony Lindgren