Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1878679rwl; Thu, 30 Mar 2023 02:49:19 -0700 (PDT) X-Google-Smtp-Source: AKy350ZmBysUORRIRcG0OcWJTAsJGCd0stksstSlB7yOgewHN36JcgPfpAyYFNnPALF6txlIAylS X-Received: by 2002:a17:906:208:b0:931:5145:c51d with SMTP id 8-20020a170906020800b009315145c51dmr1650898ejd.0.1680169759149; Thu, 30 Mar 2023 02:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680169759; cv=none; d=google.com; s=arc-20160816; b=BegYU+VKwtwRJSzmJTLrlvlGLzO2TZJMjdLsdHjS3OhXHGL+f6buHSJvVheNCiAYdf WypYEAWwWhMR6HVXEz2xrmn08eElvJkmeCWiYbkXwB6bTTNGLagL4nR9SJkFzI6/ABCO U2BVzyN6apGvlZWYUDdkNZhHtU53UZ5+xsC+bHzE5ZxZl1dyiwDcN0J6Y9hoaXft8qaG cIOh12ikMGQlKBurqT9/URYMeuHiMIGIPGS4NGBNzxu+Jh3KY6UPOuXzJLez76ny3+6M e2n579Mou+uuoRIyirGVbLasxnH/udit5IRPoGqzKO6XxU4hePi4wF4VrH+NJydVub94 qTJQ== 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=tDZMFFeXlhTNHv0SPx6QXJ/W5qsCoVxWgCf1SwG+2Wo=; b=haps8oMYjm/AhxgbnwzkNkqS5VXxMmKEmI8h8Ph6SY5ouUopmnrcFWUnSz8z8y/OAA VSdR/kE1Iu/OUTE7mrdyqUSg1VBp9S3zDXqBZdrj7Qw0DDiqhh4KGkaLx0JFCPqbOo3A qijyVaTlMhWLmhK36IfkAnbtDF8sQcOigkyTsYaOH9LZKRCq9kP8q+LRiTOkNdvqMSwM gzDIG2ryc1m2voSMq6MJTcOC6ZjEmj8Gce6gzyOOmvzZkG1xCfCMQs1NsmGGYzTZGZfk NKUHN6oceXWpvsXy5kKSMqmR/xhGCCkO2eVomYo3N/yfyWTAzkLVF6Ma3GDGXh7R3Le/ s8PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jl1v7xa8; 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 hp17-20020a1709073e1100b0093cd9603fcbsi20069561ejc.721.2023.03.30.02.48.54; Thu, 30 Mar 2023 02:49:19 -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=jl1v7xa8; 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 S230461AbjC3Jrp (ORCPT + 99 others); Thu, 30 Mar 2023 05:47:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229718AbjC3JrP (ORCPT ); Thu, 30 Mar 2023 05:47:15 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1616586B4; Thu, 30 Mar 2023 02:46:36 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 892C2E0010; Thu, 30 Mar 2023 09:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1680169595; 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=tDZMFFeXlhTNHv0SPx6QXJ/W5qsCoVxWgCf1SwG+2Wo=; b=jl1v7xa81tnvUJc7h0fegAZMWr2Di8Zr9J7ucrXYdEnehswb+2ISKV+RyjocaWIoYTH9AI E6HMrrTV2eX7J5osIb34clZX6kQL46SOnjqcZp21jqhUhT349ljsSeaeAgNxIkihlvfyzz jFpIaOsBrejO1VxvmqNtSnW3zoW8biP5QIYg8ykBeby1NdknwWVUkJBOcNMZKMvGSlD81g z2Ou6jivSsdrTQlSYQwHjN0rhBQxUhdnO1h191oRXFqOYBjkY27a1ofnierJaW25hor1ZX m/xHqnOfqLrcT5viVwqpARBqIFc5mo9FkOKqageu4oA8v1RNvSjT/Npb4G5mSg== Date: Thu, 30 Mar 2023 11:46:31 +0200 From: Maxime Chevallier To: Andrew Lunn 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: <20230330114631.6afa041c@pc-7.home> In-Reply-To: <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> <826e295b-6a0b-4015-85bc-5ba6015678dc@lunn.ch> 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,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 Andrew, On Mon, 27 Mar 2023 02:02:55 +0200 Andrew Lunn wrote: > > > > 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. That's right, I will include this explanation in the next iteration. Thanks for the review, Maxime > Andrew