Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8358779rwr; Wed, 10 May 2023 23:27:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ljXs7Y+eIN8eXea0Eb14MbafMbEXAzPEUFJc5dpqTUnQOjCi1aebkNACu77Iaj2jNFxdk X-Received: by 2002:a17:90a:8d16:b0:250:faff:e201 with SMTP id c22-20020a17090a8d1600b00250faffe201mr4282277pjo.36.1683786470788; Wed, 10 May 2023 23:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683786470; cv=none; d=google.com; s=arc-20160816; b=rhvOjsJrqW4GevnFK0fgNmZOTeKX8XuLaSSNb0Dbn9fHgbCs4qIECxkuQgd2BCNiU7 tPiIGmmJM/yxCBvRPQIZiuxN0n0Y7t1dCznbuGeAtvxRA6g3H/zpG28oGNJziMGtY4ge 7o22hd9xMag4DCz51Jgi0vWY1+jBgBJyKs1reKBwA3Diqe2Zer5SMOieoC+5ruG6zuDU Xn61WL/f1Lo7QByKJJJd6M+jQWrxQ9FkFoK5OApFoLAoWDgN2NFmw+6i+kk+dKRzOJRW T2A5sgl9oMpmKeP4HYfgmlcSnK9+acyGk1RlWWUDtNCarNVH7KMQDzixJNAZid9Aqo0C q4+g== 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=EjuLYDoHWkbI9lic1+0lHoNb4kM/AfhC6Ej2fISj6KY=; b=nGDY51EhFeGPvFOpMSlTXGIy4kh3sp3g8EjkTKp8Ykjm0giBXnlBUsJJaXsKoF1Rnp 6Bcrv2GmpxTOT87JPbL/BAu5pwPXdYAp1V07cb0AJv4QBnUGm073YTKHJsMZXKuyNbF5 KaeYmv8bZQs9lUB7Wj8liC86uSDDLggjJ0UvTov6tjl6X5MayN8wRfL7XmNu5u2HpR4k E5LlLE7s22FY5aYrVYNFmWuDGESQX/vv49gX0aET4WCsYLrEouAVP3Py7MPbiEPpnWgn hXFzrd3WBC5CK4V6Zh2+5iMfuLMh/05k+SM7mDzNom25VD2P80vUhsZYS1qijr6Nz64J +RFg== 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 mh5-20020a17090b4ac500b0024666c4e8d8si11590754pjb.187.2023.05.10.23.27.36; Wed, 10 May 2023 23:27:50 -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 S236907AbjEKGYA (ORCPT + 99 others); Thu, 11 May 2023 02:24:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236672AbjEKGX4 (ORCPT ); Thu, 11 May 2023 02:23:56 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3A6BCCA; Wed, 10 May 2023 23:23:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 511618109; Thu, 11 May 2023 06:23:54 +0000 (UTC) Date: Thu, 11 May 2023 09:23:53 +0300 From: Tony Lindgren To: Judith Mendez Cc: linux-can@vger.kernel.org, Chandrasekar Ramakrishnan , 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 , devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oliver Hartkopp , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 2/2] can: m_can: Add hrtimer to generate software interrupt Message-ID: <20230511062353.GE14287@atomide.com> References: <20230510202952.27111-1-jm@ti.com> <20230510202952.27111-3-jm@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230510202952.27111-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 Hi, * Judith Mendez [230510 20:31]: > Add an hrtimer to MCAN class device. Each MCAN will have its own > hrtimer instantiated if there is no hardware interrupt found and > poll-interval property is defined in device tree M_CAN node. > > The hrtimer 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. So what about system suspend, do you need to do something to ensure the timer does not happen to run while suspending? Regards, Tony