Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1921032ybe; Thu, 12 Sep 2019 01:28:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7/8/0Xa5WXNrf025jrwvUzwuT6Vyyjfj3mbGALuUroNWPDGA7fpolkj69clz3PocDM6Sb X-Received: by 2002:a17:906:1ed1:: with SMTP id m17mr16197307ejj.82.1568276903771; Thu, 12 Sep 2019 01:28:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568276903; cv=none; d=google.com; s=arc-20160816; b=cyY4ieMowLtxcNwXB/z9nWA7pQPAnT6Hz5Q57LtI9VPXTomfPg6zQ+6w++6GveNmDq ClMgaui9R+PvEfcFStnwFO8oUh1MCaAkiBCdPS9+kKqyDMY7imeItkEzFLR1AyA9mp0N StrVPPM5lQYTwhjNhcs28OSp3UcgQNFSx2kl2BAC1kpWqrjDas+HuAr9KbE69jFOzrt0 gmVGctHWJP2ZnBm829iesWBQU9OPFGaV5UX2L4F7togtgQwQNlfIf3I7LD823epXIo7V o5YE56QZEn93ReSLJtksTKX6Yj8TU/1Wqp3+6zRHm36ncMeuSNpmw4R4lDoV0xlvXp1d IzQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=w49o6bLlxe70T8dk8RcKOKQ6ege87Mzu24iLNFJSi6U=; b=WPVVgf7S+FX12dO2FZrs4FEXVjbdL7NUFJfiR0IariPCdZ4H0jEI5+GLxQPosjyfma aXSNOX/4nlbztc/DucLaXybALuz0sT9a6BdDJrzw4/+qo9biSxwwM2bwj1We/MAg4SPr /CXBsUHf8eMqlcczNvYIImKLuOZTewAm8LZNj3Gc5nJMLwdvcA0c+Wq/Bz2OUrkE800p n02P9whVr3s6lQCtjGUTEYX2YIhwkRQeVxsLJ1HMtD7it8LktuXDKDyeve++N6y1RaKi i2fzJITRkjRJ6rsmqcudsKoqfZb9OiMHvZcL/ds6H+C33f4u5Q4qV5/s3foyATmyeo+T Yv8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r+RtCQ+Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si12076714eju.47.2019.09.12.01.28.00; Thu, 12 Sep 2019 01:28:23 -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; dkim=pass header.i=@linaro.org header.s=google header.b=r+RtCQ+Q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730125AbfILIYK (ORCPT + 99 others); Thu, 12 Sep 2019 04:24:10 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:47025 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbfILIYJ (ORCPT ); Thu, 12 Sep 2019 04:24:09 -0400 Received: by mail-lj1-f196.google.com with SMTP id e17so22698049ljf.13 for ; Thu, 12 Sep 2019 01:24:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w49o6bLlxe70T8dk8RcKOKQ6ege87Mzu24iLNFJSi6U=; b=r+RtCQ+QSzYgod49oCaqYCkPTh5kZ0t0Sd0c4Z0+s2eYFento9RBH+cJ6oV9udoLxV UAOH78eysBB4GLzpWHG+n3DdyMpTG7bjHG3OJeNy+YTbh7rBITWWJ8UHrdYbqbOvjhKU wBTdN/oCGKDqPSMGUinbCLXh34ir+lHen6smdbyfGfv6TgiY+CpSyJIftKzl59psWfws otcFJcFnELrgNmLbcSAaY3WNMrDE3O2jMbPXOMUIuJikgcaKm6OPJYCvJZrtz4War3NN ajFA0ei1LXIJFhOzIOd53cSYdpBzThBf/siT6WVcfCVmFGAVjjLSKvEWboTgzARw8sLQ cIEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w49o6bLlxe70T8dk8RcKOKQ6ege87Mzu24iLNFJSi6U=; b=N2Usz9QV0voN3oRQOpLjrAdDYTES75BmhdB/qI7uQA0hZ+/IYs1N2oDVYWZDzPYOWz QDwh5UogTZRLJedY8fFtZKJ0wGk6Ujin9/J9K40sjHDVOHmRkt4S7eD9Fg0ldPeb2DTX dm+z7VLz3/+VCanH4gBM/0ms8SUTZE8FwGd5MLefVYtt8bRzjbwz8JGOroJQetOjXKmA s9GON5I7cTYsM9BPuloKERynhSWdcuE6sc8xAunFU2h0yCyIwt4x23Hs/JnycQE6QbAG blPRAVbeim7wyxAXptdx2v7D8TL8R4lqP9hB7DzQoNLz9UNrnefsmwuTtFS3Qg+cIeo+ ixUQ== X-Gm-Message-State: APjAAAXX89a6CBRDridJ0fAm0moyKZpcEcWO1YqC7zc+h5hzPw1dFPOx 1GWFErffE21NyD4Bt4XNR4Dqmtkq/4Zqit9mTU8bDg== X-Received: by 2002:a05:651c:1108:: with SMTP id d8mr17993431ljo.180.1568276647071; Thu, 12 Sep 2019 01:24:07 -0700 (PDT) MIME-Version: 1.0 References: <20190829071738.2523-1-andrew@aj.id.au> In-Reply-To: <20190829071738.2523-1-andrew@aj.id.au> From: Linus Walleij Date: Thu, 12 Sep 2019 09:23:55 +0100 Message-ID: Subject: Re: [PATCH pinctrl/fixes] pinctrl: aspeed: Fix spurious mux failures on the AST2500 To: Andrew Jeffery Cc: "open list:GPIO SUBSYSTEM" , Joel Stanley , linux-aspeed , OpenBMC Maillist , Linux ARM , "linux-kernel@vger.kernel.org" , John Wang Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 8:17 AM Andrew Jeffery wrote: > Commit 674fa8daa8c9 ("pinctrl: aspeed-g5: Delay acquisition of regmaps") > was determined to be a partial fix to the problem of acquiring the LPC > Host Controller and GFX regmaps: The AST2500 pin controller may need to > fetch syscon regmaps during expression evaluation as well as when > setting mux state. For example, this case is hit by attempting to export > pins exposing the LPC Host Controller as GPIOs. > > An optional eval() hook is added to the Aspeed pinmux operation struct > and called from aspeed_sig_expr_eval() if the pointer is set by the > SoC-specific driver. This enables the AST2500 to perform the custom > action of acquiring its regmap dependencies as required. > > John Wang tested the fix on an Inspur FP5280G2 machine (AST2500-based) > where the issue was found, and I've booted the fix on Witherspoon > (AST2500) and Palmetto (AST2400) machines, and poked at relevant pins > under QEMU by forcing mux configurations via devmem before exporting > GPIOs to exercise the driver. > > Fixes: 7d29ed88acbb ("pinctrl: aspeed: Read and write bits in LPC and GFX controllers") > Fixes: 674fa8daa8c9 ("pinctrl: aspeed-g5: Delay acquisition of regmaps") > Reported-by: John Wang > Tested-by: John Wang > Signed-off-by: Andrew Jeffery Applied for fixes already yesterday! Yours, Linus Walleij