Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3364134pxf; Mon, 15 Mar 2021 08:02:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZmnVr+mrhrElZDs2jt+sqzjqyGx5JCM6lEuZZ9rnL+J/vgWN/33eti1p1hhvS7g3GcLtL X-Received: by 2002:a17:906:af97:: with SMTP id mj23mr24673260ejb.419.1615820553790; Mon, 15 Mar 2021 08:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615820553; cv=none; d=google.com; s=arc-20160816; b=eSClj94qWfLkxrOOAXC6nbZJR5tSbAOrMZsgRJXi9MTnIpdefT98uxTkNhQSfIRdHq AlZB1MuYVlAQtcUD2Gmw8DaLfJgPK3ZY8DGmjh2JI7TMcn56i8+++4pXMVOL8zUDbEtL BamIg1OFepz9isOpk1wcUXmE7YOxC5Q4vjz1URCm3TvsTVJf5oozu1RALE3trbteHWB9 uZqCFG5MD5P09fKWd3xmDR2ffTwO53zdXj0fUBb9zRDFVOUXNSh5iZ4umBCpR6CL5NxX UP0Fra8AAy0aV5lTpIIWsblAlOEphvabjad3P7JDAwLo5HQDytxi0S8m+pOv4I3Zygzo kcFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :ironport-hdrordr:dkim-signature; bh=FcaTmFg+qW3hY4NrmRQtEj4VEdriTa7K4B7OzIG6SJQ=; b=LTJitcZuzvNZCCXV8teZulzWsyo4Nr9hyhuc6wtvekVCVMcTGQihGuXGUbDunKG2pJ DXjn6zN3NHTxYY8V7UueejyuOdVxatUUr2W8FcYYDywihi5auTpBSYATSw+ibad7swIZ sOavQvZEPynSC+RSlIpfsQabNI1jjEH1RDrgJQrNofePdlZlWGMJm+uPdu639PewXOOn l6pILPpUwoPMKDdyg7SirzmnW5VWlqGtP7Cpyb1GbWi5nmGmAaYhu2Xyj0T4+ihNhBdD L8NLppUE/RJFGTwPIaxbWh/Es+eBGu8C6vstyb5YyQi/9sClks3YuCgOIKI3S6w15ONX I8xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=nDcJIiHU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sd1si10992360ejb.660.2021.03.15.08.02.11; Mon, 15 Mar 2021 08:02:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=nDcJIiHU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237228AbhCOPAb (ORCPT + 99 others); Mon, 15 Mar 2021 11:00:31 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:43129 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233971AbhCOPAR (ORCPT ); Mon, 15 Mar 2021 11:00:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1615820418; x=1647356418; h=from:to:cc:subject:date:message-id:mime-version; bh=FcaTmFg+qW3hY4NrmRQtEj4VEdriTa7K4B7OzIG6SJQ=; b=nDcJIiHUS7c/JhPWTBqJSHsKNS1d/CtzVXGyCe8tzA/yBFazYfeiSIDo VAEtqe4ZZBpA0Ho77HJlOnoMuE3oxL9rfwyvZC/kAEYpIlUcnXtOok4oK teugA/1tdYoEntR/+HiAmSxvvhtWS87mP5UnJdNLf6M2uq5jlA6aaswtD Q=; IronPort-HdrOrdr: A9a23:+lwUlqkM9HscKOdb9tJEfUm4BWLpDfLD3DAbvn1ZSRFFG/Gwve rGppsm/DXzjyscX2xlpMCYNMC7MBbh3LN8/IV5B9afdSb8vm/AFuxfxK/D5xGlJCHk7O5a0s 5bAspDIfn9F0Jzg8q/wCTQKbYd6eKK+qypmuvSpk0FJWoBV4hb8wx7BgyHe3cZeCB6A/MCeK a0145sojqtfmkvdcKrBnUJdPirnaytqLvWJToPBxsq82C1/FCVwY+/NQOZ0BcYWy5Oxrln0V GtqX2c2pme X-IronPort-AV: E=Sophos;i="5.81,249,1610409600"; d="scan'208";a="97431197" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2b-4e24fd92.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 15 Mar 2021 15:00:08 +0000 Received: from EX13D19EUB003.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2b-4e24fd92.us-west-2.amazon.com (Postfix) with ESMTPS id EA365A1FC3; Mon, 15 Mar 2021 15:00:06 +0000 (UTC) Received: from u8a88181e7b2355.ant.amazon.com (10.43.160.180) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Mar 2021 15:00:00 +0000 From: Hanna Hawa To: , , CC: , , , , , , , , , , , Subject: [PATCH 0/2] Fix pinctrl-single pcs_pin_dbg_show() Date: Mon, 15 Mar 2021 16:59:42 +0200 Message-ID: <20210315145944.20412-1-hhhawa@amazon.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.180] X-ClientProxiedBy: EX13D32UWB002.ant.amazon.com (10.43.161.139) To EX13D19EUB003.ant.amazon.com (10.43.166.69) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These patches fix the pcs_pin_dbg_show() function for the scenario where a single register controls multiple pins (i.e. bits_per_mux != 0). Additionally, the common formula is moved to a separate function to allow reuse. Hanna Hawa (2): pinctrl: pinctrl-single: remove unused parameter pinctrl: pinctrl-single: fix pcs_pin_dbg_show() when bits_per_mux != 0 drivers/pinctrl/pinctrl-single.c | 74 ++++++++++++++++++++------------ 1 file changed, 47 insertions(+), 27 deletions(-) -- 2.17.1