Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1265243imi; Fri, 1 Jul 2022 06:31:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ta2BEIor4hilxt8hLbb8WgNV5pTeLAmw9nkd3OqJ1bxBKn9PT8NrngeKWKTa0V0DXIv9y+ X-Received: by 2002:a05:6a00:1941:b0:50d:807d:530b with SMTP id s1-20020a056a00194100b0050d807d530bmr20984981pfk.17.1656682286693; Fri, 01 Jul 2022 06:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656682286; cv=none; d=google.com; s=arc-20160816; b=E4ssZ1W8DyBnfwIAZNSvJLssuboqXMRHfgPoINRRct7fCgyb9RGZoDPkx6GWWXH2FJ NU0HLu1MgQhkUSv+L6CzXibdxZZVbzz6ITEx0QpzQshJcuLt2losLuhb0K0YYuK/SqIb GvOM/Sfd9z5RCdhsvKYJnQi9XLBmho7uWrh9HXg5q2eEo8NN5ySPyVu1DwheyM/Gg3on fV7YPy65ZG0hczvIDUK9WUjfSW5Oq4Gmjpkh0Jf2C1kWegLG/7o7+eFptkUEGoF2Iym5 Ku5QrH6OQ+5jsGdFuy0ca90MAK5xmX1qiCX/2RxL3L131DuW2AOnFctiEMyiGpbHFkDQ hREg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dJZsxVQUGWwS4XbOVkedJABJ6SqKvFXgeuVJ02r03Bg=; b=MJJ+Hv/Qkrxcx11Dkm89Ty7GS7D5fjp4FyGKb10TSVUf61Qc3RXPVgi18VWQL7svaC 1BuAJB+/xmYILq7VTyyWaN3yqUuyYtOSfKQ33YS9OQ/fXMWi7XXzB+bD0CSJkt7V9tcu 4FKng86D+yFy/qhTNA0VVGs7zDNd9oX1NFssUngeRms4fRo3+fTyNLTNigFM4CLg2I4T ADJY/34cu+XQBhj3C+LK4yd/v+s4+pbwiB8jjpG5Rnv9I5SnGW9sno9mv1HthMA8YgV2 9D8DApE3YGMhzjKjvbwPcgaYxCbHrILgbXRv7zHhg19owq+YP5pl3CNucV1ssnQZXPL0 RZqg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a633e0c000000b0040cb4de921fsi894557pga.348.2022.07.01.06.31.15; Fri, 01 Jul 2022 06:31:26 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235114AbiGANJ2 (ORCPT + 99 others); Fri, 1 Jul 2022 09:09:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234028AbiGANJ1 (ORCPT ); Fri, 1 Jul 2022 09:09:27 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAE35BDC; Fri, 1 Jul 2022 06:09:24 -0700 (PDT) Received: from p508fd39e.dip0.t-ipconnect.de ([80.143.211.158] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o7GOc-0001dK-8y; Fri, 01 Jul 2022 15:09:18 +0200 From: Heiko Stuebner To: Chen-Yu Tsai , Jernej Skrabec , Linus Walleij , linux-arm-kernel@lists.infradead.org Cc: Samuel Holland , Krzysztof Kozlowski , Maxime Ripard , Ondrej Jirman , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, Samuel Holland Subject: Re: [PATCH 5/6] pinctrl: sunxi: Make some layout parameters dynamic Date: Fri, 01 Jul 2022 15:09:18 +0200 Message-ID: <5030179.KRxA6XjA2N@phil> In-Reply-To: <20220626021148.56740-6-samuel@sholland.org> References: <20220626021148.56740-1-samuel@sholland.org> <20220626021148.56740-6-samuel@sholland.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR 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 Am Sonntag, 26. Juni 2022, 04:11:46 CEST schrieb Samuel Holland: > Starting with the D1/D1s/T113 SoC, Allwinner changed the layout of the > pinctrl registers. This new layout widens the drive level field, which > affects the pull register offset and the overall bank size. > > In order to support multiple register layouts, some of the layout > parameters need to be set based on the pinctrl variant. This requires > passing the pinctrl struct pointer to the register/offset calculation > functions. > > Signed-off-by: Samuel Holland On a D1-Nezha Tested-by: Heiko Stuebner Reviewed-by: Heiko Stuebner