Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2163671rwl; Sun, 26 Mar 2023 17:23:13 -0700 (PDT) X-Google-Smtp-Source: AKy350Yb8kqkrMjPEEG9aGJqGTIGDVxjbWgamNiF/B8YNqTdTciF6CzwvpDSvt6FpGOhJNv9aFLC X-Received: by 2002:aa7:cd8b:0:b0:501:d3a1:9a52 with SMTP id x11-20020aa7cd8b000000b00501d3a19a52mr10471398edv.33.1679876592809; Sun, 26 Mar 2023 17:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679876592; cv=none; d=google.com; s=arc-20160816; b=ycFFp7CLVhJUHWlcTscqBzZkiG/3ozKHdq9yKSLCnQ63wQs5ep/X334qo00CHqIi4K UQTCi9DSe0BLrHYnWeyITmVJzNVNNlZMgANctk5JDjz8ejYfvHesclzGpUtlB/IOkqa6 EiZnQ85xxn+A2iaNvr2f/YdF/dZHQIAHtxQHTmA4a9F3Zh4Ijxis1RCcydUtsGUoKwlk 5fN4vWiUmDbyuqBTaQFWss+RIwwCTWa8xmxpGjRHP+xsra+VGSa1nCZRcE2uGIkWVMON 6ezZeP/oOuNAc8emrEFa62/MsR/1M6l/izMU0JSBDYnuvfP1WdLQtr0SruDsA62JKZ8r zFsg== 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=obMd8KxYaBJXLS2xOEVfqjlspcNMPlMz2DU/vmZvzIM=; b=ojf6zqiDkbfhvd0KDwMlZ+jNyYmJeOt+HZCk0dF4kZCGirfWSMUrjHpFtGvXIblDQL /Vqcd6NlRIumyRBDL9YiBn764H9ejhOynEuZj1hOQ4p3l6vuVfKY+bthNZfKURX3o4px iuAEfet7SEm/NTD5GE0Nw45/ULzyo9G4blE6fSnfhnM82leGlV3I/ZXmRCDGrmUYusjK 6ahmxf/nGgFrdOhFntDlVKFfH+j1GClAO7KabAnR6KY2Q3L8S0DW4WXg0XalKeZOX9Oc j3Eov0OS2MGTy/aztjCuX/jeQZCB0AXpR6ygAOsAS4d7j9dqkXDlPJ31XYc9Y0r+JFy6 zu3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=I6n7Lh9t; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11-20020a056402032b00b004fd298a62b6si27085324edw.458.2023.03.26.17.22.48; Sun, 26 Mar 2023 17:23:12 -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=@lunn.ch header.s=20171124 header.b=I6n7Lh9t; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbjC0ADX (ORCPT + 99 others); Sun, 26 Mar 2023 20:03:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbjC0ADV (ORCPT ); Sun, 26 Mar 2023 20:03:21 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4395E1FC0; Sun, 26 Mar 2023 17:03:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=obMd8KxYaBJXLS2xOEVfqjlspcNMPlMz2DU/vmZvzIM=; b=I6n7Lh9tnllYJTO4KInJvH3BR2 RLEDLmVeohYvkb0v9e3Fpkdq4TUKXmRA4FIAj1uL9v6KWehnGjNpR2KoUJQExYf4bvCMxde3OA47s LT/kh7BJX0cbk8sn2JoMJFKBgtKY/FKj76gfjB6VrskjgNOBxx5lEyaa55KulW5+o+Hk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pgaK7-008SvW-34; Mon, 27 Mar 2023 02:02:55 +0200 Date: Mon, 27 Mar 2023 02:02:55 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: Mark Brown , Greg Kroah-Hartman , rafael@kernel.org, Colin Foster , Vladimir Oltean , Lee Jones , davem@davemloft.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Heiner Kallweit , Russell King , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, thomas.petazzoni@bootlin.com Subject: Re: [RFC 4/7] mfd: ocelot-spi: Change the regmap stride to reflect the real one Message-ID: <826e295b-6a0b-4015-85bc-5ba6015678dc@lunn.ch> References: <20230324093644.464704-1-maxime.chevallier@bootlin.com> <20230324093644.464704-5-maxime.chevallier@bootlin.com> <20230324134817.50358271@pc-7.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230324134817.50358271@pc-7.home> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 > > > static const struct regmap_config ocelot_spi_regmap_config = { > > > .reg_bits = 24, > > > - .reg_stride = 4, > > > + .reg_stride = 1, > > > .reg_shift = REGMAP_DOWNSHIFT(2), > > > .val_bits = 32, > > > > This does not look like a bisectable change? Or did it never work > > before? > > Actually this works in all cases because of "regmap: check for alignment > on translated register addresses" in this series. Before this series, > I think using a stride of 1 would have worked too, as any 4-byte-aligned > accesses are also 1-byte aligned. This is the sort of think which is good to explain in the commit message. That is the place to answer questions reviewers are likely to ask for things which are not obvious from just the patch. Andrew