Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1017237rwl; Fri, 24 Mar 2023 05:18:56 -0700 (PDT) X-Google-Smtp-Source: AKy350axihOC5KGZj6ZONW5yrrSieGVNBY7F8pf16b54mHdVuDW77n5FfSoFssobY3t4suGbetNa X-Received: by 2002:a17:903:2309:b0:1a1:b5e3:7db4 with SMTP id d9-20020a170903230900b001a1b5e37db4mr2836476plh.18.1679660335833; Fri, 24 Mar 2023 05:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679660335; cv=none; d=google.com; s=arc-20160816; b=n5WakKqlBcdDmA3zg3OkYAFtBJEO7jns+5uU0DYHn0r2ar+OzLI0vARIvtY2XznP1H lP/qcLmZ1uUCn9LGL5H1s+ESWJUwt2P7N2U2XsqmM4jATkzeTNNuEghm/Hx39W5wPkDn G41zg7WBI+iw+4o/SgFGfh4M655IXRTuIchWOBPDSUqsVFkSBF2tLFEDzaqVR9lOwPae tpDNR9682lzG/hb1DzfVgutw6QsQUjCGtJ+LQykBsL3XCfKNaVAUiwM15oPWeP8I6V6H WsSL/Tq+Z9X5GahqJvu28XqxYpoL8Ms9WDOXtwl1xXxUitx+q26DZ7Jlydtc6O/xPxFE iuQA== 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=p3XMUSLrnS/jiuxpKJ52EhVMkuEU2VI+ix52pq+MhSY=; b=wkB1sNGylcGrmR+ftY+gbmBKsM0iO1eUP0Y9Tb6FK+tKN1toocQc4FYsowWnTpd9eb Fd3MYop/263m3Ye8JmQd4o7DOAOrVKpLh1o0lV0AvescObkQNDgWf0mwdqc+ajhrR1Xm lD9ErYQDCDzJFn21Bx2rOIXArydAMLr0nJ60snDQpX2oRgCg8ZkeL8FU+OETPKqKhcxK qr37oBr51lSyoAjmwnyRVT4SqiHXTEs4266VKpLwvKueefDsdweBF4QthCP/jypdppHG xssmXyMea3YOUwMqypDLG6zaHT382uceHMCbh8lGNHNLZ4E16A9RDyxHKcklMKrkco7+ 8Syw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=zYpHKvmz; 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 kx3-20020a170902f94300b001a1d9808392si11060132plb.465.2023.03.24.05.18.43; Fri, 24 Mar 2023 05:18:55 -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=zYpHKvmz; 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 S231719AbjCXMLU (ORCPT + 99 others); Fri, 24 Mar 2023 08:11:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230016AbjCXMLT (ORCPT ); Fri, 24 Mar 2023 08:11:19 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D666DAD1F; Fri, 24 Mar 2023 05:11:18 -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=p3XMUSLrnS/jiuxpKJ52EhVMkuEU2VI+ix52pq+MhSY=; b=zYpHKvmzQSD9efpUNZ0jTEj3qj Ldv/Fhy3TjpCwM2zwuy5e/hRMy/Jnfy72yx7FK1GJgnUJQCH4A5athPolK+nrUrupCyrixi18HVHT kdlz/tUn/9YhTVvO8jw48SK0DcJkSDcULIVuLsA6UZ1KHt2yNTBp89JQSyFoP3CPTpiI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pfgGB-008HzK-OT; Fri, 24 Mar 2023 13:11:07 +0100 Date: Fri, 24 Mar 2023 13:11:07 +0100 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: References: <20230324093644.464704-1-maxime.chevallier@bootlin.com> <20230324093644.464704-5-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230324093644.464704-5-maxime.chevallier@bootlin.com> 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 On Fri, Mar 24, 2023 at 10:36:41AM +0100, Maxime Chevallier wrote: > When used over SPI, the register addresses needs to be translated, > compared to when used over MMIO. The translation consists in applying an > offset with reg_base, then downshifting the registers by 2. This > actually changes the register stride from 4 to 1. > > Signed-off-by: Maxime Chevallier > --- > drivers/mfd/ocelot-spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mfd/ocelot-spi.c b/drivers/mfd/ocelot-spi.c > index 2d1349a10ca9..107cda0544aa 100644 > --- a/drivers/mfd/ocelot-spi.c > +++ b/drivers/mfd/ocelot-spi.c > @@ -124,7 +124,7 @@ static int ocelot_spi_initialize(struct device *dev) > > 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? Andrew