Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1195408rwr; Thu, 20 Apr 2023 11:13:16 -0700 (PDT) X-Google-Smtp-Source: AKy350a9Xa63Wao3Z09UsofJgOicfovSWctjdF7KEHCmDZNIBNLx/K7SjpFGmqaTIb2izz1RBf/x X-Received: by 2002:a05:6a20:549f:b0:f2:3056:d198 with SMTP id i31-20020a056a20549f00b000f23056d198mr1544504pzk.22.1682014395748; Thu, 20 Apr 2023 11:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682014395; cv=none; d=google.com; s=arc-20160816; b=UeJV94XrUWXV2BvMimowL1Mm8epaH0UovuO2hZKSBlt0vwo9VoUgIXBY7wgxtdPyHE nb9yb/W6fr96oNq8nR4znA/hgvUIgza2BTUkubCdLFxX/vnqxHMH3kqSaQ9v8PyVr+fs 4Y0Uq5sM0pJtuukJyLVCUJ6fYnUaOUdZZrAs5dT68hTiUa6FqMEmBdd/5aI/UOQf41eu 10CLibLSR1S1Qdk0f51Dn1erqC4+PG1U6fVjIDh4QF3d607dLujsz0NqQJ3zml/fiFII QqH8jaxHlaSU4QpKKN0WsrwECsB4iO2HdCOsjuIm8sOWcSWFUBgd1TnR81qsNo3MRPw9 4kmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0FVvbbOx6CVUuVacoumj0fiPSi4Hh5DrvtofkdN8frA=; b=OkyY1lLFCZbNOVNSJniqdaUtJJjwBEjX+MZOb8aKHbtkHnFKvwISnf/KF9y6B78sCl 9eCUOTOhDWREjP0032kR3uf2ucZByQAbTdzDewjAkvl4KUhqnOPyXnaNVVAr8kCBGujl WyH8C6CE4+rHs3RZkYkQW+NeYzLRPu73Cl9+tvwbVI/m80d3GYJwTpEnuJFAlIDHcS/G Q14eCd25VLK02JdxuaSLvlSb/u5W8lo0n7wN51QYkq5ujhcND6jhXDgQXfIsp3QBva0i j0U3hGj5/Y+Gh5JBGhVM5JDijZHLp2JjRfiqnq0c9imrtSlsf+9AF24m8GzuP2bnSx1x oBhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lF7c7I3r; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 193-20020a6300ca000000b0051909d663dasi2299396pga.726.2023.04.20.11.12.59; Thu, 20 Apr 2023 11:13:15 -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=@chromium.org header.s=google header.b=lF7c7I3r; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229889AbjDTSJn (ORCPT + 99 others); Thu, 20 Apr 2023 14:09:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbjDTSJm (ORCPT ); Thu, 20 Apr 2023 14:09:42 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 284ED1FC0 for ; Thu, 20 Apr 2023 11:09:41 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id k39so2825895ybj.8 for ; Thu, 20 Apr 2023 11:09:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682014180; x=1684606180; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0FVvbbOx6CVUuVacoumj0fiPSi4Hh5DrvtofkdN8frA=; b=lF7c7I3r+GelCaWzXM7PCkuXl3zGosHc4VyqsbWsx8JdG+c6qzcF7MidxK7oMGJMQX fz6Yf86PT9rWAOingxUPYicElbV6S0erBJ7+G9y3KqoTMjUuLnMAGhOVTU/KB03t7aUK u2oVtTiVMOiNhbZvAbiArXL3Glg1C5StaTEP8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682014180; x=1684606180; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0FVvbbOx6CVUuVacoumj0fiPSi4Hh5DrvtofkdN8frA=; b=Swl0x0InzoiI5P/uBF7R6iWP3GkPQO85vPKI1MO5iTboYcudqdD6YZniiHxV+jvymk fs8lgndKV4QD97q/OzYOyRbyoORqve6vzmtk3MT2pm2nNBsq+2KX5wTCbIaW5XT6DJak uFbaWY1slUjUdlud7lds92i1bGAsQhjo3yEkgC8z9GBFHdjVy4fGLLigK6vWUwxmMJGe BHj7nCBzEJCWZRTt+Iq2kY0c/qnRBtoTcW4qC3Exs8uP/zr/iCYTRzLZqbvnA1PRTUO9 i6jyr+39rsCHzVwp5pc0mDgPqRAc0rdr7wXi0Vaekdjg1MeINxbxts/71cOEVb/9jCcA L9tw== X-Gm-Message-State: AAQBX9e9LoBU8EfTLeyZhRA6XhyIS+02UueyGEzknrgbXxlkf97bXm+I W86dkn13LGV+1xTRE3A6Aq/5PMLRtkRIoY7XzwA= X-Received: by 2002:a25:ae0b:0:b0:b8f:4490:3c with SMTP id a11-20020a25ae0b000000b00b8f4490003cmr1754254ybj.10.1682014179864; Thu, 20 Apr 2023 11:09:39 -0700 (PDT) Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com. [209.85.219.178]) by smtp.gmail.com with ESMTPSA id i83-20020a256d56000000b00b8f448e1b6csm440533ybc.1.2023.04.20.11.09.39 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 Apr 2023 11:09:39 -0700 (PDT) Received: by mail-yb1-f178.google.com with SMTP id n203so2841487ybg.6 for ; Thu, 20 Apr 2023 11:09:39 -0700 (PDT) X-Received: by 2002:a25:d895:0:b0:b98:6352:be20 with SMTP id p143-20020a25d895000000b00b986352be20mr750560ybg.0.1682014173924; Thu, 20 Apr 2023 11:09:33 -0700 (PDT) MIME-Version: 1.0 References: <1681996394-13099-1-git-send-email-quic_vnivarth@quicinc.com> <1681996394-13099-6-git-send-email-quic_vnivarth@quicinc.com> In-Reply-To: <1681996394-13099-6-git-send-email-quic_vnivarth@quicinc.com> From: Doug Anderson Date: Thu, 20 Apr 2023 11:09:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 5/5] spi: spi-qcom-qspi: Add DMA mode support To: Vijaya Krishna Nivarthi Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_msavaliy@quicinc.com, mka@chromium.org, swboyd@chromium.org, quic_vtanuku@quicinc.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 Hi, On Thu, Apr 20, 2023 at 6:13=E2=80=AFAM Vijaya Krishna Nivarthi wrote: > > @@ -528,6 +760,7 @@ static int qcom_qspi_probe(struct platform_device *pd= ev) > master->prepare_message =3D qcom_qspi_prepare_message; > master->transfer_one =3D qcom_qspi_transfer_one; > master->handle_err =3D qcom_qspi_handle_err; > + master->can_dma =3D qcom_qspi_can_dma; One extra comment: it might be worth adding something like this (untested): if (of_property_read_bool(np, "iommus")) master->can_dma =3D qcom_qspi_can_dma; That will have the dual benefit of making old device trees work (which we're supposed to to if possible) and also making it easier to land these changes. Without something like that then I think transfers will fail for anyone who pulls in the SPI tree but not the Qualcomm DT tree.