From patchwork Thu Oct 5 20:54:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 115000 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp1014831qgn; Thu, 5 Oct 2017 13:54:26 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBOUKGi39p8LQvKHBTT4O729Ax7vii5d30GtP3xYFXqXlaOOm0e7LpLtwH1KcSe8Nqp4lQp X-Received: by 10.99.119.206 with SMTP id s197mr13371757pgc.83.1507236866290; Thu, 05 Oct 2017 13:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507236866; cv=none; d=google.com; s=arc-20160816; b=GoUezxrqT7qsr4JsT/23jQwW30VlFwIjk9ey8LMF2szJc8RVbQtCPmjN8KVCiStFVJ 9Oc/mdUgdtS70sir1AcDpKowvTK6WvopF/4NPN5ng/AMgJDbAku/6pK+t9scix5hTGu0 mEuYvHlJk5ox8e2lRPnI0S9K7eUhbU6LsbqrMDIMGrrmBJ87BU2t4AeQqWyoOm8kZrvL QcABZPTWGkoqyzLkf3X3r0ok141Qf1hpN4ca5jdN6gtpTA3Lm9I2GKFeMAc6C7xORUWx A7Mqusxd33/4QK8tmeAh5jzSHFlLA4ZZivzzcVZbFkZtMJQu6ho5QDK48O36Ilw8IAMK cz5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7AHIro8d2zgNdDn4fWwwiuCTKCRsV3UWuvhwuM/+lHo=; b=oUd/PdwoU0RJSgkpiCno3WrgXM8AYnSGIZ9Pfdj2gN0+bE8mHEpHIbICvwU1PQfUwo LM8XTMFD0dxefFsfMnj5hzx6E5NEdTpvsgz3lcA5BEKFAXHnbyvww93LL9YpxPjKF5z+ IKv9Xb736VIFL8vYX2glMxrebpcQWGFBS2vvl+tCpUWPAZFjldDuzJqd3w31bmYZldl3 kNcD7KHeJLlBJTAKmkSStf3GVNWH9BypWF0Zfp1A9s3YH8d5afeqySZAoUK+9xTqc5e8 t/bdiNZLMtEn4BD8NOHL6bKhxf4v8iBnca31j9LFVyL1UAyaVAvkscOIiuHxzJgoQMTz 5p0w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w128si8550842pfw.112.2017.10.05.13.54.25; Thu, 05 Oct 2017 13:54:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbdJEUyY (ORCPT + 26 others); Thu, 5 Oct 2017 16:54:24 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:32864 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbdJEUyQ (ORCPT ); Thu, 5 Oct 2017 16:54:16 -0400 Received: by mail.free-electrons.com (Postfix, from userid 110) id BBBF920982; Thu, 5 Oct 2017 22:54:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [91.126.32.14]) by mail.free-electrons.com (Postfix) with ESMTPSA id 8C9B020914; Thu, 5 Oct 2017 22:54:13 +0200 (CEST) From: Maxime Ripard To: Chen-Yu Tsai , Maxime Ripard , linus.walleij@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH 3/3] pinctrl: sunxi: Enforce the strict mode by default Date: Thu, 5 Oct 2017 22:54:08 +0200 Message-Id: <817a66704d6c8f3caa034a526db11e25a9152a65.1507236823.git-series.maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The strict mode should always have been enabled on our driver, and leaving it unchecked just makes it harder to find a migration path as time passes. Let's enable it by default now so that hopefully the new SoCs should be safe. Signed-off-by: Maxime Ripard --- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 1 + 1 file changed, 1 insertion(+) -- git-series 0.9.1 diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index 1753a5b1573f..2313c3b8931a 100644 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c @@ -696,6 +696,7 @@ static struct pinmux_ops sunxi_pmx_ops = { .get_function_groups = sunxi_pmx_get_func_groups, .set_mux = sunxi_pmx_set_mux, .gpio_set_direction = sunxi_pmx_gpio_set_direction, + .strict = true, }; static int sunxi_pinctrl_gpio_direction_input(struct gpio_chip *chip,