From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932461AbdA0Nhm (ORCPT ); Fri, 27 Jan 2017 08:37:42 -0500 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:53936 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754900AbdA0Nh2 (ORCPT ); Fri, 27 Jan 2017 08:37:28 -0500 Date: Fri, 27 Jan 2017 13:36:21 +0000 From: Mark Brown To: Dmitry Torokhov Cc: Daniel Kurtz , Robin Murphy , Leilk Liu , open list , "open list:SPI SUBSYSTEM" , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , Guenter Roeck , "moderated list:ARM/Mediatek SoC support" Message-ID: <20170127133621.bifp64y2cdljld65@sirena.org.uk> References: <20170124132519.13271-1-djkurtz@chromium.org> <0548db75-042b-4bef-02db-767ea9ccd7e4@arm.com> <20170126170747.r6gegu3buqeedp54@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xpnaonzme5pcj7bd" Content-Disposition: inline In-Reply-To: X-Cookie: A man's best friend is his dogma. User-Agent: NeoMutt/20161126 (1.7.1) X-SA-Exim-Connect-IP: 2001:470:1f1d:6b5::3 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH] spi: mediatek: Manually set dma_ops for spi_master device X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: No (on mezzanine.sirena.org.uk); Unknown failure Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xpnaonzme5pcj7bd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 26, 2017 at 09:26:13AM -0800, Dmitry Torokhov wrote: > OTOH the full buffer used by cros ec *is* DMA-safe (allocated with > kmalloc), it is that cors ec uses it at offset while transferring data > piece by piece. Do we want to support this? I'm not sure the complexity is worth it as a general feature, I worry about the cost of worrying about cutting the transaction up to include a PIO portion. That said that's just a gut feeling, if there were a sufficiently simple/nice implementation it'd definitely avoid bugs. To me part of DMA safety is the alignment restrictions. --xpnaonzme5pcj7bd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAliLTNQACgkQJNaLcl1U h9Dr3Qf/VVrvMPsVYCD1XkQSruZBR0RrSl+0En4QGNHcUcx6wJB/z+5Gc6uui06k h9ByYlkXgkgECxT31BNphLJQ39ElrFgd5Cmxncx0uOIEZ+nwqmK3ai3xMde8sqwq fbb+bMyXWPQAlCKpnuB6B5cHHtcXcL1GJFDhxCDzhZMOrNpsO4irMrdb+bjEun1l Kzjmnmpe7zXpt7ZWdKLhLkAevrIjAkUZHQLwFY23VMEO6KANuzQilAHJmeGBF6mm 0oU3gaGCIIds26oCkO4IKxLurVTIZ1bu1E1DEXl0DoYZUx/1N4HkLWZ+vPCNtZ3D bQ6K/wZWe4U183GQByLlZF5tp2zNSA== =JNGo -----END PGP SIGNATURE----- --xpnaonzme5pcj7bd--