Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp8383768rwr; Wed, 10 May 2023 23:57:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7rKn8tjPIVp80bD3/Ei/xh/+NirpUsm6mEB+lm6WwKz3qSEyHzMyAAJpkwaOutIepUPoHk X-Received: by 2002:a05:6a00:218a:b0:640:defd:a6d5 with SMTP id h10-20020a056a00218a00b00640defda6d5mr24168175pfi.12.1683788270096; Wed, 10 May 2023 23:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683788270; cv=none; d=google.com; s=arc-20160816; b=hc7RjXi669QhxLiN/jLi6hbzvGCPiGCLxgbyitKO6Ikapa34l9tooyvcQOhJdzDrRM PqTLwmQpp3DSKO07wQnGHdLCeJlYD0NA7X2iLVb0IqbC6kb12Kzrs+5qTzyGJlx4Fyn+ J8rJzOFK1c/KjE34b3Z6BKIp4kN7Oeh9XCm7M4JWFis0KgySHRXlv31gvqT/NQuqMoF3 9LjqTkMUgdgfyyLVtfR2gcFvTQ/Rj0VT8f6VAte1+TSr8jxQFj5sLhjTNvMWpBGGaRbH j17Esh41XLZMal1Q7syn3SjOBm06aTfiho6cDJyRwRIR+mN5xTnZqHn/Lw9nONDoqzGs DAfA== 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=loWLMtt1SB4E9zCWd42lbXNMFAZQMbQFf4TMhSHwRzE=; b=gzqJo+jgFKCKTGf6EdI1tfKUYcwcIJ9RQTpyZj8ozbI2DckSayz1aOu6w7sZq7Wt7B F9PKzkzisN3VLkVIOMrrd228JwsSidsKfnB5wqs/+nnafUxCICq4nQjitJozHR5WQQ6u nuH0AuELlCJRv3F1aP8cWvQxtOayJ1XHq8d+kp+FOAJUN8LYMiUZxfjtXkV4/EruU4ii +EHB24qFnc0L18lJ47nRnF2mIbpyEQQPgImThbdUEC4gF/EIQcVzo6bC3uxrwN6IsFA+ 9kd1YX2GXmkcMz+VMLpRcHSLMjfa+FANo4VWkZxQguaWx3g5JNzrWj9HnCaegSWpM0dU d0DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=CNOkzqcn; 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 u187-20020a6379c4000000b005304208cfe3si5087437pgc.685.2023.05.10.23.57.38; Wed, 10 May 2023 23:57:50 -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=CNOkzqcn; 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 S237079AbjEKGwY (ORCPT + 99 others); Thu, 11 May 2023 02:52:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjEKGwX (ORCPT ); Thu, 11 May 2023 02:52:23 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81B1846A6 for ; Wed, 10 May 2023 23:52:20 -0700 (PDT) Received: (Authenticated sender: maxime.chevallier@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 4C45560004; Thu, 11 May 2023 06:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1683787939; 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=loWLMtt1SB4E9zCWd42lbXNMFAZQMbQFf4TMhSHwRzE=; b=CNOkzqcnZN95xcMetZKz9SsNHIfo4oEcr3PjRBuZkeDdmZxpWgyIFKxQ0OkKous/CKSOYM k4irE4M8p97ocMMXVuYdSGNXUynrolMopSPFezRT//IlcdbCGK1RnsOUKmnbBANwTJcFvh /0e/N86Ob0c8AlZV5zcRuCd5JQAAXmxXFl9Fby7X2NmtnqrXSqCquviE6/3y+/dAcvRV1/ WB7RjIRK6DL2JHeWcN95lcxWDsqzrWq4TTZnXFsHhwSDQJ18nL0gYkACyAQNBbmXd8XgKs LFKpdObn+T3rg043c1NuBjeslkaj0KkDIKKiEIPsThfpBFkCxFdnMLRdvogIxg== Date: Thu, 11 May 2023 08:52:17 +0200 From: Maxime Chevallier To: Mark Brown Cc: Colin Foster , Greg Kroah-Hartman , "Rafael J . Wysocki" , Lee Jones , linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexis.lothore@bootlin.com Subject: Re: [PATCH] regmap: don't check for alignment when using reg_shift Message-ID: <20230511085217.4fe390d4@pc-7.home> In-Reply-To: References: <20230420150617.381922-1-maxime.chevallier@bootlin.com> <20230428093010.07e61080@pc-7.home> <20230428094745.63677228@pc-7.home> 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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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, Colin, On Sat, 6 May 2023 09:18:19 +0900 Mark Brown wrote: > On Fri, May 05, 2023 at 10:19:29AM -0700, Colin Foster wrote: > > > Sorry for a really delayed response, but I just got back around to > > thinking about this. Crazy busy times for me. > > > What about an explicit parameter in regmap_config that will disable > > alignment checks? That seems like it might be a welcome feature > > addition. > > You can already just not specify an alignment requirement - if you can > configure the regmap to specify some new flag you could also just not > specify the alignment requirement in the first place. Ok thanks, I will try that approach then. Thanks ! Maxime