Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3868971rwd; Sat, 3 Jun 2023 13:55:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xrgqC5cKjNASKGl25XVbzf8vuLKyqReulm43iq3jRuKXd0UQcbhqGL6chN2OjFaUzX78R X-Received: by 2002:a17:902:860c:b0:1b0:1036:608c with SMTP id f12-20020a170902860c00b001b01036608cmr3534840plo.25.1685825726318; Sat, 03 Jun 2023 13:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685825726; cv=none; d=google.com; s=arc-20160816; b=ksBKJRmgUsfVALkIegVVJv66tSS7dPFhkmVYQpcpcqqc6bkGa98FxekwJGKlUrKwll OlL41OVtuqHvxfEpTJY6X3mS7eHrHSWIRb0FPTzjZPOEmijk6EqIWRDuGjGIMs2IlOz4 amW8+w9vr1QlP+z/SBQKCWhAQKwe789ikh+su+Swhd0r8hhwJoKI8s66J6Lvl7DkHIby yNMC0socVgchAUVvmApzPvj+dio4JXzUerjMJ8OhyGBvTbGmt02Z+SRndaEQ/bYZXG96 OdzrqRDq/Dc/6QzJNNKu+x3M0w8EwNygYc1soZXzlP2UP07L80vVrBNe5uIuqLy7HsQD JXxA== 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:date:from; bh=zGXwvjMoA9qtxdVeBv8B/qWfiVV5gK0LTpKcnsG5SjI=; b=n5sXhwR2v6Fv+65iGVPSngDR+WZnbbygdmmcM65gmGqw+b9tTNA48SUpJVZ21zZaqA jLStnKbzsAtrnLZ+zKtKB3TDKYXuJwHVdFMwNssjOJg3gjCabzftl2a9lMHapuvf/6xa k12fCW2F8QMBorPDcl8+2r0UFa4GiQYErkoaxP7CbiWPJYSHJ/17H1VYjKMWfjF8bPZc ccgz7f+2xOWCwItC15uu4p24jLNM+RepSwC0U4tAct1Nzy/89OX+6a/kv3c3Rkg8u3fU oT1mvD0bllIcDz4fWwpTTLpLH3AYpxTbdMkrb0RiIXD9dgxTC7qHWpFk2lCBR+0n0rSB zteQ== 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; dmarc=fail (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 n5-20020a170902e54500b001a63d8efabasi3147120plf.445.2023.06.03.13.55.14; Sat, 03 Jun 2023 13:55:26 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230051AbjFCU10 (ORCPT + 99 others); Sat, 3 Jun 2023 16:27:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229827AbjFCU1Y (ORCPT ); Sat, 3 Jun 2023 16:27:24 -0400 Received: from fgw20-7.mail.saunalahti.fi (fgw20-7.mail.saunalahti.fi [62.142.5.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0FC412E for ; Sat, 3 Jun 2023 13:27:23 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw20.mail.saunalahti.fi (Halon) with ESMTP id 0b25cecc-024d-11ee-b3cf-005056bd6ce9; Sat, 03 Jun 2023 23:27:22 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Sat, 3 Jun 2023 23:27:21 +0300 To: Nikita Shubin Cc: Alexander Sverdlin , Arnd Bergmann , Linus Walleij , Mark Brown , Michael Peters , Kris Bahnsen , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 18/43] spi: ep93xx: add DT support for Cirrus EP93xx Message-ID: References: <20230424123522.18302-1-nikita.shubin@maquefel.me> <20230601053546.9574-19-nikita.shubin@maquefel.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230601053546.9574-19-nikita.shubin@maquefel.me> X-Spam-Status: No, score=0.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no 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 Thu, Jun 01, 2023 at 08:34:09AM +0300, Nikita Shubin kirjoitti: > - find register range from the device tree > - provide clock access via of > - use_dma as a DT node ... > +static struct ep93xx_spi_info *ep93xx_spi_get_platdata(struct platform_device *pdev) > +{ > + struct device_node *np = pdev->dev.of_node; > + if (np && of_property_read_bool(np, "ep9301,use-dma")) Excessive check for np to be NULL, this is implied by the _read_bool() anyway. > + dt_spi_info.use_dma = 1; > + return &dt_spi_info; > +} ... > + master->dev.of_node = pdev->dev.of_node; device_set_node(); -- With Best Regards, Andy Shevchenko