Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp98186pxb; Tue, 12 Apr 2022 18:01:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDOM8NmJumdnClEMs7BlzWC8lhG7k+SYAW8DpqqNItAYGTpLKsn9lg3BK4Uyxj/3daO9mP X-Received: by 2002:a62:ed0b:0:b0:505:7675:1119 with SMTP id u11-20020a62ed0b000000b0050576751119mr7268296pfh.4.1649811667055; Tue, 12 Apr 2022 18:01:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649811667; cv=none; d=google.com; s=arc-20160816; b=vuicT0NfBTv8IiB0kMMOKlVQlXG1LNg8/Ie4bHa5PGygwk4W529JBXAQoWcAdYYNpG tHmza/fBcnlvZSPsLYRBLN4asPCw+tiq9cT2CjMgsMwaWS1m5tXKzWmo7VKFT5QsMOrt viloE0DGV/6OTuWNNlTCQd1Eu4BxnW4U1xBBMW50+RGLOtwXgjzm4zSKDg/B1kC60aKk cf8aBwG1xAyn14vjoPjt96whvo9C9a4mIbgyuoHQIEgRr1WQ6kWs2ohoWQue7Zvsf0m8 K31tAAO4Tvi923SYI+QPgc2iXW2LgsaK3pN0HFflqwpsvdZLUpIfUcwsPsRbs8+Xq3EZ GG+w== 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:from:date:dkim-signature; bh=UxsCoDp31aiBImIkqt24q8Po1hYiUkBUonDFR5Ofntw=; b=BoQbdq4B0p+pp4aOrpaHJorfLJa2QeoPa9PLmBS6F42QZALtRsQwHavwLrmO7U1on8 xTmSQ1iyVoZllv9SB5ki0H7s/HcgrnIhedH6THtmnHYcXD5oCoVUFZDBFDOmBSrQCz+5 hpftmWKUwLGHR1Ah+5SeV9bW7z5sH6KDUPHmRTjUuYJFmQkSQgNkR0cuZxjoTSUxsT19 RdIDE0ypQpLBb2SvIsZbYlLY7bTZ3Qe2CJQnhPW8frsj4wU8TJ9T92AYkaCX1DXBBC03 f0sCIrRUXagFViMZj0V2xAAQk4GVftZnOJpUZvHEXdM1L6u+FIyL9hM23xaLFmdXe9NG zyGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bZwl33ih; 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 pb11-20020a17090b3c0b00b001cba43173ebsi5787576pjb.94.2022.04.12.18.00.39; Tue, 12 Apr 2022 18:01:07 -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=bZwl33ih; 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 S230271AbiDLXcM (ORCPT + 99 others); Tue, 12 Apr 2022 19:32:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbiDLXbz (ORCPT ); Tue, 12 Apr 2022 19:31:55 -0400 Received: from mail-oi1-x230.google.com (mail-oi1-x230.google.com [IPv6:2607:f8b0:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D66515B861 for ; Tue, 12 Apr 2022 15:27:13 -0700 (PDT) Received: by mail-oi1-x230.google.com with SMTP id k13so243722oiw.1 for ; Tue, 12 Apr 2022 15:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=UxsCoDp31aiBImIkqt24q8Po1hYiUkBUonDFR5Ofntw=; b=bZwl33ihse6GJsvXWKqeF/IvrtS5uft25XvaEmueM5II7dwdtvYViIen+7Wp1P7mz4 VKgUHWj8EIKf82qgI43YteAK0OkCiwKFfOgOMB1Q2JbRCIPw2BQcyLtCBRSkUb5h67yt oeFt0MzLGTD04LYu31FTgHr0p3sxhvuYqBr3HHxaPF7ebxmSskQlF3g5SHcJjviq+NhW xtat1qBFPUPJKwzEa2XQWuO24VxhE6IF/j2YYiKP/yRfH14bMFcJBFB3QlenXLMzYoap XqE32894ZyK+6LRmumbtoilW1fK5oZZZkEkyN1cQSU4E787hevhLMrHPMv/hP0nZ6kE1 Jl9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UxsCoDp31aiBImIkqt24q8Po1hYiUkBUonDFR5Ofntw=; b=2EdyhlTjWc+gl5G+yjLrUsTxruxeY29BV1/eWEn7PxSFJ9YnRzPiqpEKlO5FVfvu2Y yVSgeHg5Ba4F271hnaiZDaPqOhWZiTF6DHmm6JHcCZ9txk7r4J/essp8sxYCqmbLoBdd UhYilv2qw+Fnx+6EEdgxBW/XPvs5rk2mzTW9g3vZJsd41C8J+b4kU6p6BrvmdWgdZAo6 +faNWRs55xmyFz8fsgWOTU0J9gHtlhJTfMgffcX9dRuc9jo+Q5OtrnYc0wjUHtAZn3Ve kvPAkdxQmmqv2iO1YEQ2Xwf8nc3/Xz10WiPzqVwZ7vSXLK27jCnt2g0J4LvMff+BIQPS nt8w== X-Gm-Message-State: AOAM5303DwxiW4ryGEOxPEE6dc7LxHx7E2aYXJqBMUiNoeVjiYtaIawl L3s1vJbZ2uO2nCbd78MAlBQWnBS3pYCQiuK+ X-Received: by 2002:a05:6808:114d:b0:2f7:59fd:2f18 with SMTP id u13-20020a056808114d00b002f759fd2f18mr2672185oiu.113.1649798910952; Tue, 12 Apr 2022 14:28:30 -0700 (PDT) Received: from ripper ([2600:1700:a0:3dc8:205:1bff:fec0:b9b3]) by smtp.gmail.com with ESMTPSA id w133-20020acadf8b000000b002ef9fa2ba84sm13078432oig.12.2022.04.12.14.28.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:28:30 -0700 (PDT) Date: Tue, 12 Apr 2022 14:30:44 -0700 From: Bjorn Andersson To: Vinod Koul Cc: linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] dmaengine: qcom: gpi: set chain and link flag for duplex Message-ID: References: <20220406132508.1029348-1-vkoul@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220406132508.1029348-1-vkoul@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Wed 06 Apr 06:25 PDT 2022, Vinod Koul wrote: > Newer platforms seem to have strict requirement for TRE flags which > causes transaction to timeout. This was resolved to missing chain and > link flag for duplex spi transaction. > > So add these two flags. > > Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson Tested-by: Bjorn Andersson > --- > drivers/dma/qcom/gpi.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c > index 94f3648f7483..3429ceccd13b 100644 > --- a/drivers/dma/qcom/gpi.c > +++ b/drivers/dma/qcom/gpi.c > @@ -1754,10 +1754,14 @@ static int gpi_create_spi_tre(struct gchan *chan, struct gpi_desc *desc, > tre->dword[2] = u32_encode_bits(spi->rx_len, TRE_RX_LEN); > > tre->dword[3] = u32_encode_bits(TRE_TYPE_GO, TRE_FLAGS_TYPE); > - if (spi->cmd == SPI_RX) > + if (spi->cmd == SPI_RX) { > tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_IEOB); > - else > + } else if (spi->cmd == SPI_TX) { > + tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_CHAIN); > + } else { /* SPI_DUPLEX */ > tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_CHAIN); > + tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_LINK); > + } > } > > /* create the dma tre */ > -- > 2.34.1 >