Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp132748imk; Sat, 2 Jul 2022 13:59:52 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s6o5/yfxcosQGMBiedNKs8Prb904v21uT5pGU3Cj7iGyxHNFEQPuXNx+eY5HwwNVULrQbF X-Received: by 2002:a17:906:3f09:b0:712:466:e04a with SMTP id c9-20020a1709063f0900b007120466e04amr20820895ejj.719.1656795592011; Sat, 02 Jul 2022 13:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656795592; cv=none; d=google.com; s=arc-20160816; b=wRBQn10mrPJqLyxu6kaqwcajO0fZkvGn+3lt/K2az2BGgvaNQWP99kgtLfW/xrKrhK SVxbWC9NKe3mWwJij7Je9JaRwzlmiHqjOh9gJ3prF+yl93+5cdOdi40sOijv+8yRnyv5 XOQq3iXQ933GJOMtgjOA2aV0qt0Ksi2eU4PvWcfP3T19rqRAiGfcPFuaaspBrQlCYqwu HC1elpLCpkNeUQJxX2AI74pPD1AI4j40wEjuImN75DYg9IMKYVpHJxzgXN1xzoU4zhBg nXyCczkwetdvU6kN8UpXFSRQC9XOejvStDFKvt5xIAtWVrwSi+5N8aDRLrYv4zswoYqu oVRA== 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 :dkim-signature; bh=nkBKSiB1cmrK0dp6yoY74fBlTGVGjeXpWgqgNS2jLkc=; b=PRW7tLaK2VC6xQhMS/3mb4CH4dzQfXol+Jqryu5PC9gikFRW7TcaPqiUkBnCAuwsP5 aJ9KBOfCJZjGRNIlX8AUGkl6/2t7ryB8lrNPWlnj1kA4j+05Pi07FRHw38cXaQqfKYpQ xOhRzP5SYbaCByJCzgWWPamn3yH4dZFMjuAlEYhpsZl/1IiZpqdSoVGf2Djjphh2rDVt jvOHsrQI4yGNEthufloyskrbPzZK2DoN7u4rStc4CZTqBHLBLwTyf1BoHZiYDyywL1mB w1KBj+hzQDWT4lB0yKyZQd7FyK1z6wfHplJWGyOiYBY1Oj2ArOQOrv4NjT8CzdnQfK1D pbPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NFhQvdWY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a05640234c100b00436b72c1942si35114526edc.589.2022.07.02.13.59.09; Sat, 02 Jul 2022 13:59:52 -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=@gmail.com header.s=20210112 header.b=NFhQvdWY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230079AbiGBUeE (ORCPT + 99 others); Sat, 2 Jul 2022 16:34:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbiGBUeD (ORCPT ); Sat, 2 Jul 2022 16:34:03 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23EB7645B; Sat, 2 Jul 2022 13:34:00 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id e40so6893824eda.2; Sat, 02 Jul 2022 13:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nkBKSiB1cmrK0dp6yoY74fBlTGVGjeXpWgqgNS2jLkc=; b=NFhQvdWYVDJHI9jVYMmqiDzGQIMGFCe93+qW6Pazsb60DDU4FijSwNzNETGsJH9wJn dlkxRjbLlkt9oSMg+d6uz4GfH7xZpJJgUhbx5aVZfJ6+V5yDBZHeD6DtH8JIwah4F+3z XsIlzofqIqEWl6Jylef3WefiCVn2g/n8Kv8zU4jvwfwxNGYbQnPjR43qyl8vNxiAN1lp pIxMuBqE4FSbAzb6rvkrGobqjR+TH2QWqk1PCB4RaVFsMZuaBRr5kSqskD+yw96QoXC0 rtOx+xg75OtI6RLFEyQVabUxDGkWS/7VP0XW2Q/fqbNLUaJShgMdI5Dm9ggeWQwvGW6/ LdiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nkBKSiB1cmrK0dp6yoY74fBlTGVGjeXpWgqgNS2jLkc=; b=Ko5JhZGsMg59o8WOiUy+cXj01Acq2iWQJToT+1BnZdzhRvr4j7IAfUux+3Ve2k9H3P uASuVJV3JRlluQ+7YY5vQTHfwwe2uAjNDePwOANHUdMlHu25xLvL6GtIksQykEEODiZL 19joBOkv4yx3Aj8DKiRl9496P51JjMy58rYOmV8PVuP7j8QXHVNpc85mbRrgHA+LFYkb gVOSdNTqWWkSJtSzbXb27+d4fFgDNzJA/7Nix5Czu7omYX5NYJEO7ZFXMgoxbXfs4JOE s8lwzztUKGMCRRxWfGCNoyHu5A5ULsNnwCc7CLidHYlJiyx0pEu8ldJgKvE4gl2LXEHK ENqA== X-Gm-Message-State: AJIora+QnzWJRXRpcsFdisxojhU1cmBmNhUU+h/G04Qj6YrHdoRACEPR Zxd2fNcCpXaIMUw7/z0jPk0= X-Received: by 2002:a05:6402:520c:b0:435:af40:8dc6 with SMTP id s12-20020a056402520c00b00435af408dc6mr28255778edd.343.1656794038762; Sat, 02 Jul 2022 13:33:58 -0700 (PDT) Received: from jernej-laptop.localnet (89-212-118-115.static.t-2.net. [89.212.118.115]) by smtp.gmail.com with ESMTPSA id u6-20020aa7d0c6000000b0043572ffafe0sm17235948edo.92.2022.07.02.13.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Jul 2022 13:33:58 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Linus Walleij , Samuel Holland 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 Subject: Re: [PATCH 5/6] pinctrl: sunxi: Make some layout parameters dynamic Date: Sat, 02 Jul 2022 22:33:57 +0200 Message-ID: <2374408.jE0xQCEvom@jernej-laptop> 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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Dne nedelja, 26. junij 2022 ob 04:11:46 CEST je Samuel Holland napisal(a): > 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 Reviewed-by: Jernej Skrabec Best regards, Jernej