Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1094655rwl; Fri, 7 Apr 2023 09:49:47 -0700 (PDT) X-Google-Smtp-Source: AKy350YiUK7ks/uYIqPp9B9ID1J2gkJgGfjz5kVD06W7erWyBeYN5uDGm4UAkfMr8ML7LrP5c9R9 X-Received: by 2002:a17:90b:4b4e:b0:23f:abfd:1241 with SMTP id mi14-20020a17090b4b4e00b0023fabfd1241mr3152679pjb.1.1680886187292; Fri, 07 Apr 2023 09:49:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680886187; cv=none; d=google.com; s=arc-20160816; b=uKl/H3rlLEplA4OtbWyNEHp6QYzMvM8NOv2c6BeTbOqAt0OsFEOegWcSsPiYLa01Ic Vgf+9N2A2qM9VrNXs2kIjEMC6g9hAzAx40RpLOpY7bnj7xktB/8jgOWNkkE6X6WecDoC smXTUKQiJdAi24L52qKrvqFQ/g66XnFKuZvB2cOgg8vEG5PPZOjOP5XQS9pjMNTivQNl 9JTVgmRCdAs2klApJjNk302nkFFhcsmKno+rri9J/eEBsTVgAUGxLz+/6hF6g2GnwTRe CJ1GMPukZDgjISNRPBlx9eTVXIt26/AJd5pcOvGnxcqcC1toGc69AeYOaEHALZkv6tw1 JP2A== 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=Cs38AWZaXvov2hg66QXSDXAK60hBBJ7tzduNIYCbxXk=; b=mPsRSCfPYZjwR5Zn//nyuRjhVuCmwl7VLk1Ww850zWmWlYqiXNChhc8DbW1yJlOCeU hVuJMCu2T1nl4SmnEJHfWq+/Svq0BfgOJ08Q+AsSG2HgoEu6gZ5nbilCNyzKjRonjwYS PRRp7XIdWS2r2l1mxQD8Dz0mY/RrC979ei2cTjwpJoew59k0QKhr/4w9ZcBFoDu2MJkY Sk+ACgAWpF8ISFdvde8UVBk+ZROYS/g0+aLXPAdsb8/v0CM5f4UH81hek8eU9rq0LICu Sya90WkLnuiCMFqmgFY+2w96MT0F+byRDmbv0X0FMfycivKFvc6M7TJXuwYhIw/xQ4UH xjbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=PloRps2a; 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 f22-20020a631016000000b0050fac33eb8bsi3889349pgl.144.2023.04.07.09.49.35; Fri, 07 Apr 2023 09:49:47 -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=PloRps2a; 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 S229710AbjDGQhk (ORCPT + 99 others); Fri, 7 Apr 2023 12:37:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjDGQhj (ORCPT ); Fri, 7 Apr 2023 12:37:39 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 762B3E6B; Fri, 7 Apr 2023 09:37:38 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 5AE5B20005; Fri, 7 Apr 2023 16:37:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680885457; 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=Cs38AWZaXvov2hg66QXSDXAK60hBBJ7tzduNIYCbxXk=; b=PloRps2aBCFffUPMPIHCgUyLu3UeaXja2P4Wl3TvZSFvEGjJ3U/KqqK0kcLVlas3fKU18O 7uV1js3n7PIfZVNkhojAp6B9CXr7WhbXGsobqEE1eTZ9lRhxbJxbvses0/Fw7WosWHTGCN q+iOAO3FBCKBbiJIE6u/Br5i/FkbTODyLqmGIxOYwIgpImiF3ZffUk/5NNfYIgJu4nGa0t QOoFuaNCn2/hDkzyYYmbnzMORyHJGlNXtY1cnxXLOwbFX6rM9qdHo5IQjECpxzq4AIxObS +6h5NwPhU/gAO+Rh2iWWZ4BjktmyoYqoUs+r9IkFZXwJaZO2YAcPGMl0BiwoYw== Date: Fri, 7 Apr 2023 18:37:31 +0200 From: Maxime Chevallier To: Mark Brown Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , Colin Foster , 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: <20230407183731.7c59a518@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 Hello Mark, On Fri, 7 Apr 2023 17:25:58 +0100 Mark Brown wrote: > On Fri, Apr 07, 2023 at 05:26:04PM +0200, Maxime Chevallier wrote: > > Similar to the existing reg_downshift mechanism, that is used to > > translate register addresses on busses that have a smaller address > > stride, it's also possible to want to upshift register addresses. > > There were some KUnit tests added for regmap, could you add > coverage for this there please? Sure, I will take a look and update the test. Thanks, Maxime