Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp742325pxb; Fri, 28 Jan 2022 09:02:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2QUyEadEyMqKa7XX+Mst56vKrCDl6vRDMghfjL0oUVL/e28gqPlATToNUKXQC2OYfYFAI X-Received: by 2002:a17:90a:d58b:: with SMTP id v11mr20751804pju.100.1643389374724; Fri, 28 Jan 2022 09:02:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643389374; cv=none; d=google.com; s=arc-20160816; b=TRlH0x8jd+Bbf18NThlcstk8ICUWEg880mzILmz+qLSmHvwh+QkCeGB6P3iC9nBs3K 5OyUP+/9XzC+Sy2WrF6lzlFILMjcD02OnXL+6UwZTR27e3ZrjneWEjFZhpquTj4Q5wTN bFt/tVBGLURonydwSDGTKaVYQcmidQFHrLh+zRO6NXQ+3qKYHOSnrhpRLrk7v1iaWJAu 7S6FOkBEishObIlHBXdabxOFjD2btpiaHoAr75k+bUCEnYuX740W7j37FxuaeTn4UGy5 67QXWtk+j96g/b4Y4YkpXmv+ehyjOOZzcaiTRgeq5q3uX6x2FGVv+sWPqWnQlYfMxTUM F1+A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=qTQLwKbcOfCpl69jctdP/i+1vLMGaSRzKXBbPhXN1/I=; b=pUgum+56Db8hUWhxwfdfSnep2UQV6pUOd48DMFCqd/I7z0SJrtpk0X8W/VtD5iGdf7 egfoNeFPtcEtT8LX9mZMMXQIs4/7Su8V806yF4e5YDFCgDfxLGalVE2o0trYlaX8M5X0 1Izhz+XiL0j6G1chpg3T+opudD2Aaf0DpMR7uEMVy1u4TUq/fgxlxu7qIBFrCoNHEmsX lwVt0D5GaenjgVAPqL9HppAQ0nUY762Uhsvw7YaxQNZaBZQbmwX/an8wNorWoMpVe+zQ gnMQ9dZDdyyVvnN3tQgZmfOQxeozXRpsm8qms0zozBuXSDtb6AOJr09/e3O6itr1FGUx caMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@engleder-embedded-com.20210112.gappssmtp.com header.s=20210112 header.b="wr/ZPwI/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u3si5270283pgk.198.2022.01.28.09.02.39; Fri, 28 Jan 2022 09:02:54 -0800 (PST) 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=@engleder-embedded-com.20210112.gappssmtp.com header.s=20210112 header.b="wr/ZPwI/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245649AbiA0TqX (ORCPT + 99 others); Thu, 27 Jan 2022 14:46:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbiA0TqS (ORCPT ); Thu, 27 Jan 2022 14:46:18 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E7B5C061714 for ; Thu, 27 Jan 2022 11:46:18 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id l25so6632174wrb.13 for ; Thu, 27 Jan 2022 11:46:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=engleder-embedded-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qTQLwKbcOfCpl69jctdP/i+1vLMGaSRzKXBbPhXN1/I=; b=wr/ZPwI/XbHrzU54kyHj1ZFl8YGCpCtKSIFrmfpygsNrI84ns4t1gC5gRIeJhIi0Q6 q70CH3Mt6dQtwCEMHOclX+W8WvjUvHOiFGfUKm/0a87bPKm4kQF8qE89fn/QQNZjwgAN jLN6/o7XprMXMhq7olvCuGWoI6RYKP4u0DGm1KsWs+fg7kgAsKsBqSqUtNW17CmauFm3 6Pv1DuuXCfHPKvJm/3Zm1xBAhX5lcD2e/ho9crGXzKBYQxFzi6RjnJz5Krqg50kOOZfx Gxqv5hWvzhCTvAtxqL+2n+PR0P8i/BVDi1q0DsxcBlGSWANbcio57pyuia7+8In5OMAG KjKg== 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:mime-version :content-transfer-encoding; bh=qTQLwKbcOfCpl69jctdP/i+1vLMGaSRzKXBbPhXN1/I=; b=LxjZPhuXMjAusGA5P1fx0C3rj7ZgQmco/nEnnY7PLh4FHJ1DMX/EzBpzqjtKiL4AqM jugCcavm+6BE1vCNLn12lHytBPjRFqHt0SUDwk3t+Ccw3Y93+XnYHqjRbM0FgM9Nj91a mhu3gGobvnF8jM29CmlsmaPB9KE4neiX3rZ2XthSj4kaHRxI/42aXM6v26IeTW87GNBk Yl3qUYVNdiAZy/yBy03h7+Q4RdF/gv2NFcinJaFAc33k96NltHBGWVKTmGlgUbM3c2bO 2PEXM3NI6t1sZhikChEorxumOtcFCWA7egZJM/EY1MN3DK+E+jMBubXE7zXfhhy/rv4W OYOA== X-Gm-Message-State: AOAM5303T7CZSIbasnFUnG0UwdpiF8o7Bfed298CTo0u+A9DO++C6qwu lUSyBWm5YLF8P7b6Uq8knBAosQ== X-Received: by 2002:adf:f60f:: with SMTP id t15mr4143519wrp.33.1643312776825; Thu, 27 Jan 2022 11:46:16 -0800 (PST) Received: from hornet.engleder.at ([2001:871:23a:8366:6e3b:e5ff:fe2c:34c1]) by smtp.gmail.com with ESMTPSA id r2sm4428532wrz.99.2022.01.27.11.46.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 11:46:16 -0800 (PST) From: Gerhard Engleder To: andriy.shevchenko@linux.intel.com, linus.walleij@linaro.org, michal.simek@xilinx.com Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Gerhard Engleder Subject: [PATCH] Revert "pinctrl: zynqmp: Unify pin naming" Date: Thu, 27 Jan 2022 20:46:02 +0100 Message-Id: <20220127194602.21987-1-gerhard@engleder-embedded.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gerhard Engleder This reverts commit 54784ff24971ed5bd3f1056edce998148709d0a7. This patch changes the pin names from "MIO%d" to "MIO-%d", but all dts in arch/arm64/boot/dts/xilinx still use the old name. As a result my ZCU104 has no output on serial terminal and is not reachable over network. Signed-off-by: Gerhard Engleder --- drivers/pinctrl/pinctrl-zynqmp.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl-zynqmp.c index 42da6bd399ee..e14012209992 100644 --- a/drivers/pinctrl/pinctrl-zynqmp.c +++ b/drivers/pinctrl/pinctrl-zynqmp.c @@ -809,7 +809,6 @@ static int zynqmp_pinctrl_prepare_pin_desc(struct device *dev, unsigned int *npins) { struct pinctrl_pin_desc *pins, *pin; - char **pin_names; int ret; int i; @@ -821,14 +820,13 @@ static int zynqmp_pinctrl_prepare_pin_desc(struct device *dev, if (!pins) return -ENOMEM; - pin_names = devm_kasprintf_strarray(dev, ZYNQMP_PIN_PREFIX, *npins); - if (IS_ERR(pin_names)) - return PTR_ERR(pin_names); - for (i = 0; i < *npins; i++) { pin = &pins[i]; pin->number = i; - pin->name = pin_names[i]; + pin->name = devm_kasprintf(dev, GFP_KERNEL, "%s%d", + ZYNQMP_PIN_PREFIX, i); + if (!pin->name) + return -ENOMEM; } *zynqmp_pins = pins; -- 2.20.1