Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp685085pxb; Tue, 5 Apr 2022 18:43:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4B4lvHgK1UUI7zxhc8Ai1FZCdiA6T/3p7fwDhZO+E5iootv/7OI+yPtIzkjU/3RjA2mCG X-Received: by 2002:a17:907:728e:b0:6e7:edf7:f0a4 with SMTP id dt14-20020a170907728e00b006e7edf7f0a4mr6202387ejc.497.1649209390799; Tue, 05 Apr 2022 18:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209390; cv=none; d=google.com; s=arc-20160816; b=RvgLLeA0eYDVXtt4GdUX1zGr713GmNMgJddva9Y1Z/VaxBqgACKYYSYvbQuN5H+h+K ycaQzp2KxAAaqZ3YiF82EgTctbIfdqCS9m6rI3gP554+gVQcRAu6s2qFUTb+JDo/xcsX eIyLwXmtxJQ4QXU8qzd2ERrT59w+6+s477UuLCDZRsltInIKeHpLW2qsLyT8qyDNZmUa vQzLtibS8swYattwKoUCx9p/KNcbaEvXuPReFSb6+lwUdwTsxmmSJOQwQVB8zAbmU1ub tcdZ+/j274AiheCEYgKKpT8QziLQSFylMPjyoZA4PIDcPQNwB5WUnjzl6kaC5acRNcsV CWcQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zTWywwmzk4ZsbG8SNOv1ueXQ7XdBM19pfu7N3g+58RY=; b=R2Wn2kzJBSmxLw89Q7YMUV3Lr2rx3H5vDjSslQMkLLY1Rm7hxTZW3x9JvQoXr3TYCJ c0X5qult7D8Ef6UF8xVaGeSWcLH0xtFvlzcCAtB0i7Eua8c7nyAQrl8HCUEk3ovCtW8g NDTlRFp6DOgc/KTjI++YzmYNJpKIt+VjfyvqSR+8Q4RG4wj6Q+tyXqqcXiOd8rJHa3fb KdS3fH7KKzu6uVnMUxPsiMSekYHpNj6uc66RJsFA60RcBmaV6U1yNk0sImn04ZiYMXkL KsQLc6MfdO7nGU/TYsLOkEsSdUJXX/Ok818fjIbEe78Eh+YTukcqoJOAoE+iiSHmEO61 hu/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pMmXSc58; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a056402348200b00418ed33b5ecsi11481731edc.183.2022.04.05.18.42.43; Tue, 05 Apr 2022 18:43:10 -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=@linuxfoundation.org header.s=korg header.b=pMmXSc58; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1390032AbiDENgT (ORCPT + 99 others); Tue, 5 Apr 2022 09:36:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347182AbiDEJZT (ORCPT ); Tue, 5 Apr 2022 05:25:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 920F8546BD; Tue, 5 Apr 2022 02:14:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9CCDD615E4; Tue, 5 Apr 2022 09:14:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A22A7C385A2; Tue, 5 Apr 2022 09:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649150061; bh=/jXyjXnKVL7ginhzj5vU2rBOllvhtBJIJKYKH7J0cos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pMmXSc58OzQZy7z3NNqBEmgnAsLGcuppwIM2d7fgTf7UWMnSQlIURunNH0mUkLxcX 8+dWAam/7W6v+nYPfXIcoPRiRET3IyYlfVqpeF6QG9r9gN1wQn6mT3GiwbIHXoACnK SrM9pcrEHXkDUivte936szeTqfCecYhn/yGfoz+0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chen-Yu Tsai , AngeloGioacchino Del Regno , Linus Walleij Subject: [PATCH 5.16 0940/1017] pinctrl: pinconf-generic: Print arguments for bias-pull-* Date: Tue, 5 Apr 2022 09:30:53 +0200 Message-Id: <20220405070422.118181140@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 From: Chen-Yu Tsai commit 188e5834b930acd03ad3cf7c5e7aa24db9665a29 upstream. The bias-pull-* properties, or PIN_CONFIG_BIAS_PULL_* pin config parameters, accept optional arguments in ohms denoting the strength of the pin bias. Print these values out in debugfs as well. Fixes: eec450713e5c ("pinctrl: pinconf-generic: Add flag to print arguments") Signed-off-by: Chen-Yu Tsai Reviewed-by: AngeloGioacchino Del Regno Tested-by: AngeloGioacchino Del Regno Link: https://lore.kernel.org/r/20220308100956.2750295-2-wenst@chromium.org Signed-off-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- drivers/pinctrl/pinconf-generic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/pinctrl/pinconf-generic.c +++ b/drivers/pinctrl/pinconf-generic.c @@ -30,10 +30,10 @@ static const struct pin_config_item conf PCONFDUMP(PIN_CONFIG_BIAS_BUS_HOLD, "input bias bus hold", NULL, false), PCONFDUMP(PIN_CONFIG_BIAS_DISABLE, "input bias disabled", NULL, false), PCONFDUMP(PIN_CONFIG_BIAS_HIGH_IMPEDANCE, "input bias high impedance", NULL, false), - PCONFDUMP(PIN_CONFIG_BIAS_PULL_DOWN, "input bias pull down", NULL, false), + PCONFDUMP(PIN_CONFIG_BIAS_PULL_DOWN, "input bias pull down", "ohms", true), PCONFDUMP(PIN_CONFIG_BIAS_PULL_PIN_DEFAULT, - "input bias pull to pin specific state", NULL, false), - PCONFDUMP(PIN_CONFIG_BIAS_PULL_UP, "input bias pull up", NULL, false), + "input bias pull to pin specific state", "ohms", true), + PCONFDUMP(PIN_CONFIG_BIAS_PULL_UP, "input bias pull up", "ohms", true), PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_DRAIN, "output drive open drain", NULL, false), PCONFDUMP(PIN_CONFIG_DRIVE_OPEN_SOURCE, "output drive open source", NULL, false), PCONFDUMP(PIN_CONFIG_DRIVE_PUSH_PULL, "output drive push pull", NULL, false),