Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1284446rwb; Thu, 1 Dec 2022 15:14:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7aduCeWaSV4btbpEAlzqAfZKNQtNZA0lt43v0Wn4F9Yy1b7yMZ8+W+Hz42JJVgL0fdl5dg X-Received: by 2002:a05:6a00:1696:b0:573:52e5:3c8a with SMTP id k22-20020a056a00169600b0057352e53c8amr58237680pfc.31.1669936479731; Thu, 01 Dec 2022 15:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669936479; cv=none; d=google.com; s=arc-20160816; b=0j+lgWF943IQ+jSfR2UmAa1grGK+eQI+fBu8NH4JVrT06zeenoYZk5L+47e4gXblg/ xtRfSfKQoaXK+OKiD+D5Z3d5t7dipTDExF4GsYOTI+Gb2mzUUyJz69S9s+cnO1nOUGKs riULAOr3wjORF+bH/yVQw4lvAiNxSTZlHDuECpkU+Jf1B7FuoDUdz4QhA9WyLC8Xwdep WCg/xAXkpoZMEsoc/143CNh2NYFnep+yW3nAZ0EO3JRnl7PRkvbfhspFjfVrL2bpJOtw Nr21rttgeoZfQxIictvdZrT1jQuS3uN+9p96Wgm7DzJuHkoN32Pkh++6d5W/eg0Vj/1H 4iTQ== 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=t79xlzZu7sNZn8ji2Q8z7sCJyA6okSZw3JdqwQTNtRQ=; b=u40mtFsEjUfYYnGgnS1l+aKOCu4NLZiWRLpuPTzREGiaI56ToPAheMQhcAJBY9fdiw gX5UmIr2Y2SW13K/wpD5zLRQR7yLUac/a5w4Q89cwyam9SwF0kSDgNjlYAYkdfYg64kT v5n2W6BvsOpsImVy8RvgvbETw5rBsuSP24hENrUlXJq0+aEMxvECkxJLSmtSXGy9bORi enGuQ9GDZy+sgEdsfI20HVPtegSO9JxM/QEd9gNdqq/9hdeMZpyxNm1x67b+Qy+BUxJB AKb+WaVay+r7r1w1QEbZ85Hrqw8I6vu9PlA8tM479R30Zdb62rASA7O7JYusLXsffp3Q YTcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qTxVOKu1; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d9-20020a631d09000000b0046eca85c48dsi5623280pgd.110.2022.12.01.15.14.28; Thu, 01 Dec 2022 15:14:39 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=qTxVOKu1; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231667AbiLAW5k (ORCPT + 82 others); Thu, 1 Dec 2022 17:57:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231636AbiLAW5h (ORCPT ); Thu, 1 Dec 2022 17:57:37 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42ACFC7240; Thu, 1 Dec 2022 14:57:30 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8719262169; Thu, 1 Dec 2022 22:57:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E94AC433C1; Thu, 1 Dec 2022 22:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669935450; bh=TBfuELpSzb+mNB+KGhsJR1KS+PLQ2psvSjnArr0l67U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qTxVOKu12kBYKDZa/QZJxEWsTveLDaAK2keHquTWLXJyk+85s9/sm/SSbYFjDDWpi xUxavKGimMWhzyRtUxJlv3GMRrcRUVFpEoO7uVMqhneExCCGM9e5kM9WsMT891ryjN MMpD2Be8s3pqjQPUX0vq40pbDrTBfSt/Z9/x8OFkr7Yz+2B+DfJli4T1PPRaMnAt3d Dfs2jAswQabKi3v3bRgqB5/aj0Br1Dm+Yb6iWNpr2JEwJtgbZCl4VcFlozz8tSRXov I3uiQP1MHBPlSHJ3tTxuq0IwAckjcbj/dIBLu3Ewzr/fwN1crH6wlSb5HT41/KRbOK nKxtIEx1yqpYg== Date: Thu, 1 Dec 2022 22:57:24 +0000 From: Mark Brown To: Doug Anderson Cc: Vijaya Krishna Nivarthi , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, quic_msavaliy@quicinc.com, mka@chromium.org, swboyd@chromium.org, quic_vtanuku@quicinc.com, vkoul@kernel.org Subject: Re: [V3] spi: spi-geni-qcom: Add support for SE DMA mode Message-ID: References: <1669713814-28876-1-git-send-email-quic_vnivarth@quicinc.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MCfNU2/ldKjB0tuT" Content-Disposition: inline In-Reply-To: X-Cookie: Leveraging always beats prototyping. X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 --MCfNU2/ldKjB0tuT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 01, 2022 at 02:40:32PM -0800, Doug Anderson wrote: > On Tue, Nov 29, 2022 at 1:23 AM Vijaya Krishna Nivarthi > > > > + if (mas->cur_xfer_mode == GENI_SE_DMA) { > > + if (m_cmd & SPI_RX_ONLY) { > > + ret = geni_se_rx_dma_prep(se, xfer->rx_buf, > > + xfer->len, &xfer->rx_dma); > In response to v1 I asked if it's really OK to use "xfer->rx_dma" for > your purposes since it's supposed to be managed by the SPI framework. > It still makes me nervous to use it, even though it seems to work. > Since we're using it in an undocumented way, I'd be nervous that the > SPI framework might change what it's doing and break us in the future. I'm a bit nervous too - why exactly are we doing the open coding here? --MCfNU2/ldKjB0tuT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmOJMVMACgkQJNaLcl1U h9Dtkwf/dQzK7cnApqI9SmkAIOQ5X0plaNHltBhmjGmnnGvfP9HGSZ7IJ8JfPn+/ KNsxtOLIdjGqCwYdxT9bt5E+UbJ2yjdiObxXRyTHbAWm0K80x3J1FmizLtUUjkpV 7pHystlQj4LEOdAcLGygnHPYGLsyipEvsLnykheTgAm048f5aDneB4DDF14jlYPA 3Y1RXKpDJwCZUpOBHHj0oex4PBl1h1z9iqGQA/e9YRStRJWCNWgZHMdvRZ+bAORA /vuYYUM4BGpJJQc0nnl5zRHTXGnTo8hxM1tytIMWE2Iu5WtjV9rze3AknVFOiudS 3O5lWJN1Rv8dLrqlpXuWwl7dEGQyJw== =XeYp -----END PGP SIGNATURE----- --MCfNU2/ldKjB0tuT--