Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1613570rwr; Thu, 20 Apr 2023 18:53:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bLEDmYoSfE+OE1F5s6/9aKeql3zpdtPgWc9gTSeR0HviGcVCXlE4UlvGpnjlM83Ylky85z X-Received: by 2002:a05:6a00:1355:b0:63b:4313:f8c4 with SMTP id k21-20020a056a00135500b0063b4313f8c4mr4009362pfu.9.1682041981520; Thu, 20 Apr 2023 18:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682041981; cv=none; d=google.com; s=arc-20160816; b=Kg/j1Xm03A+cu4iTbUOB83YGf+4FugGOfewu3dbJA2mmCuESgIDAcRVzJMhAG603UH wkG6kqflYB/UmY5KhQh/B431Js9CKuheL0wxWaCRi5Elc4q3lIDO1I5ngdoGcA/1VqHN leWGvZ4+lbD6X9f2o7YSrXNqip7Rb/PLznBY2Yxsu828N5BEvNMt+8I7sLnvQP2peK5T 5sqD9le4yJpV7LZUp3zI0nWnyzsDSF2K22QBYspDWYpG7jyypl9t4kxF1eL4xyl7f3Gg svvQJ3nBSUjjztrrezv4HygglmxueZDwoBduVYLvRyDKOTUpERKIuylh4VAXAAWGr75T TX8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:in-reply-to:from:cc:to:content-language :subject:user-agent:mime-version:date:message-id:dkim-signature :dkim-filter; bh=cCyrDxiGndEUcSfg/w6e0yeLBQlNiTq5y+DlcxQS26w=; b=UOcwPRI+2QgbhQgwA7IxHuPxP62RPScJrwQuovbFg8M+TZ8kkxVGpe+X0XppKIcw5s Dyf8dIcRHnP1Qg0hFdfUMZ2W6v5Z9DrD6NHXlqhe0VibL6BISKEuihGcBZTJGh/WO4OS SQdOYGFWX2I5j2EN8+IFFhKbRvjC+yx7P+rkk4fh5wXDiIXUwBdHq+EgdT0vWKNfR1c7 DTEzB/q3H0D0K58b626Dv2tS5njTHuoUTjx8lLyGc5r/mUYTm/QlveysHx3iuLhr0N6W cQGIGXdI6pxum+llE5d4i/pavop0jLCkgNW1lshoH5b1ckIrlzEzqjy6gcXT19LqzYSk mRZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=cuE1q+8b; 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=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u12-20020a63600c000000b00524b2939727si3401966pgb.14.2023.04.20.18.52.50; Thu, 20 Apr 2023 18:53:01 -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=@samsung.com header.s=mail20170921 header.b=cuE1q+8b; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233118AbjDUBrl (ORCPT + 99 others); Thu, 20 Apr 2023 21:47:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230521AbjDUBrk (ORCPT ); Thu, 20 Apr 2023 21:47:40 -0400 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 538D746A4 for ; Thu, 20 Apr 2023 18:47:38 -0700 (PDT) Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20230421014735epoutp011f7e381c69a0c2445b2935afaa86fe2c~Xz-lU5OUs0330103301epoutp01G for ; Fri, 21 Apr 2023 01:47:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20230421014735epoutp011f7e381c69a0c2445b2935afaa86fe2c~Xz-lU5OUs0330103301epoutp01G DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1682041655; bh=cCyrDxiGndEUcSfg/w6e0yeLBQlNiTq5y+DlcxQS26w=; h=Date:Subject:To:Cc:From:In-Reply-To:References:From; b=cuE1q+8bOCBjqR9RqpAF2bZZqv7tebYfRYg2qNSmBjPWdCbRSYoQ0sVqWIPQ7ukGC MsERCcrZ5gY65BXXW7LNP3pfKAQS8ZyxrbtDApJ1NEKRpJdywZen/MMhrY+MHnMf4Z mgbmQDETD/w8ZinbqYuIkJX/tJ9BvyYroAp35qI0= Received: from epsnrtp3.localdomain (unknown [182.195.42.164]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20230421014735epcas2p3487e881fd4a99147fb18396797915755~Xz-k3sgD30212302123epcas2p3N; Fri, 21 Apr 2023 01:47:35 +0000 (GMT) Received: from epsmges2p2.samsung.com (unknown [182.195.36.97]) by epsnrtp3.localdomain (Postfix) with ESMTP id 4Q2cpt5fj9z4x9Q0; Fri, 21 Apr 2023 01:47:34 +0000 (GMT) Received: from epcas2p3.samsung.com ( [182.195.41.55]) by epsmges2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 18.D3.10686.63BE1446; Fri, 21 Apr 2023 10:47:34 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20230421014734epcas2p2417b3b2c41589801924ae76aef92dbb2~Xz-kHy2Zm2869928699epcas2p2L; Fri, 21 Apr 2023 01:47:34 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230421014734epsmtrp293506ac03135b57fe7c766a71f974a34~Xz-kHEdzI1041910419epsmtrp2j; Fri, 21 Apr 2023 01:47:34 +0000 (GMT) X-AuditID: b6c32a46-c81ff700000029be-83-6441eb36a7d0 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 38.1E.08279.63BE1446; Fri, 21 Apr 2023 10:47:34 +0900 (KST) Received: from [10.229.8.168] (unknown [10.229.8.168]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230421014734epsmtip2370ec0f8b6e30d121996234a1f15f83f~Xz-j1tqFY1101211012epsmtip2W; Fri, 21 Apr 2023 01:47:34 +0000 (GMT) Message-ID: <812a93ad-af21-5b34-8199-1ccaae325ce5@samsung.com> Date: Fri, 21 Apr 2023 10:45:09 +0900 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 v2 1/4] spi: s3c64xx: changed to PIO mode if there is no DMA Content-Language: en-US To: Krzysztof Kozlowski , Mark Brown , Andi Shyti , Alim Akhtar Cc: linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Chanho Park From: Jaewon Kim In-Reply-To: <087ba4df-7575-acce-309a-efb5115a987d@linaro.org> Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJsWRmVeSWpSXmKPExsWy7bCmua7Za8cUg5dXNCwezNvGZrH4x3Mm i6kPn7BZXN6vbbH39VZ2i02Pr7FaXN41h81ixvl9TBaNH2+yO3B6XF/yidlj06pONo871/aw eWxeUu/Rt2UVo8fnTXIBbFHZNhmpiSmpRQqpecn5KZl56bZK3sHxzvGmZgaGuoaWFuZKCnmJ uam2Si4+AbpumTlANykplCXmlAKFAhKLi5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H4sIAAAAAAAAA+NgFmpnkeLIzCtJLcpLzFFi42LZdlhJXtfstWOKwfdtPBYP5m1js1j84zmT xdSHT9gsLu/Xttj7eiu7xabH11gtLu+aw2Yx4/w+JovGjzfZHTg9ri/5xOyxaVUnm8eda3vY PDYvqffo27KK0ePzJrkAtigum5TUnMyy1CJ9uwSujB/PL7AVLGKv6O1ez9LAeIu1i5GTQ0LA RGL7/n9sXYxcHEICuxklznY2sEEkZCSWP+uDsoUl7rccYYUoeskoceP8E7AEr4CdxMamn2A2 i4CqxN9jmxgh4oISJ2c+YQGxRQWiJW4s/8YEYgsLBEks+XcfzGYWEJe49WQ+E8hQEYHFjBId l96ygzjMAhsZJVZeX88Mse4no0T3iVlgY9kEtCW+r18Mdjgn0Optl+6yQYwyk+ja2sUIYctL bH87h3kCo9AsJJfMQrJxFpKWWUhaFjCyrGKUTC0ozk3PLTYsMMxLLdcrTswtLs1L10vOz93E CI4rLc0djNtXfdA7xMjEwXiIUYKDWUmE193GLkWINyWxsiq1KD++qDQntfgQozQHi5I474Wu k/FCAumJJanZqakFqUUwWSYOTqkGJmmHLCOjbx+sij51Xvu95N+bX+kKedW8tsxp++wL9RO6 mR9m7sk2L+62UOU7zbFrv7oa0x5J/jv/NwhrxB3Mbp2vM6fM4dGB0I5gy4uXjCevFzl+X87M 7v9z3fiaTYbRCS/Kp8YleUknz5/duDJ1u93ZT4cObTW8kBtnNS9xp39pzzLJkzdq3l1inMP3 YFlGe+jv73UOW/e9LZEVn5PLqXNrz+wL2hHnQv5xpDQe+8p1/0luX8CUYCmFb2It22ZtuxYb cd51X8HVo3Znue+x6rzUMT/7MCDygojPHi6VxMSOIommM5I7J/vdutLdLhvEU/Bt3g422RWK +0Re1e/a7J5seP7r6tmPhHYtLb5pocRSnJFoqMVcVJwIAACqr4QaAwAA X-CMS-MailID: 20230421014734epcas2p2417b3b2c41589801924ae76aef92dbb2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230419062755epcas2p1370c1ca60d88d6b114a7c7c1de3f15c0 References: <20230419060639.38853-1-jaewon02.kim@samsung.com> <20230419060639.38853-2-jaewon02.kim@samsung.com> <087ba4df-7575-acce-309a-efb5115a987d@linaro.org> X-Spam-Status: No, score=-6.1 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,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 23. 4. 21. 00:40, Krzysztof Kozlowski wrote: > On 19/04/2023 08:06, Jaewon Kim wrote: >> Polling mode supported with qurik if there was no DMA in the SOC. >> However, there are cased where we cannot or do not want to use DMA. >> To support this case, if DMA is not set, it is switched to polling mode. >> > (...) > >> #define msecs_to_loops(t) (loops_per_jiffy / 1000 * HZ * t) >> -#define is_polling(x) (x->port_conf->quirks & S3C64XX_SPI_QUIRK_POLL) >> +#define is_polling(x) (x->cntrlr_info->polling) >> >> #define RXBUSY (1<<2) >> #define TXBUSY (1<<3) >> @@ -1067,6 +1066,11 @@ static struct s3c64xx_spi_info *s3c64xx_spi_parse_dt(struct device *dev) >> sci->num_cs = temp; >> } >> >> + if (!of_find_property(dev->of_node, "dmas", NULL)) { > of_property_present() I will change it to of_property_present(). > > Best regards, > Krzysztof > > Thanks Jaewon Kim