Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1005216rwr; Thu, 20 Apr 2023 08:48:19 -0700 (PDT) X-Google-Smtp-Source: AKy350aGuzcASYa2wGHFFHQbsgNgR5W6ZGYYtlqs0TjNg0w2kfNR0hmZLxMEOqRHgbTN8fJg8LyU X-Received: by 2002:a05:6a20:a188:b0:d5:f7f5:85e4 with SMTP id r8-20020a056a20a18800b000d5f7f585e4mr2014449pzk.22.1682005699443; Thu, 20 Apr 2023 08:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682005699; cv=none; d=google.com; s=arc-20160816; b=SVFSTG8+A3pU+yrZyYhzP2hyEGZ9VtZyMXLnAZPpGIWbk9zuXiYOxYiaWy50TJDDKc r8DG327gam8L7eVqe5vMqbqeP8rteJlFJVSHFr5vtcp5te0att6mLaJPwyDT4rg1YR5M GT9kMFJc3RL5JFB7nB4akV8fWLgRpFqAOgfp30pNsbb+TofXfjGQfY0GjVC9nKyhmq2V JRCjqbxz5dHCb7q17rJontS+mImLAO/lZfYu9b9fBzx25x9eByM8Vajxh8hWIAnZ7FEV WHwevjiqRIEq5htJ+KBQjRpA6HNbayKhrtbDVEEg/4y8cyNbA8ii7qh2D+gYrBUvFn6F 21EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Ii0rJDmD6wGcfR9R86o46jWR7Sx2THT0mFJ55bpx/lc=; b=BeCCZt2MpSR7OdoAIHH54DP4GjhLWNaRiipbiYKQXqmATgqHX8PQsYLe8mR+KxwvqZ QlDmaGQcXhqESlpAx/x2U8/vFYrJqQ9SHstoVF037B4PzrSdZ57QAXl0FgiZnxYFVPjA t6D6q9vVTZx1v7qIoHubVNHZd7IIJbvjwJGF3jywZoU95m9DGgJFs9NWyU6E52Ow2Fb/ CfiITiJsQeTgMe/YE0bHWqSMdVvrV/KSJkKbXVc0IOxM5p2AcVUtWay7IX+71k1ExCH6 jZjvBwImmiqBa0xGY9GgKCWNzMYDCLpLIAC98ivuu6n+gEFYYz/rSXpOBa7714NH0suh QL7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XK4cAxcm; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g62-20020a636b41000000b00513522599casi1922547pgc.831.2023.04.20.08.48.06; Thu, 20 Apr 2023 08:48:19 -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=@linaro.org header.s=google header.b=XK4cAxcm; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232425AbjDTPry (ORCPT + 99 others); Thu, 20 Apr 2023 11:47:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232421AbjDTPrw (ORCPT ); Thu, 20 Apr 2023 11:47:52 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BC8CE53 for ; Thu, 20 Apr 2023 08:47:51 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id vc20so7336449ejc.10 for ; Thu, 20 Apr 2023 08:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682005669; x=1684597669; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Ii0rJDmD6wGcfR9R86o46jWR7Sx2THT0mFJ55bpx/lc=; b=XK4cAxcm9V+tmT5sYaMjsisB8fWSfvuQ3Whf7RuncKhI7VhoZ4bCjDetHGvfTfIm5f TvT4iDeOzqgdC7mdtXMmOezBUtCgt6BrOOlodawLenZ6trC1ZceJ6OfZV9CV5NpBxRXx k3+pXE/yBt55rJ7IGr13BDleUvH2P3i8F4cIhwVd30YHPkfVKjEIFZIj39cl8zk+9AVx XvhwAiQr9lz0VL+itTJCDEoEofnBo2a7IfNvV/DD6vNAodHU9yIR4vyU7Gldv8cCwxdm aRH8ewKOrL/gfzSc7kCFKR3paTDTKNOG2/Hwho1K/uFh38sH3Lv7q1roYKsx54I3RTP0 r5sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682005669; x=1684597669; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ii0rJDmD6wGcfR9R86o46jWR7Sx2THT0mFJ55bpx/lc=; b=Uq+2a5dwLQFwctPyV/bPvh8GRcTt2NY4wRIHoGBl/uQ59b4TjT8wL3b6o/gmjZTHFJ sRgGfEBhV3R7i7VD/99aH2D0mrHfi/WFAWKa3VMJ0OgXoPLWisj8uqUyRfU0HRxE9+B8 smDAbngxU5ajPlX/fdh4BjD/PiIPuU+ifl71TukpXQzw1qiOWM+/Mn9Q7L/sCNROQuu0 16s/u9JAQr27NWnUSEFuh6FgvA3+zMWQjv8rndZN19ubnaofM49fpha3jfkcCDbuCJUG y2NQ4clTVUCqCGMVNuB/D0SW/qb/jMxYxZUROtGVSFaY2AnF/ZsqTrA4QndC7v976ihi xurw== X-Gm-Message-State: AAQBX9dvayoa4WvAFdt+MCdaFmqixtS8lbDRrihSuWcoHrfUG4+56MCz GTj+R/wG7iupfULJf24mzUHuVQ== X-Received: by 2002:a17:906:7215:b0:94f:61b2:c990 with SMTP id m21-20020a170906721500b0094f61b2c990mr2092604ejk.25.1682005669571; Thu, 20 Apr 2023 08:47:49 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:bcb8:77e6:8f45:4771? ([2a02:810d:15c0:828:bcb8:77e6:8f45:4771]) by smtp.gmail.com with ESMTPSA id a8-20020a1709063e8800b0094e4684e5c0sm867274ejj.25.2023.04.20.08.47.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Apr 2023 08:47:49 -0700 (PDT) Message-ID: Date: Thu, 20 Apr 2023 17:47:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH 2/4] dt-bindings: net: can: Make interrupt attributes optional for MCAN Content-Language: en-US To: Marc Kleine-Budde , Judith Mendez Cc: Chandrasekar Ramakrishnan , Wolfgang Grandegger , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Schuyler Patton , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Oliver Hartkopp , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org References: <20230419223323.20384-1-jm@ti.com> <20230419223323.20384-3-jm@ti.com> <20230420-zoom-demystify-c31d6bf25295-mkl@pengutronix.de> From: Krzysztof Kozlowski In-Reply-To: <20230420-zoom-demystify-c31d6bf25295-mkl@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 20/04/2023 12:01, Marc Kleine-Budde wrote: > On 19.04.2023 17:33:21, Judith Mendez wrote: >> For MCAN, remove interrupt and interrupt names from the required >> section. >> >> On AM62x SoC, MCANs on MCU domain do not have hardware interrupt >> routed to A53 Linux, instead they will use software interrupt >> by hrtimer. Make interrupt attributes optional in MCAN node >> by removing from required section. >> >> Signed-off-by: Judith Mendez > > This series basically adds polling support to the driver, which is > needed due to HW limitations. > > The proposed logic in the driver is to use polling if > platform_get_irq_byname() fails (due to whatever reason) use polling > with a hard-coded interval. > > In the kernel I've found the following properties that describe the > polling interval: > > bindings/input/input.yaml: > > | poll-interval: > | description: Poll interval time in milliseconds. > | $ref: /schemas/types.yaml#/definitions/uint32 > > > bindings/thermal/thermal-zones.yaml: > > | polling-delay: > | $ref: /schemas/types.yaml#/definitions/uint32 > | description: > | The maximum number of milliseconds to wait between polls when > | checking this thermal zone. Setting this to 0 disables the polling > | timers setup by the thermal framework and assumes that the thermal > | sensors in this zone support interrupts. > > bindings/regulator/dlg,da9121.yaml > > | dlg,irq-polling-delay-passive-ms: > | minimum: 1000 > | maximum: 10000 > | description: | > | Specify the polling period, measured in milliseconds, between interrupt status > | update checks. Range 1000-10000 ms. > > From my point of view the poll-interval from the input subsystem looks > good. Any objections to use it to specify the polling interval for > IRQ-less devices, too? Better to skip it, if delay can be figured out by driver based on something else (e.g. clocks). Best regards, Krzysztof