Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp187349pxk; Wed, 16 Sep 2020 23:36:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsph3irQuaE+IRZpljOJHje3igsVkLtadPFQilOmnjVh5fK1WFCUUdXnD/o9a8n5H9uR6q X-Received: by 2002:a17:907:104c:: with SMTP id oy12mr29915949ejb.450.1600324596394; Wed, 16 Sep 2020 23:36:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600324596; cv=none; d=google.com; s=arc-20160816; b=hmQcovDYp9tM/HwPEvW4eAFjn/DHb+1/L4YqufYu6PzsOdTGtr85331kw0yuBC+ZNy jdNcuMyoqUqz9fUxX427VVdFhAOOcB5u1kys65cCbaXr+BRDlbSlOEaMCbktfWlCApMi H0gptPed5X4lTqD3rFngXRtOdUF6FDU6ap53SYkWE0g5nmsyDyW4YlpFDBH5KMSRy/43 8CREJ88zh60Knik/DWYB0JC7zM2bx34aQd1rEP8MkSMpOgEyEB0biI02/X5YqRWRnb0t RSkNLp3r/vk97XROHEosgp6JGT9QMOBzE8S0SWgPmExHVb6s54H2VNIfTqczGnMffQwl MR9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=6m8HICaavGeG/p9xwpFy6CJNyMvMSMd6gyo3XawgDOg=; b=CeU57tTxKXPGl7ZPlUVtdK+EyLyygnL0+2aigMs3OFnd8ITBH1iBrM4+rRqv84Gac7 Tx6lAEFB18fokvrHoiFbhVKvY2dxh+JvnIwEZgvDBoDmUkbYfvDPC9ra4g9JSb8kPLLc mbnFcljymGXwMG8qIZqxXV+M9VLr/gI9zAoG3wcwrXLatFJgTp5FJxbfDJab2e2t7AaN 6k0WIp4mJGjjI9cPrLUR6jhfdgqVQDxZRkjaLf2guWRh/tmWym8e9JEFqepRH66Z2hkE f6NNOAv4YU1PPQlXO0LU5eeBfvZbn6eKBqs7yQdgJpOF+vM6vylahSghkSwoOYbr+PYS A3qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Zd2pH3wr; 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 lt3si13041599ejb.687.2020.09.16.23.36.10; Wed, 16 Sep 2020 23:36: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=Zd2pH3wr; 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 S1726244AbgIQGcQ (ORCPT + 99 others); Thu, 17 Sep 2020 02:32:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:43986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbgIQGcN (ORCPT ); Thu, 17 Sep 2020 02:32:13 -0400 Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B2BD721973 for ; Thu, 17 Sep 2020 06:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600324333; bh=Sd11XAvUkABH+JeORY9JB4/9xsVSvX16hOT60suqWCM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Zd2pH3wryXPSI9bnQZ90pWR8YNhKF7vDJwU2AcUR93YPdmDDZRLSliUgtwzA3sWUG q2L14pe4y9L0UQ5ldX4gqjTcZoSSvI8PgMaaFp9Cw54e55biS9pPonwwcbc7b7OE6V ioJHsD94YdY01hcKjX1jDQc3PhND5E8brgZxkmiM= Received: by mail-lj1-f182.google.com with SMTP id a22so965846ljp.13 for ; Wed, 16 Sep 2020 23:32:12 -0700 (PDT) X-Gm-Message-State: AOAM532UiTE2WPy7phuuypVPvuPnanmIQNE2gbaqlFXtQsIaMR1gXNTD ISFbafupSWtK4SY+8ZHJGv0/Zr8MPTO2i+YZSJ4= X-Received: by 2002:a2e:7a09:: with SMTP id v9mr9486680ljc.82.1600324331009; Wed, 16 Sep 2020 23:32:11 -0700 (PDT) MIME-Version: 1.0 References: <20200916160552.1062243-1-ribalda@kernel.org> <20200916162824.GC6374@sirena.org.uk> In-Reply-To: <20200916162824.GC6374@sirena.org.uk> From: Ricardo Ribalda Delgado Date: Thu, 17 Sep 2020 08:31:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] regmap: Add support for 12/20 register formatting To: Mark Brown Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark On Wed, Sep 16, 2020 at 6:29 PM Mark Brown wrote: > > On Wed, Sep 16, 2020 at 06:05:52PM +0200, Ricardo Ribalda wrote: > > From: Ricardo Ribalda > > > > Devices such as the AD5628 require 32 bits of data divided in 12 bits > > for dummy, command and address, and 20 for data and dummy. > > 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 am using the following config successfully: static const struct regmap_config config_dac = { .reg_bits = 12, .val_bits = 20, .max_register = 0xff, }; 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) Thanks