Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp997583rwr; Thu, 20 Apr 2023 08:42:22 -0700 (PDT) X-Google-Smtp-Source: AKy350Y4RMEFNC8IpzbcOg0a9OXAmTMIpAMvF7xBS8rP+DGLY/y87rsIlkMXW7m5xxiYQmNDcpoZ X-Received: by 2002:a05:6a20:a10b:b0:f2:2c08:4311 with SMTP id q11-20020a056a20a10b00b000f22c084311mr1122931pzk.21.1682005342294; Thu, 20 Apr 2023 08:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682005342; cv=none; d=google.com; s=arc-20160816; b=laYNCUdvcDiN5X87aHf/Y+UpEI9xK3xNBNv9RvaUZW1xXMknklgpKabmcsogTUV4sh +YfdBc0Ua78rte+FKc4eYtQ8F846keR0UFJwQu93XpbaU4LLu4Oyyl2jpz0xnz2DHzN9 no3+kF5n+Q4lIyAFOiYpSmT9GhVWHUoKT1xxp+Rn0c3PqdN+ZNVhTnplg6D1aIiDZMuP oBKFfiCR1l6cTQtV2wS13LVAOrZmzzdsn5eF17GtV2l2s5ZJK8I7o/TfaDzgxA+CJFUs 5DZrR/7/dYMQPf/53QuVRL2coAVGIbY2iJtwUzVV4LV59hFbz6RtnlMXMq/orDVQxC2C rW8Q== 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=Ng/7l5VlfjgvLBZOn+6emtZItxRcIQQXLL+YWHzwDfU=; b=h5hD0BWJ3Etn2/JZrLntN7b8heV4f2QqZ3FnKqFiBVNgSSCIPRnA/QW5x8/3Dse/yr b178ygZJlwAOlxHsWkF7yRy4c8OC7v3aoIuNIwuFPAHbxw9ZWW5WCpNRrKTNe/UF4Msk DIZpRZVM/Pw6G20nEklZtLAGr9av4dK5mE1ZPe2ehvBdtehH4zSO41mx7cQ3UiXZIS+I 4LMMZHb1Jvu+8MAZrYj6IHAxVP6vsgjMnPT2NMIFrt8huP1PLoavv0Yityul8X/5Frfg tuLbZEFnHtfOZh+1VehYWz6qwBeQAEKavp6KraCpXwtNMaqWw9C+mictWWP35yjXnooo 3D8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QW3lu605; 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 i28-20020a63221c000000b0051b85b5a3d1si1782207pgi.127.2023.04.20.08.42.04; Thu, 20 Apr 2023 08:42:22 -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=QW3lu605; 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 S232078AbjDTPkl (ORCPT + 99 others); Thu, 20 Apr 2023 11:40:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231997AbjDTPkf (ORCPT ); Thu, 20 Apr 2023 11:40:35 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EF8D9F for ; Thu, 20 Apr 2023 08:40:33 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-507bdc5ca2aso1075219a12.3 for ; Thu, 20 Apr 2023 08:40:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682005232; x=1684597232; 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=Ng/7l5VlfjgvLBZOn+6emtZItxRcIQQXLL+YWHzwDfU=; b=QW3lu605jBMYSJRbLYIrS9IzJPjwoSJYKeCmncGY76yReh8FCCYyyql0pg9Ivr+ZkL 937r9nGPBp8Fu/WKnoeGWLfok6zvZIZEir4Qs7el9vKsNfFPi2v9OG5JVM2k0KROyz/r bESc9mUVByXgcnV3eawwGu56f9WmN5pPd8JdFliTkT/7vXTN7FdN6wCu0iFzo+Ij98nF 3LL/ZDek2x2U7WKhRHMbeMWe2GF7sS84jYezdtFY3kICzZQNSNtaRHGH9LGBSg14lv2u zyYcK27ckWHD3FZHIGg4EqYgxYCVumo5G6cFggF5QWERTL2DldXp1a7aYCvSuGOA7mn1 Hy2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682005232; x=1684597232; 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=Ng/7l5VlfjgvLBZOn+6emtZItxRcIQQXLL+YWHzwDfU=; b=FlGIBtQkqDnFu8cJf54hz9+ocnawF8jjcJO3vov1M3a8H/5+O6CQPsdD6gf/eZ9c1/ iLCkDzaVLtubKMUy0snRqu9jwVYBpFDt/P5UH6c+7jZdHT+GarpXKQBU/OcpRD8ziE1n ufWbRDPfnliNbRCUpQUbV/mAqVu6501pE6Y6hAdzer8LK/iqNJfDegAFL7RuadfsgJFI 1Jkzu17rvU23CA0hUywtcGqkjqIZs6pO/sDubC9Qcm1ZECbsgucwGSrkW5OnvBT6g1H/ Oi7a4IKynFcVY9nLVzkv7Qem6OhcWyyxukvI2kfhMIvLJL2zWCwwP3HxyGWg034nHois a9BA== X-Gm-Message-State: AAQBX9deih0s9+k58StPaZOLlQHhITKgABbkTfjQgtE+4sOffy6IgV1B x31C/LKqUGah8ria21V8KjsTrQ== X-Received: by 2002:aa7:cb01:0:b0:506:a2bb:fc43 with SMTP id s1-20020aa7cb01000000b00506a2bbfc43mr2043394edt.15.1682005232101; Thu, 20 Apr 2023 08:40:32 -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 g18-20020a056402181200b004c2158e87e6sm853513edy.97.2023.04.20.08.40.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Apr 2023 08:40:31 -0700 (PDT) Message-ID: <087ba4df-7575-acce-309a-efb5115a987d@linaro.org> Date: Thu, 20 Apr 2023 17:40:30 +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 v2 1/4] spi: s3c64xx: changed to PIO mode if there is no DMA Content-Language: en-US To: Jaewon Kim , 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 References: <20230419060639.38853-1-jaewon02.kim@samsung.com> <20230419060639.38853-2-jaewon02.kim@samsung.com> From: Krzysztof Kozlowski In-Reply-To: <20230419060639.38853-2-jaewon02.kim@samsung.com> 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 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() Best regards, Krzysztof