Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp331517pxk; Thu, 17 Sep 2020 04:26:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFm4uTcXenKkaapZqJn0I+GKPOLGDLUxqSEGX49fEdhCStYXMVVUevpI6whruyCasBHv+J X-Received: by 2002:aa7:d697:: with SMTP id d23mr33589805edr.13.1600341996146; Thu, 17 Sep 2020 04:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600341996; cv=none; d=google.com; s=arc-20160816; b=Ea5XKe6jfla1HvcfzyFaGZL4f9WhWao5zoXIvW2V5TKV7QpkBK+bpTbhzBwtJaO471 n9weJFYHF9g5JqHCjbCXHhqwsALTDUvcEXAZzstLACA1/S8x7LzxMK2CjLUKMisL3OvG wbVaIx855HRmLNkK8+slzYyIzzeDI6bJKoI07iN0fmU14LTL6h40SPZbexmq6PWrLgTG efbKoHlh/9Mm9lLf9TkEmQGVoIH7Mko3Rx06lOwqYtPW8L8JGGKAN23JlZCokMlfuSIG 6OEFwFtMUyZR+dFzeQmADirxid7/xH6T0hp5WW7bgvb32JXA6LHEpsaAXKQjC8Zufxtj zS0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gKQCiO7XirYoqJsh/6ti6zIHwEQlErYyFXRXNcMx/Hk=; b=YIn98NecTWzYZhO6vytsyl4U7Wkstsoy3mOj5rjnzwAhgZnuo62W/HAa2qboa37/iV 8QRnOgZXEAuVp7BK9lYr5Gr9Dmmhbo7CDY5DnjYZi6wOKQAEegEZB9k2p9fidMXFyVtI IgY1i3PsbVl+GQ3c7qt4q/K1SxaVZYRSbql3Sss+MHsqmOjurdt4Zc596WzdQHvjmcIt SvlQFPeLTkYv7lOerZqMBnO/NHdgFuoNI8EqLFR9BZfE1aolet31oEOqk2G/YnEL1ahi ZxuznoRZFL1nz+Vcn7EpudHENxHkhyERW7tGA24ceaSx7HDNV6sNKbdM/V5dgDH7H/du I/+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FoYIs0OA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yd11si13220381ejb.184.2020.09.17.04.26.12; Thu, 17 Sep 2020 04:26:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FoYIs0OA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726778AbgIQLXm (ORCPT + 99 others); Thu, 17 Sep 2020 07:23:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:46206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726552AbgIQLWx (ORCPT ); Thu, 17 Sep 2020 07:22:53 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6FD5A208DB; Thu, 17 Sep 2020 11:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600341772; bh=rRYqKFg3eq+KIiDzrp/w0D7DA9qE/P3g9mLUTK1A5PE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FoYIs0OAEO3i97Tf50r0rApNFo4sg6yjnRVmA8XqMZtUSaD0hD79RmqmbEa52pp3y HVnYruRA9kaX8+KYlk2gle9cfa78yo434MUn8ai44F3APgVMBDOvCfsc/xVrN+AbZ6 2K7oLPAICVxPOd5EHZt8j8nuUpE95eHS0ZVNG/CI= Date: Thu, 17 Sep 2020 12:22:03 +0100 From: Mark Brown To: Ricardo Ribalda Delgado Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , LKML Subject: Re: [PATCH] regmap: Add support for 12/20 register formatting Message-ID: <20200917112203.GB4755@sirena.org.uk> References: <20200916160552.1062243-1-ribalda@kernel.org> <20200916162824.GC6374@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0eh6TmSyL6TZE2Uz" Content-Disposition: inline In-Reply-To: X-Cookie: If you fail to plan, plan to fail. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0eh6TmSyL6TZE2Uz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 17, 2020 at 08:31:54AM +0200, Ricardo Ribalda Delgado wrote: > On Wed, Sep 16, 2020 at 6:29 PM Mark Brown wrote: > > What exactly is the format you're trying to describe here? It sounds > > like there's two blocks of padding in here (I'm assuing that's what > > dummy means) but what's the exact arrangement here and what are the > > commands? It sounds like this might not work ideally with things like > > the cache code (if it makes things seems sparser than they are) and > > might not be obvious to someone looking at the datsheet. > The format is > XXXXCCCCAAAADDDDDDDDDDDDDDDDXXXX > Where X is dont care, C is command, A is address and D is data bits. I > Shall I add this to the commit message? I want to send a V2 anyway, > because I screwed up the identity (ribalda.com instead of kernel.org) Yes, please. I was fairly sure it worked, it was just a question of if it was ideal for the format described. The only issue I can see with the above is that the users will need to left shift their data - on the face of it it would seem better to add a facility for padding the LSBs of the data field to the core so that users can just use the data field as documented. --0eh6TmSyL6TZE2Uz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl9jRtoACgkQJNaLcl1U h9DgFAf6AkNxuuI8Zoyx+GO304rvAN+N5MpZtKzDRjgd/DwBvU2adlMGVEtuo+dt lCyR1lTifzXAhtAjutlNXUqGQ+Ya+s9sZfKfpVmjDO0dIAoZGFMUB5I4DnKIUdO8 P+NSAcsqOUvq1SFvMP/gXmzyoRJWR6m4QCbljqXsBEH6NLFFnGhvzmiJ67tJSJcn OhsFTNK9sYKiCyAWsi50xf7TdlfZ2NH2xUiJf9s9fV5FwhLu8i8wG7fkeeYMBXIc 3Y8I1lYRVtyTSpodKk3v7h9eOixXUzFF8Bg90NBEoTeXHyo9h1jrbNjWosEwi8Fa 90+wycHhIrm9PcO4V8K1hoCcJxBtGw== =FTWa -----END PGP SIGNATURE----- --0eh6TmSyL6TZE2Uz--