Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD3B3C34022 for ; Mon, 17 Feb 2020 21:39:15 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7C289207FD for ; Mon, 17 Feb 2020 21:39:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7C289207FD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E3F5D6E0FD; Mon, 17 Feb 2020 21:39:14 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 965976E0FD for ; Mon, 17 Feb 2020 21:39:14 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 02E721FB; Mon, 17 Feb 2020 13:39:14 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 73E253F703; Mon, 17 Feb 2020 13:39:13 -0800 (PST) Date: Mon, 17 Feb 2020 21:39:11 +0000 From: Mark Brown To: Noralf =?iso-8859-1?Q?Tr=F8nnes?= Subject: Re: [RFC 1/9] regmap: Add USB support Message-ID: <20200217213911.GV9304@sirena.org.uk> References: <20200216172117.49832-1-noralf@tronnes.org> <20200216172117.49832-2-noralf@tronnes.org> <20200217121149.GB9304@sirena.org.uk> MIME-Version: 1.0 In-Reply-To: X-Cookie: There was a phone call for you. User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: balbi@kernel.org, linux-usb@vger.kernel.org, lee.jones@linaro.org, dri-devel@lists.freedesktop.org Content-Type: multipart/mixed; boundary="===============0271651967==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============0271651967== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4QzzFpAwbwI4hdN6" Content-Disposition: inline --4QzzFpAwbwI4hdN6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Feb 17, 2020 at 10:33:58PM +0100, Noralf Tr=F8nnes wrote: > Den 17.02.2020 13.11, skrev Mark Brown: > > This looks like you just don't support a straight write operation, if > > you need to do this emulation push it up the stack. > After going through the stack I realise that I have a problem. > What I have failed to fully comprehend is this regmap requirement: > if (val_len % map->format.val_bytes) > return -EINVAL; > There will be a spi and i2c driver down the line which will transfer > buffers of any size, and having to use 8-bit register values will not be > great. Out of interest why are 8 bit registers going to be a problem? --4QzzFpAwbwI4hdN6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl5LB/8ACgkQJNaLcl1U h9CjnQf/WqXHZ+HYhaq9rua4mPrl31R3MHfe58SVBofCsrAp1awFn/nzYpOgGTj3 GYD5KH9FgSG9icZTx7RP8+0k00O8yEsuLLy+1lf72mbid6iE9VxwdhYWfAKHHeV+ mTXQcSoCJmXzOrfLN1cZvTihVjAqfJTZieaywu/BJhqOOGOPmECyhAMhIXHok8Q/ XvP/pRS5RiXWD/RtEfM2rEP6e2c1X7bNjyiRrSJ75AnnhKq4yYdWR7AoUaSckn6x W+djRroZ+Rgel+Mv8Ts+WFDQNRWViXSwd58LUK/qAvItiTjz3aA997sx9LDxdzJ8 hjS3crc2kuvqYYvTn0r3FFi/6zQldg== =+16T -----END PGP SIGNATURE----- --4QzzFpAwbwI4hdN6-- --===============0271651967== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0271651967==--