Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5636032pxb; Thu, 20 Jan 2022 01:10:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJywieENSVLA8OZLH1FGuWo7WvdKtdBciqcKpNhTENaDu2hoHZXZ0UmM5mOKoiYVgTrH0gcz X-Received: by 2002:a17:902:8ec7:b0:149:8d21:3e49 with SMTP id x7-20020a1709028ec700b001498d213e49mr36989409plo.111.1642669842833; Thu, 20 Jan 2022 01:10:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642669842; cv=none; d=google.com; s=arc-20160816; b=Td2/ZI76++aCzD8lOrDwzeEmzlSHujzuF83fZ6RccpdkDNIetfGeCcsQ4RPylHOtX6 ywg75KDbI44FofBF1ShlkbEMYwLgtRVV/R7Cf3/U50bfA/I1wiasPJOG43uyhYk6Es8o KAZ5UZj3KzPUggJpGYszv16+J712B59i1+X5Iv4AYLzvtxmG5gUXttgQoQjOwfxr3AY0 a370WZPJLVNGrGXCUGx2cMoAo80E5XnyyHf58RuG9o2wpbtN5myq4B6UjRHrl3g7lQWr TYNJnYRRnJHoomotoA4AHJnsJ7zSzNYINu9KqcAqI6CPD6IYPoPy70t22lJ6oajOfUMR LpoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=6Y1Ova7Y1eOHP74TgEiFjPPk+lw3tUNdNdvPlgpu9No=; b=ZEJLpgxGL037/4wKJw8fAUVwm44ZUOGJMIvzqGb/Z1jJAtJj9U0Yni1x1vKwtqL9bk FlqNJvw4multixHPepxSjGzOoYqHJEVW5G8hGMhRayqjhZa0J3UUMUdK4UUKpB7lv8y4 40ffht7C9WSwMJtgfGBfH0cfNb9QPQfnFFiOIggWB9s1mIwJo8kKfCXaQlMows5jyfyp 1ystz9bY5eIh0pyODrOvE03cPRSzAoSwgFrROKYogxt47ldBU2OGViyULmV39Zf5N3TE 8l8eYQa35Sj66I/B/DEyqSZpCssyF9+bvKw3HyLfRQZUZCug++Ct4oEFnxUZmdSWLCuM 9JnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RtjWIbAt; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si2416580plb.54.2022.01.20.01.10.31; Thu, 20 Jan 2022 01:10:42 -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=@gmail.com header.s=20210112 header.b=RtjWIbAt; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240448AbiARMu5 (ORCPT + 99 others); Tue, 18 Jan 2022 07:50:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233393AbiARMu5 (ORCPT ); Tue, 18 Jan 2022 07:50:57 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9BDDC061574; Tue, 18 Jan 2022 04:50:56 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id az27-20020a05600c601b00b0034d2956eb04so4698058wmb.5; Tue, 18 Jan 2022 04:50:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=6Y1Ova7Y1eOHP74TgEiFjPPk+lw3tUNdNdvPlgpu9No=; b=RtjWIbAtRny80mz/OpmyKJ9FC9+6jLFxBi1LOeq1D08R8ox/YYC9dIhi/RR+vuuY+0 xBPqA0HJKsRhn0HRiCMJcmp3K5gneAiuh7BbFne9+7Q6Svu0xRSu2hUSRlTUwj9SJ/ro ntlzb6FK7uGuObaeT1zn1cyF+gKFOKp6O5bm2U9tst+uabLJ0R5WLvwI5Vip9Qa2/tpl quwnGyWi0M/39GvFJV0ehHCLRNbh+EshK//WyZDGqMkh/9yItgsfkvaqvkkhq0sNl8lw ZoKlOxX7jHZhSgm2AEFLfmQiXdqakvNIjZWcGloCn8SUn8q0Cc6MeWaSFer36O7U9bRt GTaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=6Y1Ova7Y1eOHP74TgEiFjPPk+lw3tUNdNdvPlgpu9No=; b=ZtLX1dG/5cgxlWazyd2ZuzK/GrtQZzsOJ3rVf8IvQV+F9y1hvIqFWh5IntyUug8/76 9s6IwF6I5UVYDRXpef+ZSynumALs5S/868ryBLyc8tvjOcjuHWs34alMOr3IY5DQzTB/ nJojLSTtaoU1LXPj7UJaGNbBPbZrJUOIZFpdHXuhkIZKm3IQ6V+YonGk2GhagRuG8Dx4 AZl5qJaRZkPT2CBFt9ZyACRv4CzSOBfbclR9WR5zxKjvmWSfy7SM3sUcIz7gBriFSo1f wdWQOiiy8RJPMlJteOzCsV0Q4XThz/DhN8D7YToT4v6wvMs2ZseVByfhQIZVblPy1wj4 3aag== X-Gm-Message-State: AOAM530cAMa2K4E7vftP1trS8VYVhH37U0niZlcBmIboqBe4ODRyeUzt wDBDzfizWsND7VLh/DyF9tI= X-Received: by 2002:a05:600c:3488:: with SMTP id a8mr24525180wmq.131.1642510255432; Tue, 18 Jan 2022 04:50:55 -0800 (PST) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id o8sm10636835wry.112.2022.01.18.04.50.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Jan 2022 04:50:55 -0800 (PST) Date: Tue, 18 Jan 2022 13:50:52 +0100 From: Corentin Labbe To: linus.walleij@linaro.org, mripard@kernel.org, wens@csie.org, jernej.skrabec@gmail.com, hverkuil-cisco@xs4all.nl Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, zhangn1985@gmail.com Subject: [BUG] pinctrl: reg-fixed-voltage usb0-vbus: error -EINVAL: can't get GPIO Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello As reported on old googlegroup sunxi mainling list, on linux-next-20220118, USB storage fail to bring up on orangepiPC. We can see some error logs in dmesg: reg-fixed-voltage usb0-vbus: error -EINVAL: can't get GPIO reg-fixed-voltage: probe of usb0-vbus failed with error -22 This is bisected to: 8df89a7cbc63c7598c00611ad17b67e8d5b4fad3 pinctrl-sunxi: don't call pinctrl_gpio_direction() Reverting this commit lead to a working USB storage being setuped. Regards