Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1081554rwl; Fri, 7 Apr 2023 09:36:47 -0700 (PDT) X-Google-Smtp-Source: AKy350Z0RwkvbvnT9w09TWt/l6wgJuImPRlqAyP4Ru56JLjWIcF76WDlAms6ImhnTzuKJ01lbF/8 X-Received: by 2002:a17:903:42cc:b0:1a4:f03d:6a7a with SMTP id jy12-20020a17090342cc00b001a4f03d6a7amr2839193plb.51.1680885406934; Fri, 07 Apr 2023 09:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680885406; cv=none; d=google.com; s=arc-20160816; b=aLy0rgnml3+Lm3S5ma4+xFAKxqc+4dcQXwT9encZ8m3FJmZTZzFsztioL7Rxeft+dR lxfrVmWE4fY5ISw8MrD/AtoMIVYv41gq5S/Iz6xPleQfeftSR1iKULoCt63eqJnaduzZ qasAuSKLxrYkmyC6eKqdwzIl/X8q8wSr70QcA2StvFhQGu9BGY6yNstFg76VZwb8iqSU 7WO5W2Ml9xX2bulSwztzoSstWIar7epYPIR7/p4EGVmQ/DF7cFnANZaPQjLScdnAQvfn iybcw8oUQF+X1tLDmURTJt4wX1gNxK5AcVhrraEqxq8iItngl4es2OtOXPR2/Mzf2qHq FuOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=xvwaAPHXiDeJ3ZcYVryA8H7RfG5ZYkgToOwvmIB9VWU=; b=mMDQvh+QifgpY/ZpwAyUQtEkUMnZM6RKTnVfc/CaK5OKZvgNusAUEZseSxs0pS919t ZUu89gAdoAMxVyYVbS9LoYa+U4MPsHlt+sdIExGXyOeyN05nM3YeRB//A7CcWAUZrNKj HsLAXUxLUDvf/A7Zc43YNLPekxdMaj/2D4pIEDhKaFSo1St0NgPhrSIhzhHAAOjT4+WH xlS+kkJCchkmROlfPMsJkIIWguXLoa5ccGyWziyMiVUKaUGOHt13vSIlVi+wJiZKbGpD 3GUz5iOugsQdKalaNWB3+4Yvop1rkR1mD3tI5+ouxSc1IdJqvAJM/+ZkgdaaLMQelQbq Tpag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=DsNm9IXZ; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u19-20020a170902a61300b0019c93e0dce0si4091723plq.254.2023.04.07.09.36.36; Fri, 07 Apr 2023 09:36:46 -0700 (PDT) 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=@bootlin.com header.s=gm1 header.b=DsNm9IXZ; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229767AbjDGQgZ (ORCPT + 99 others); Fri, 7 Apr 2023 12:36:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229737AbjDGQgX (ORCPT ); Fri, 7 Apr 2023 12:36:23 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18CED35A6; Fri, 7 Apr 2023 09:36:21 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id E925C10000F; Fri, 7 Apr 2023 16:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680885380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xvwaAPHXiDeJ3ZcYVryA8H7RfG5ZYkgToOwvmIB9VWU=; b=DsNm9IXZdBoluvPoBb3tVh06QBUWbQ/650eLuEwQ+kI2+u862keOApnH0M5FevOhvOVuFI gYkAkD4M0AlgXNan1FiDyBo/xXzP5s6GncHXZjXXqGe1B3to1LYI9YCz1BwcirskJ/I9u/ rIAoGNnMGPwStScaO7EcqTsM/bBRnByViUyvMCSEFjEHaOnaSE5yJfUMO5D2nR38yD87J9 MbEHQ4Vm4SLl0AYcp66plRwe8KavXo8d7OoJ5zpBoBxp0OpvtM5qcYj3r1oA0ag+CMkzLb BymD2G1zJtoz9F68BSRjnUE41vlKjWvgdo4+y3AdChLMfRPRNYJU7YDG2/wG3Q== Date: Fri, 7 Apr 2023 18:36:03 +0200 From: Maxime Chevallier To: Colin Foster Cc: Mark Brown , Greg Kroah-Hartman , "Rafael J . Wysocki" , Lee Jones , Andrew Lunn , Vladimir Oltean , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com Subject: Re: [PATCH] regmap: allow upshifting register addresses before performing operations Message-ID: <20230407183603.1243bceb@pc-7.home> In-Reply-To: References: <20230407152604.105467-1-maxime.chevallier@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.37; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Hi Colin, On Fri, 7 Apr 2023 08:58:53 -0700 Colin Foster wrote: > Hi Maxime, > > On Fri, Apr 07, 2023 at 05:26:04PM +0200, Maxime Chevallier wrote: > > .reg_stride = 4, > > - .reg_downshift = 2, > > + .reg_shift = REGMAP_DOWNSHIFT(2), > > .val_bits = 32, > > Looks great! Thanks. I tested this with a merge of net-next and > regmap-next + this patch. > > Tested-by: Colin Foster Thanks for the test ! Maxime