Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1719400ybb; Sat, 11 Apr 2020 10:06:12 -0700 (PDT) X-Google-Smtp-Source: APiQypJPzgY/Kn8i2Iwy62ArkoWeEEUuAJWbVTOoBiuBGleiTWfIITdFkrPrETKooEdOxg7w3uOE X-Received: by 2002:a37:e315:: with SMTP id y21mr1185155qki.351.1586624772118; Sat, 11 Apr 2020 10:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586624772; cv=none; d=google.com; s=arc-20160816; b=bEsv6FVN/XcNAYta8g0ntLirj/mV/YaEJ0RRZ0Lj6ObRKBMzJF3AbLUY6eczadGr6X qOCW5tmc/dEwOpHRIuEP8JnBIjTRpUsjyptWUkhL8tae2Kh132jo6zDLkPNEHa8KcpLN KeYn/mhxfUkdq/WK6cWYH2qTqjMLeCqSsdVfaeKBOJ7IuAguZ49UvCnjSh2Huajl8IHo NpEdNabZfVY4GWSrbEHn1OuOKvpJ60lZHvA1NqYApB7GVNXVjf7mg5ZI2YGRPGEuRmye 5BVJwlYmXQGMWsBmf/nxx63swAifdpszS1zs7ShA+9dFV1Lwf6zQvT2CpSu7Z3isp/R2 +q3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0q2fKgSBRhLM1xO7rLbH5yRPkbOobCmPZS97hpoNVA0=; b=hoQ2armIUWN60YARKT8NuCxOOQrBTl0MbgSYuFTH9D4eUhoZNARppkeNwRGn9VQE7Q 6tE/SEAkS8wrIxodRbVyFb2/d2ndfHa/J0dm88a0GTmXl2NRb28cUdLdMqjPtjHEuhne YYR9oYZ6j4s1RTVQ9rV6aucMx1xXGaLRjH5HeIInSXFQJ+5KEy93Ll722QpfKPgIAkHz wOU94F8RDEERsMFGkhn+23VwuvM1mjQvztx+xUqgWHL9hnddJ3wA4BZy0Kr/5nYobnUe k1Q8mB96uoj+1euiiMHr6GkyWaxdKq4acfniXzU28CROHPrq86c1Ea4s7e65ziwWlM+g HNfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b="PZ/NpT7+"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g12si2910029qtu.154.2020.04.11.10.05.57; Sat, 11 Apr 2020 10:06:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b="PZ/NpT7+"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726708AbgDKREI (ORCPT + 99 others); Sat, 11 Apr 2020 13:04:08 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46182 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726107AbgDKREI (ORCPT ); Sat, 11 Apr 2020 13:04:08 -0400 Received: by mail-wr1-f68.google.com with SMTP id f13so5582615wrm.13; Sat, 11 Apr 2020 10:04:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0q2fKgSBRhLM1xO7rLbH5yRPkbOobCmPZS97hpoNVA0=; b=PZ/NpT7+fJNJfMN8f4fzRXEbqHEHmtUZk6vVaXMRrEoo/FHzhgPkhzvoPjlqfFoJOi 3U2aA26CFcYr4LFkJFbFByB3MM31E2Pouxz+6LNJhMmZ0Me1Wl61n7PGgBueel+BH1sR xlrgIOHMVa8Jnd9TS4sJGVCun+h7mELpPtE+R1zunW7VFnLoAc1Zz8khIjw+N+xnEsQN YWHC1ijj1Gy7O0lZIrYNoqvCNXccYkcJDHVExZGYxknXNt0pSE9qn14R2pz2ICWWGtdL aAuBidR1XlHY1oh48gGVY94BokXCwn6ub2+XhAiCWjq8aqmJPDJwSQgq4TJtWy3GuIIb KC8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0q2fKgSBRhLM1xO7rLbH5yRPkbOobCmPZS97hpoNVA0=; b=JK/9Ln2uix8jo8Ifn1Hj4XBrxX/WwpqkxWu+kzqu0MA2287wE3Fy4IYVQaSu12H1xz XwDXfo+qcO3Blr+BYCdvvTTEtovDrYJ+CcgUZOXSFx1wMEBGZ2FO21zxgbwoGP7X7mpb O5kIOr2gP1vmML8oC057j94MiMRseqnNeMr5SAhJGCoTTyeBPi0sA5/if0hr0gJWUUfN l27sIwtrBREXhK356wlq8Nz7EUbTrhVap5eJjYOoXVcrKrl1XE3AEO00MA0zMyCVs1Xw lBSqk1LSyk+VgIl44j/qVon7fOu2hcNJIOZf/XBKkPrr9x0LUhbHecP9E7B8NVtb57ks BV+g== X-Gm-Message-State: AGi0PuYuGbJ7BWpO3Ba2kPsv0TjyEhBC1kBb+XuDGQCqbu3hFcZtxRi7 vNdqMAOScqfF68Okun8IFWY= X-Received: by 2002:a5d:4bc1:: with SMTP id l1mr11322589wrt.103.1586624644812; Sat, 11 Apr 2020 10:04:04 -0700 (PDT) Received: from localhost.localdomain (p200300F13710ED00428D5CFFFEB99DB8.dip0.t-ipconnect.de. [2003:f1:3710:ed00:428d:5cff:feb9:9db8]) by smtp.googlemail.com with ESMTPSA id x18sm7105067wmi.29.2020.04.11.10.04.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Apr 2020 10:04:04 -0700 (PDT) From: Martin Blumenstingl To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, jbrunet@baylibre.com, Martin Blumenstingl Subject: [PATCH RFC v1 2/2] pinctrl: meson: wire up the gpio_chip's set_config callback Date: Sat, 11 Apr 2020 19:03:56 +0200 Message-Id: <20200411170356.1578031-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200411170356.1578031-1-martin.blumenstingl@googlemail.com> References: <20200411170356.1578031-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use gpiochip_generic_config for the gpio_chip's set_config callback so GPIO flags like GPIO_PULL_UP or GPIO_PULL_DOWN can be used in the board .dts descriptions. This is required for some Meson8m2 boards where GPIO_BSD_EN provides the "MUTE" signal and requires enabling the internal pull-up resistor. Signed-off-by: Martin Blumenstingl --- drivers/pinctrl/meson/pinctrl-meson.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index 291f3078e7c7..079f8ee8d353 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -603,6 +603,7 @@ static int meson_gpiolib_register(struct meson_pinctrl *pc) pc->chip.parent = pc->dev; pc->chip.request = gpiochip_generic_request; pc->chip.free = gpiochip_generic_free; + pc->chip.set_config = gpiochip_generic_config; pc->chip.get_direction = meson_gpio_get_direction; pc->chip.direction_input = meson_gpio_direction_input; pc->chip.direction_output = meson_gpio_direction_output; -- 2.26.0