Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp996906rwr; Thu, 20 Apr 2023 08:41:49 -0700 (PDT) X-Google-Smtp-Source: AKy350bERYTGvbKcXfVKJ4YWDwa85YoQZAJQFZ5I0Q4r2VHGYiseUrfoS6fBYiRm99myaF9cnnR+ X-Received: by 2002:a05:6a00:2448:b0:63b:7a55:ae89 with SMTP id d8-20020a056a00244800b0063b7a55ae89mr1882388pfj.27.1682005309054; Thu, 20 Apr 2023 08:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682005309; cv=none; d=google.com; s=arc-20160816; b=D1fQRVFmiN2+AuUA72A7Sj0tCSZCiwjLS4wMVmZPdkc5cmBdGzOvuf8+jLc0CnXYai f0s30s/IJ4+qQK5tx9AVDG/OjhD22VXmbO9d61bnN61R8KBF6qkLEzSCBYhjXm2nJ3Fy SeQKufDMwn7rMFpOIA8sjmvkn+CTO3fjkCXlNubbWUambwodvy4D7mcqGHoOHT/n2GB5 C+d6urEbu5D07qkWqFkpZ2rPG2gWOh5DPaY/ppP4rTpO7Pq1R7P2LbdJ1e1ZyfZTNkxb JrBgWIePQRewgrlvGtEU3XZegsiGODq4nAjmcaBr+QLXuPdgLHOW4SSb2JnJiI4Qvjge I61g== 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=ApdTWhhkzb3N6QPss2Yi29YN1Urm38DCu4SfJzo1FQI=; b=rN9+LYORIYst7Y+0uLuyMvLAUbKWfWiZ7Nlw1s40vrlFY7qZa5TxUkZWXS3dTDxSKa P3eVmvK72DDGkcMtnoXm+uw3jF7ZZLBMvmVC/EdtxGx+vgZfatVHz31TalhdLZr/WQXj Xlei1eUvxmmfeR53gcgkBIpwJ9ZYaz+rp/N4myzj+muQPD/+Mrf66Je1mGZ22aioZId7 kjJ4SBaHIvooOpAxHBvI5LoIEF8PAAtAgFBTx4+BdeYWFSPyjyjnJlm0LywgmC5EAhnN x9JTXrS/NXaHIfquOPokHjgnINw9XdSIfsdAtCM6F6Mn8UhN6ZPmmL1xwVP3FWy8PIIL bacg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OI42D9V5; 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 63-20020a620442000000b0063d4595dee9si1948584pfe.46.2023.04.20.08.41.22; Thu, 20 Apr 2023 08:41:49 -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=OI42D9V5; 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 S231187AbjDTPhz (ORCPT + 99 others); Thu, 20 Apr 2023 11:37:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbjDTPhx (ORCPT ); Thu, 20 Apr 2023 11:37:53 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 682F51991 for ; Thu, 20 Apr 2023 08:37:52 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id ud9so7320717ejc.7 for ; Thu, 20 Apr 2023 08:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682005071; x=1684597071; 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=ApdTWhhkzb3N6QPss2Yi29YN1Urm38DCu4SfJzo1FQI=; b=OI42D9V5yNMUvJYFnh5KZP3SfORv1nitueVJtSxwirYdvprgf4mHQfP3mWi6vxh8p7 jc6n1kvmWxPVFwZUqRp9zkDTthsv49ZKHfZE/ajqeT7rNcDTJAWlG+uuomQ7XWcc9IEu 69qmu/jgVP6qiE5E3U94y9VwfIpZmJ60lzZY/OZVUS1Q356VSOoWf0b0gvlLb0willLI +AuwkAWPd6MndKUf7NdsTNatgvsFQTn65fKFAybNM+2k41KxAP4lQl0bC1wvVHpfgAXI ssT8Bo0cqfePRtiDhsfpi/7am7YKWYfLUrq9/stle7KV6a9R+vVpQxY+glFEPtTnfT0U Cbog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682005071; x=1684597071; 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=ApdTWhhkzb3N6QPss2Yi29YN1Urm38DCu4SfJzo1FQI=; b=SQWasKDUSbRfgolAfSBkWU+hTno4ofVci0sSktyp77PyB+q0MWr7vrNZWZbnV4y2rb xUIb1JgCQA7ZzwoaWvhG1PO9FCmfxp6xc2im76OSAwEtajjLLnEmm0qRFiuZrqeC37ow Vi3N/dFGFyEgyAseAQVXeUGjaNyvKCmW0E3IkU6CCFTquzGxO7M8vRb1H2GRzfq8Omai RmfElQgYp+0JYcJ+C8sO+eRuID9kud+Zs5JCgQARXZcuSc+df2I0X3z9GtFXCY6VjpE1 4O9vhLsBqscnvL4Vv74KQsmSOE7Q9C+iQXl5gb4qkfYsXIHzWQRoBDmoAlFcE+Fy8l89 asiA== X-Gm-Message-State: AAQBX9fsGJTO7jWRf++ap8snCJlZSatFkwRcrcDCkKppCOqH/H5lZD0C zyklSs5TCYS09O8lH0jWmdLJuQ== X-Received: by 2002:a17:906:a258:b0:947:4828:4399 with SMTP id bi24-20020a170906a25800b0094748284399mr1991837ejb.12.1682005070813; Thu, 20 Apr 2023 08:37:50 -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 g25-20020a170906349900b0095336e8e012sm865381ejb.176.2023.04.20.08.37.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Apr 2023 08:37:50 -0700 (PDT) Message-ID: <1da788fd-03df-1704-187e-0045876f2605@linaro.org> Date: Thu, 20 Apr 2023 17:37:49 +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 4/4] spi: s3c64xx: support interrupt based pio mode 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-5-jaewon02.kim@samsung.com> <88e74f8f-feee-159a-3048-736a5ffc13cd@linaro.org> From: Krzysztof Kozlowski In-Reply-To: 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=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 On 19/04/2023 11:45, Jaewon Kim wrote: >>> static int s3c64xx_wait_for_pio(struct s3c64xx_spi_driver_data *sdd, >>> - struct spi_transfer *xfer) >>> + struct spi_transfer *xfer, int use_irq) >>> { >>> void __iomem *regs = sdd->regs; >>> unsigned long val; >>> + unsigned long time; >>> u32 status; >>> int loops; >>> u32 cpy_len; >>> @@ -563,17 +568,24 @@ static int s3c64xx_wait_for_pio(struct s3c64xx_spi_driver_data *sdd, >>> int ms; >>> u32 tx_time; >>> >>> - /* sleep during signal transfer time */ >>> - status = readl(regs + S3C64XX_SPI_STATUS); >>> - if (RX_FIFO_LVL(status, sdd) < xfer->len) { >>> - tx_time = (xfer->len * 8 * 1000 * 1000) / sdd->cur_speed; >>> - usleep_range(tx_time / 2, tx_time); >>> - } >> You just added this code. Adding and immediately removing it, suggests >> this should be one patch. >> > This code has been moved, not removed. Move consists of remove and add. Add it in correct place since beginning. Best regards, Krzysztof