Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2194279rwl; Thu, 30 Mar 2023 07:15:06 -0700 (PDT) X-Google-Smtp-Source: AKy350anCmrUBpOMGqcHISuauw9MDRCKIbYKqZaKgv4lcflVt0/QqKxJAHWGT6fP9p6g7zHTryWq X-Received: by 2002:a17:906:1c4:b0:931:5145:c51f with SMTP id 4-20020a17090601c400b009315145c51fmr19709137ejj.4.1680185706269; Thu, 30 Mar 2023 07:15:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680185706; cv=none; d=google.com; s=arc-20160816; b=zSf8+f47LSeuV6eG+wSe/sn2h19Dv2sl01ozV+Fl6NzMCYEeVVH/SZBasa03z/zjEM PRU0RznMdeEYnvw1v3kVfybShjkqndxFCWYWAP1ACvuy9jeN95PuRxLrZkl3yHS8mOEf buS5qIAV4CJQh8+fhikURMFff/64vUsp8DXLg/v+FsXTFPLJXy6s4cjus/Nq3UKKOTqb VwwVopc2jlujGK1doVfE93IKzX6Ak40nK8soiciOJqesK7NID28dbePLQeYB0HoRKSs8 o5ZtSmBUCA99Rbj31IqaXPT9y2lANh2tQpsyCkgfyz3Fnlj6xEpG/W8uHMzawiIadsdx XZAQ== 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=QE2DBtG0jigt00RTd0VKYDfQppyxbfuQJfHhk/0HLHc=; b=fgbmeiEkXJeJ4Ew13r0lTrMHip/mWPDPBUqQulCmpl+5+HoqU7o6jR+jIjkMfWMAnq TK7Pn78E2GhrM/hZucepgGi0ticd0/UYiviaFbQLUIxquuFRQk1v6lpeDhRp1VRzmpmx ap2FIIa+4xHYV5k4BxZJDVoDzumIJwF2EF+4rtLc1Bt6uSi546dOwfmYNYJsLYJqws9b SLcyOydVuVJCIlwoJRl1q8Q/vneN6C1qSqRxaU5fbzTVsNPzwg6lM+KjB4fH3eUwdsrM WiOGYYN0r5N8TUpNSZJmuinpa/ffj8jql1344kNm+bTPiSb4+/qSRH4chYCTr1gVYdEo 1FUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vAS3CYM5; 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 d7-20020a1709064c4700b009332cc3b334si29539875ejw.59.2023.03.30.07.14.40; Thu, 30 Mar 2023 07:15:06 -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=@kernel.org header.s=k20201202 header.b=vAS3CYM5; 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 S232286AbjC3OGl (ORCPT + 99 others); Thu, 30 Mar 2023 10:06:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232270AbjC3OGe (ORCPT ); Thu, 30 Mar 2023 10:06:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43D547A9B; Thu, 30 Mar 2023 07:06:32 -0700 (PDT) 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 C694E6208B; Thu, 30 Mar 2023 14:06:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C19B0C433A0; Thu, 30 Mar 2023 14:06:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680185191; bh=80GjQ59JxizPxSXKnhbttrwyIA4E7zwhk6Hw/hf5EF8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vAS3CYM5vRnVEKqq76XIfuRNLm7XBBBivkXUYw5F/+5OT97549Zh3IheJOI+rdvDx vn6soL/OuiuDcyPQE2Qkye0siP7ojkspE6xcPGTa1P0OgreGZYDJbmZU15Qn3An/z0 W8M6pbBkXeWi7kOsc2Cjisq4Eh/fiDR29wkQgAh0VoFw2Bp1Rjz0kLWmCQIbtg//Gj wVoawMtLrjZS0u1QRGvSSJ+v1CqrhZLRwfzSbhW/tc0V1uo9IV/gHG2B4NLbWf2O5/ 8Kg/YT7U4wN0Pq4VWmYxXRgXY/nN4Zqh8nSExVjgzMAPneMaQF++L3feSkqrk+4W9h vDe6nzw3p5gZQ== Date: Thu, 30 Mar 2023 15:06:28 +0100 From: Mark Brown To: Maxime Chevallier Cc: Greg Kroah-Hartman , rafael@kernel.org, Colin Foster , Vladimir Oltean , Lee Jones , davem@davemloft.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Heiner Kallweit , Russell King , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, thomas.petazzoni@bootlin.com Subject: Re: [RFC 2/7] regmap: check for alignment on translated register addresses Message-ID: References: <20230324093644.464704-1-maxime.chevallier@bootlin.com> <20230324093644.464704-3-maxime.chevallier@bootlin.com> <20230330114546.13472135@pc-7.home> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="RrmrRms1shZeGUqK" Content-Disposition: inline In-Reply-To: <20230330114546.13472135@pc-7.home> X-Cookie: Single tasking: Just Say No. X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,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 --RrmrRms1shZeGUqK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Mar 30, 2023 at 11:45:46AM +0200, Maxime Chevallier wrote: > Mark Brown wrote: > > It is not at all clear to me that the combination of stride and > > downshift particularly makes sense, and especially not that the > > stride should be applied after downshifting rather than to what > > the user is passing in. > I agree on the part where the ordering of "adding and offset, then > down/upshifting" isn't natural. This is the order in which operations > are done today, and from what I could gather, only the ocelot-spi MFD > driver uses both of these operations. Right. I don't think the ordering is particularly intentional, like I say it's not clear that combinding the two makes sense so I think it just wasn't considered at all. --RrmrRms1shZeGUqK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmQll2MACgkQJNaLcl1U h9BpMQf/WhPnIKZo18DLfF0CsOhxPsBoDZOKPIGOi4LPOsxO5AUzT5/NbJsE16F7 JNclev+MkS5gIU1TdqfxOKjMEHT5ObqROfalEhpQ9wGTW5QO7Uczya0ZeBEHHEqN Zd/E6pnmodtVU+wpG9a5onaSHif4E2PWL6ZaYT199hjLX5alGOicmnO9CcIQFgZo i3IT+SFMKtUxyMCnSDryJyHM8YlctXSMs9bZ0xBVK9tQE8qqIHl7FclV/sPh7DV2 /eL1bcoSs0xOu/VgJHUJwEFog3ocjhIei3P6HfNcBbv0oRhBi2XgybeDqYxuDXm0 NUgyywuwcoZfWXhA7FMjpaMg+GoYEQ== =JvNb -----END PGP SIGNATURE----- --RrmrRms1shZeGUqK--