Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1011716rwd; Thu, 15 Jun 2023 05:21:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7q5yw27iXo+wBLRTr6vGkyj8LwB6lXU2Izx4fqcN7RfMpDbNdv7ZHYvaUNdxfQdmu/PSHs X-Received: by 2002:a17:902:ce88:b0:1af:b5af:367b with SMTP id f8-20020a170902ce8800b001afb5af367bmr5742009plg.29.1686831672644; Thu, 15 Jun 2023 05:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686831672; cv=none; d=google.com; s=arc-20160816; b=pitCRTh4bWyGvCS2nHTUB9Ty6Gdg7Cy/iEj8tjdrnTfjqVWbUHNw8K7NSi261rVRRL 06cESHD6b86zi1Sm1B7htJt91NWbPPA2uv4PusoRuQjOW4qxd/Z4maNH4/ATbhmy6GT4 sLnGwIG+PmwUmEKYrJECrDgLc4bkbp44aeEs/5UHknPDWIzYkdXhi34GsaB5lQ1bVUJR 1FRyPXz1mrbL/UiG1/t5PmIE6B1M14ih+cozUZMKUM/QzTJXg339SPLFP/AgSD6SKdfK z3EDO3vA31HMUExKXQfb14tH4ElVLv1ndSxp0r3B6zYhFjxCNx0+/SfZTwl9EC4m8PU8 mO6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=gtR5yyjqqOCcg96T40YDoUHPwlla3NqWVuy2D+ZwTIk=; b=CekKCiKGptFM0oh/6WyfLscVCe3l2sIBpwvDxuMffM7u6UfPTKFuxgNEwD306K9uJL aSmjdjf5kLSpFHLCDk2p78nzwwVUulXIkgBPyrVxAIpWCrCg+HFeCsFG2qypQdGiXjqX pOyb7oKQ8ICDEsYJ98KaZDtN+z6DG/Lb7ehiISnrz5oJyAWIOgo16zJJN+//7q2ld+V7 ebM+SqsVdegTxpj79ex9rhYvwdliV6XZriMxra28JUp6M+beYtTH3ycrpRkvy8LIz/yK nvD+21zppl325Vxpt1ppAP9b7Vxqt0VSGkjbEcdXoJlYP1ZNbCmcHL3014cyvdmCPkTG dsLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=PhKz+v5R; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a170902d50400b001ac83d28c39si13741952plg.234.2023.06.15.05.20.59; Thu, 15 Jun 2023 05:21:12 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=PhKz+v5R; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344674AbjFOMFa (ORCPT + 99 others); Thu, 15 Jun 2023 08:05:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344768AbjFOMEx (ORCPT ); Thu, 15 Jun 2023 08:04:53 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6563B2976; Thu, 15 Jun 2023 05:02:51 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6658b869cf2so523696b3a.1; Thu, 15 Jun 2023 05:02:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686830571; x=1689422571; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gtR5yyjqqOCcg96T40YDoUHPwlla3NqWVuy2D+ZwTIk=; b=PhKz+v5RhdIZi9p3VwAdDvXQV5oRpln5h3H1OahPU9aPdUTrEDtHRZrQWyeNYkXDhQ FW+GtnP5O4PQNfU7c2r1RSfrUsxyPAFnXmWW+HL0psVqM9niZcIAYtfP5rNoVRk4TNtA 1NnBSz0msntQ5g15c8mgesTGUDLTiopufKHo2jgbtnZjCRPcD+iOvpo8B+0YrVBPdzWj V6etC3SrridTxb50fjzgznPI1RZxiKP3A1hIX+EKYTB6Bt9/Y3G7ccRoUuVtM96MUFXV 6fVkLBvdMEcOMh5w/qxg0mEj74/3VJSzLpmSzJwEZRtZMgrRkG82ll5H7pqgycrPVgbi FGqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686830571; x=1689422571; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gtR5yyjqqOCcg96T40YDoUHPwlla3NqWVuy2D+ZwTIk=; b=F28zpCSHpiY2uM3giO6LZc8uI6Cd4+EaLF8P/M6IgbYHQNk5DBMTXqVp+Cu6Kwwg0d eObX21EWKLvJaSvDTrXb1JdPqjaqwQ8kS4M6iTM4QIWyk9CnNXPUKNC9FBP+pSP13lQL BZ2lWXp9wGPnsRrPF8J4j+WelmV04zFDXQpBPnMzRnFtSMLt+MGHuHhnMnm6IGJpFeH1 5p2QADfOvG7A22LSGb0KZtfBsCsSL4KLghI6yUmeI006XC8t6QmIkeSIphL1gfnkDRfE pYr6GtUOhbdSJFyYe4vX08inlxDrjDbih/gWjGuM1k2A2DzFFjvQXi5I8hzaQZDac/QL C0VQ== X-Gm-Message-State: AC+VfDzm1jJhc6RtJC8bZQjyWBNJ5FDqPD1SIR02vRa+hDOfWNyNeXkM z7Q4AW2yN9HUUVXzCxVSzbfy4eljVX9E16hXfR0= X-Received: by 2002:a17:90b:3614:b0:253:25c3:7a95 with SMTP id ml20-20020a17090b361400b0025325c37a95mr5822610pjb.14.1686830570764; Thu, 15 Jun 2023 05:02:50 -0700 (PDT) MIME-Version: 1.0 References: <20230530224820.303619-1-jm@ti.com> <20230530224820.303619-3-jm@ti.com> In-Reply-To: <20230530224820.303619-3-jm@ti.com> From: Hiago Franco Date: Thu, 15 Jun 2023 14:02:39 +0200 Message-ID: Subject: Re: [PATCH v8 2/2] can: m_can: Add hrtimer to generate software interrupt 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 , Tony Lindgren Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 On Wed, May 31, 2023 at 12:51=E2=80=AFAM Judith Mendez wrote: > > 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. > > Signed-off-by: Judith Mendez Tested-by: Hiago De Franco # Toradex Verdin AM62