Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp870985rwb; Thu, 12 Jan 2023 13:31:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXs3+PbET8bOc2/I8osPxAlsNfjUZJor+5JQ3VDo/pdZ/Nv8xX2xKf4STdZoTkiFuRBW7hem X-Received: by 2002:a17:907:8d17:b0:7c1:1ada:5e1e with SMTP id tc23-20020a1709078d1700b007c11ada5e1emr66069854ejc.26.1673559115286; Thu, 12 Jan 2023 13:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673559115; cv=none; d=google.com; s=arc-20160816; b=e2RdhAsrPFGlfst2y6SlT6U8YYfGGYVj+6Weeky7tpnwWrmm8x3gp19Ih5USaIlXAM JIiMzL71U7BtuCqSw7f5j8szE97WXMQpDdrK8/NudiArRdJObGZWj1oKO5pz4U/2pvo1 O2SWAZKcjrOw74jaIMYnaZ5yoB5+ui1FCdhpLueyF26cnzgxAg2C48VA+h/UuPiUmrh9 Qp+zVKDQ9v4hDmWaHhf+o0UaEIHTPMLLMn3uNDOWH/9QNlT55IIDgWwbsaZwEJi/yHaG TPUKm/frUOUqX8EtGpjlE7v3Y1UnahjTvRC0VzNBE8X4Ry/KTNuEYl88AWFqsX6KZ3h5 N5Pw== 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=TIE1VGJM4IgEMYACvuqcvkOkh9BYH/wrAliEogtbEEE=; b=T25v2wQdJA9OSlB5OHtRB119kNbQUkBII9GxOqPfcXyZPhJWaBvT1Wzq62uerbBmup +BObza9x4s7kV90IB37aRD8c6tcXafYnxW3t5gIB+8VbvQ3TRdplsnEipqn0oVz3HZMX HEWYXMx4eXYcHfYc1izePW4/Ft5xw5UZI4CB9y1d4ScCPWU16jxxG7D7VCij5tGLmGgO G+BQldQFODQlvZvw/aWydD4y0LZk0B6B44pAsLLHo8NERve3EhXADRGMf51m0HVI3vDW OkLMrMZ81E8eYozxAEGyk3wDxqHO07Jq38PFUzXS6V/a6/l5kqh0w15ef8M7+QWbLmBG AX2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M0zUA64d; 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 nb37-20020a1709071ca500b007c0e155ead2si20846423ejc.369.2023.01.12.13.31.40; Thu, 12 Jan 2023 13:31:55 -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=M0zUA64d; 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 S231540AbjALTyM (ORCPT + 50 others); Thu, 12 Jan 2023 14:54:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239902AbjALTxh (ORCPT ); Thu, 12 Jan 2023 14:53: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 F19846254 for ; Thu, 12 Jan 2023 11:50:37 -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 8DC1462169 for ; Thu, 12 Jan 2023 19:50:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DA37C433F0; Thu, 12 Jan 2023 19:50:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673553036; bh=zda6P5kzwDBNzHpULjSdKEirPfffPTlEHkVxGhfGnvY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M0zUA64d4a7lfX2UERUJnv30wFRLkjkh2KQ/laS2nV8lKpB6e/Azsxvmpg6gJoVyB MISkqwY9CweefuTLOdWRT7WPddStRV5qo9Rj2J+AnzBSbN7hZyu1PPcDqwfOYaTJvC /5gsxyzZC4Yki0Qk0gz/DtkACuxGXStMb6JpgrEijtM//VQM7qnDooj3ss2YwjYKTn n+OQ+tjkk1amKbWpsn3WTVjv2AUBqfOusaolJbYutcmt8wZsHTnY6C1sEWKQuGKV8f MI8sT7e7P5Xe2OfdE0yiIXZwAxe4rIBuesOPZcP2EJ+jTApG7VDB/483JmTCfJ6VYX Pfya8PLZopCLg== Date: Thu, 12 Jan 2023 19:50:32 +0000 From: Mark Brown To: Pierre-Louis Bossart Cc: Charles Keepax , vkoul@kernel.org, yung-chuan.liao@linux.intel.com, sanyog.r.kale@intel.com, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH 2/2] regmap: sdw: Remove 8-bit value size restriction Message-ID: References: <20230112171840.2098463-1-ckeepax@opensource.cirrus.com> <20230112171840.2098463-3-ckeepax@opensource.cirrus.com> <756fcb2d-d571-18cb-985e-d907ab682275@linux.intel.com> <3320e6b8-28c7-d028-3c4c-2b4b25a963fb@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kdxHzIo+lmpm7kNT" Content-Disposition: inline In-Reply-To: <3320e6b8-28c7-d028-3c4c-2b4b25a963fb@linux.intel.com> X-Cookie: A watched clock never boils. 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 --kdxHzIo+lmpm7kNT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 12, 2023 at 12:43:46PM -0600, Pierre-Louis Bossart wrote: > On 1/12/23 12:14, Mark Brown wrote: > > The regmap gather_write() operation allows the bus to take two buffers, > > one for the register and one for the value, rather than requiring the > > core combine everything into a single buffer (mainly useful for large > > transfers like firmware downloads). > Right, but that's not supported in SoundWire. sdw_nwrite() will only > work with consecutive addresses - and the auto-increment is handled in > software, not hardware. No, that's exactly what this is for. It's for the *register address* being in a separate buffer, the data is then a sequence of consecutive register values. > What's suggested here is to use the first element of reg_buf, which begs > the question how different this is from a regular write. If there was a > discontinuity in reg_buf then this wouldn't work at all. reg_buf contains the address of exactly one register. --kdxHzIo+lmpm7kNT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmPAZIcACgkQJNaLcl1U h9A1Ngf+KIeT4cHA1t0heeIsCmRspEmUq1LpG69jvzpevaJxWp+UwyYexAhb6Ny5 W9E0VwV/kxd+cRCvATjFbJstHICBBYZ91FHf5Vm02aO0howOio6qdunk1lYPz9X/ IT4T80yD+QF7bZD+lr7znfbStVp1ORQtJJl7BtjtFKZobLWz9KWVCLSDLd6acMRF MZ+uKsKleQG4R9hWRRzfS7KvZ2epfgjV0GPMHm5/OM2iXLMZdsapHehN2AyfLJVm bQSAw5Zq3Otqg6WjpaZewK/t1qJYEihF7eHghETSiNPez7+qUxRPdFjNkLRy9uPP I5c0ZW80V6UYUcMKcrXdeCUzpZU6lQ== =TNuV -----END PGP SIGNATURE----- --kdxHzIo+lmpm7kNT--