Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6112103rwr; Tue, 9 May 2023 10:20:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4TIY7QPjsko4bjOpeLSNXCW6Y1PwyjxVa+bLBGpXsXTDB42I72oWhZMsWH8Y+hOHhEwNuF X-Received: by 2002:a17:902:ce8f:b0:1ac:9efa:bb10 with SMTP id f15-20020a170902ce8f00b001ac9efabb10mr2916825plg.4.1683652813238; Tue, 09 May 2023 10:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683652813; cv=none; d=google.com; s=arc-20160816; b=T0gKqqyqy2lngEqAIVZYRJx7oU/fu6wMpBeWvGIYJDcI/abp6eKJ5/NQgen7ACL//h gDnqn3xsHrwFqAX6BQaVjLrM5G50MMqJhyAyEjjROVngGLqVkYSiW2CmRNBQVMoTNT47 Zngthwx3uurulDC4GpkUoo0NxfN/cHy0b08O8bnCrnDPgpe8QaH5fW5e0WQei3vEQ//d 3TcF1OYqsKUHQe/xHqwnycokW+z3N6DMFZkgkhcXOwyMUQ4UIvEgVMRwXum/hhpQjSS2 wNvJEBHOCzptqO2Kd5dVRL/1ySuGPTtw32o6v3ZcAzilUf51vUS83TbhABlTYtwQHX8T y83g== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zQSHmgj5otF+Z4E0oN3jBRCBSbpgAADGlJPQwaAVMV8=; b=r+G8g2l4U9UuOvAWCIXfA/6pqZ+S4+tmhcMDjJoSyz+vAJkYQD/g2YMf7+BKVpVepv rupaN025gCMC3ZC1qBzsCAvLdXoV9n9ttUT7chY/ICTGB5qP04rCedeTV5VAENOqEX/n 59DF48BnLtSpQdnpzKVKMNtw7A9epepzjXDeZzCu0/vPEsDWghnzXkq795vLHiXumqQR 2WT5GIMD5bp1+9JfUtVaTXI6g7JXYVW54h5HMHbLgIvBOg4fB/VxiCN6hNtQ6YStP4Mp osdTZSxQ8ZpkNMfsROuhwGpQHfId3pb/mkhewPfuq1/b0Ki2S7Gn6HTmxW0PA7PL0JaC PwiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DH2oK3rw; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y10-20020a17090322ca00b001ac8defdaf5si2084239plg.76.2023.05.09.10.19.57; Tue, 09 May 2023 10:20: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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DH2oK3rw; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235322AbjEIRGi (ORCPT + 99 others); Tue, 9 May 2023 13:06:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235326AbjEIRGU (ORCPT ); Tue, 9 May 2023 13:06:20 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C34D9E709; Tue, 9 May 2023 10:03:57 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 349H2UD8043853; Tue, 9 May 2023 12:02:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1683651750; bh=zQSHmgj5otF+Z4E0oN3jBRCBSbpgAADGlJPQwaAVMV8=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=DH2oK3rwIFAdYCwxcdE62TriABAvB0KUUoPAED9Y1a62g62VABnScrE+zEO8EY51K QbpD7qTS7vbza5JeRB3729cS26Ca7fWLmWwoaofBGFylEmMptvtzOolXz6bgC53ain XNKUOvw1dZL+EWbDkFwWaHMDRm57t8oKmrkD/LsA= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 349H2UGp014138 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 9 May 2023 12:02:30 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 9 May 2023 12:02:30 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 9 May 2023 12:02:30 -0500 Received: from [128.247.81.95] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 349H2UjK114180; Tue, 9 May 2023 12:02:30 -0500 Message-ID: <674f0aac-3f4c-7c9e-4f1d-50a2e14348a3@ti.com> Date: Tue, 9 May 2023 12:02:30 -0500 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 v4 1/4] dt-bindings: net: can: Add poll-interval for MCAN To: Marc Kleine-Budde , Rob Herring CC: Chandrasekar Ramakrishnan , Wolfgang Grandegger , Krzysztof Kozlowski , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , , Schuyler Patton , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , , , Oliver Hartkopp , Simon Horman References: <20230501224624.13866-1-jm@ti.com> <20230501224624.13866-2-jm@ti.com> <20230505212948.GA3590042-robh@kernel.org> <20230509-strike-available-6b2378172a59-mkl@pengutronix.de> Content-Language: en-US From: Judith Mendez In-Reply-To: <20230509-strike-available-6b2378172a59-mkl@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hello all, On 5/9/23 07:27, Marc Kleine-Budde wrote: > On 05.05.2023 16:29:48, Rob Herring wrote: >> On Mon, May 01, 2023 at 05:46:21PM -0500, Judith Mendez wrote: >>> On AM62x SoC, MCANs on MCU domain do not have hardware interrupt >>> routed to A53 Linux, instead they will use software interrupt by >>> hrtimer. To enable timer method, interrupts should be optional so >>> remove interrupts property from required section and introduce >>> poll-interval property. >>> >>> Signed-off-by: Judith Mendez >>> --- >>> Changelog: >>> v3: >>> 1. Move binding patch to first in series >>> 2. Update description for poll-interval >>> 3. Add oneOf to specify using interrupts/interrupt-names or poll-interval >>> 4. Fix example property: add comment below 'example' >>> >>> v2: >>> 1. Add poll-interval property to enable timer polling method >>> 2. Add example using poll-interval property >>> >>> .../bindings/net/can/bosch,m_can.yaml | 36 +++++++++++++++++-- >>> 1 file changed, 34 insertions(+), 2 deletions(-) >>> >>> diff --git a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml >>> index 67879aab623b..c024ee49962c 100644 >>> --- a/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml >>> +++ b/Documentation/devicetree/bindings/net/can/bosch,m_can.yaml >>> @@ -14,6 +14,13 @@ maintainers: >>> allOf: >>> - $ref: can-controller.yaml# >>> >>> +oneOf: >>> + - required: >>> + - interrupts >>> + - interrupt-names >>> + - required: >>> + - poll-interval >> >> Move this next to 'required'. >> >>> + >>> properties: >>> compatible: >>> const: bosch,m_can >>> @@ -40,6 +47,14 @@ properties: >>> - const: int1 >>> minItems: 1 >>> >>> + poll-interval: >>> + $ref: /schemas/types.yaml#/definitions/flag >> >> This is a common property already defined as a uint32. You shouldn't >> define a new type. >> >> A flag doesn't even make sense. If that's all you need, then just enable >> polling if no interrupt is present. > > Ok, then it's implicit. No IRQs -> polling. Ok, will send out a v5 with these updates. Thanks. regards, Judith