Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2031380ybe; Thu, 12 Sep 2019 03:28:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxM5tAN4OmaRz0LfMgIbhhVF/37PwknV26GBZZoQD5OwqjVsjI85l7VhxilhOSHDqSlsXYU X-Received: by 2002:a05:6402:148c:: with SMTP id e12mr41485608edv.62.1568284130744; Thu, 12 Sep 2019 03:28:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568284130; cv=none; d=google.com; s=arc-20160816; b=fyeaFF8CjN70uH3+9JSd0sfcVV60deMx8rlbYnamLzK0VcBeY6aUdtuozKdXIkxwd1 F7ZXNzBRma4tkJSNG5nG7oqeyA5DuyQ3rvqMzAp8We/UE0T/bq6dFqoLVACL/IDadbrg WvyRlAKn7zgDo/iC7Gc5xGjOmHN/XT5SjyQKyPT/kjMnOxeCKA8BvZgOisXG7y0oQYal 2UzitW1oNn9jP09namKaB8BdeEZgX/G3KKxAbKka+MqVF+GheA4UipSY0BAjOT7O9TJt nB+Uz1xHqGVpneYasm4+qJX+doD3oQJTwQWSXXHtTkw6HbAsjDRL56cM90djAPTSXIrU +Wdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=hH6krjDyM1ef7cBjth9GvNBMbTUI9b+39ETpeM1V4vs=; b=qJ1A6821/TXllwBvYkR3wBBO8B/jszpy+P3U97kMSNxb3I82r9qbyax6xF6aQYgZF6 tnL2PA8bIMyksF+mHCWWUZHNZzUjIXgZ9+uyFUkbJo+BHmeMDcnKBxxv5MUUb6b7KrfD jdgJr/0pzXZxUNenbbdlvJ5LAeN5drEMBnZXzoXMxZkS+GLQFjFXlwIxIpNaweupVZJ/ 9zSgqgCdh7UFvNU4OM8D1wgNf+RjPDm+QGhX6En+XXni7uwZzOctSNqRFX2uOt6mD4Ur +o1My6hr0HIF4K7M1IePNyfGv5IXF3M2TKJQCc6SjydajudTzQrB7K0fPQlamotu6YOj tq8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm3 header.b=NHMNQMg+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=SXH9K8WE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n22si8261049edq.33.2019.09.12.03.28.26; Thu, 12 Sep 2019 03:28:50 -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=@aj.id.au header.s=fm3 header.b=NHMNQMg+; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=SXH9K8WE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731057AbfILK0b (ORCPT + 99 others); Thu, 12 Sep 2019 06:26:31 -0400 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:36005 "EHLO out5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730872AbfILK0b (ORCPT ); Thu, 12 Sep 2019 06:26:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CDAA322245; Thu, 12 Sep 2019 06:26:27 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Thu, 12 Sep 2019 06:26:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=hH6krjDyM1ef7cBjth9GvNBMbTUI9b+ 39ETpeM1V4vs=; b=NHMNQMg+HFPouEvMQ00sKE/W0BsIAYFMCmqPDrTUQO6EqlR 0wh/LUFfCkK9s3vYt2qjyKQvYd4tFrh0P/t00fYORmhhxbXQqQj4bzkZ2uaWfPk+ n3qrYCOHYv30kvYh+P+myvR4uJg/mKyMOd1Ay0Iz1wtq0QXaArzQieqCrNvwU2qs 1bTfGjrhRV7DSto1+GrQ0gvyJyzfgBUEaRDfKugJ23ZYqC71h3fgj6CKARc/ZGw/ 4Ml53ei0IbK/SWxVNT4+jV2iUfiCOTU2NTrmow3LFuPGtUxQZa0Z5amAV6dj1w1s MA10yj0+f/TMChNfXg04bVJXrWeX52EQDpSWS6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=hH6krj DyM1ef7cBjth9GvNBMbTUI9b+39ETpeM1V4vs=; b=SXH9K8WEkJux2WUVSDI78n AOj3buJkf8DgR3jYi7VHNH2a3c4uqEsc/dGKY1uknNvnrgJfp6dJZk7gWVHwC9zi S1SpNPI6ChUtzJEojbDYRGZP/EL2sMlMWX4KHJygDIapXlMsKS+9xPLdKbPhImRg S4BoBRe+i1MpHIubusilRTqr5GB6nAVmchSAQItbTYxHHN5/67E/her2lw18oQiD 8SxcH9CoFvKxXBcCBNHbzGTm7WltTmzg1kPQrxxAJxZp/F8v+/I6XLNTqRNck2I8 kN6nri4R6vUf4Pu2nWEfiH23TIZDHwTK/CofWJ58x/5u9IaUZgODEQWsTngifRPA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrtdehgddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucfrrghrrg hmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruhenucevlhhushhtvghr ufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id DB132E00A9; Thu, 12 Sep 2019 06:26:26 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-237-gf35468d-fmstable-20190912v1 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20190829071738.2523-1-andrew@aj.id.au> Date: Thu, 12 Sep 2019 19:56:05 +0930 From: "Andrew Jeffery" To: "Linus Walleij" Cc: "open list:GPIO SUBSYSTEM" , "Joel Stanley" , linux-aspeed , "OpenBMC Maillist" , "Linux ARM" , "linux-kernel@vger.kernel.org" , "John Wang" Subject: =?UTF-8?Q?Re:_[PATCH_pinctrl/fixes]_pinctrl:_aspeed:_Fix_spurious_mux_fa?= =?UTF-8?Q?ilures_on_the_AST2500?= Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Sep 2019, at 17:53, Linus Walleij wrote: > 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! Thanks! Hoping to avoid such late fixes in the future... Andrew