From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62FC1C4363C for ; Sun, 4 Oct 2020 10:36:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11C4E20759 for ; Sun, 4 Oct 2020 10:36:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601807814; bh=1XKGAgYBgDiQV5BgmEqaJSc/QjJjZFPpBEId7uu/dN0=; h=Subject:To:Cc:From:Date:List-ID:From; b=dF1tWD1Q4BjaHh+Oux25M9P+ovZvIjO9ZNwFQIUhARbZXz2l15PxEfDV7fGrRnvGp r/dY2a0fFwsIgnDRK3Da7+EOBJgewEV7QbdVxTwaUOz8wOcXyTqEOUidgeESzZBJfx KstoeImeyRe+dnxKuE2w1V3oICFA0lqKeJNvWSdk= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725856AbgJDKgx (ORCPT ); Sun, 4 Oct 2020 06:36:53 -0400 Received: from forward5-smtp.messagingengine.com ([66.111.4.239]:38233 "EHLO forward5-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgJDKgx (ORCPT ); Sun, 4 Oct 2020 06:36:53 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id 556ED194161B; Sun, 4 Oct 2020 06:36:52 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 04 Oct 2020 06:36:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=96lrcA XH36YcWs4F2ciHuaicSXMnlhhQkZFULuVRkwE=; b=MYrRdcNSiVB+7x1XdTkWez 3BkiA0tmuDIjoBQLhYXmKNBXnoLqpIInmKwk6HRMCMzOcU0NG9k0wLunf1qnn2qr l/6c+k+3YMCk+jLoNLRg53oAoKVw8qhXZuKpTzon3GFmLxkZf6QunmdhJFqZhkgU RZ3TdGK7YhVkSn5bWUeBy6phPmmUmSKhn0W94COF33OzOKN7DGt9EkHnompPR4gf dBB5cNmI9+A6WoM6pzmEvAxC0l3yRnJUGlchZd5OaEKlcP6u6xGv5jliNMJr6D+e HLGYreZZNIyLB7qu9hyD9IuIgEKfiwdHlt9VV91yHvT/HfEHoB+zcI6BDQYBXnxA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgedtgdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvhfffkfggtgfgsehtkeertddttd flnecuhfhrohhmpeeoghhrvghgkhhhsehlihhnuhigfhhouhhnuggrthhiohhnrdhorhhg qeenucggtffrrghtthgvrhhnpeeiteevheeuvdfhtdfgvdeiieehheefleevveehjedute evueevledujeejgfetheenucfkphepkeefrdekiedrjeegrdeigeenucevlhhushhtvghr ufhiiigvpedunecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtg homh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id D38CD3280065; Sun, 4 Oct 2020 06:36:51 -0400 (EDT) Subject: FAILED: patch "[PATCH] gpio: amd-fch: correct logic of GPIO_LINE_DIRECTION" failed to apply to 5.4-stable tree To: lists@wildgooses.com, bgolaszewski@baylibre.com Cc: From: Date: Sun, 04 Oct 2020 12:37:36 +0200 Message-ID: <160180785641213@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org The patch below does not apply to the 5.4-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From d25e8fdebdad84219b498873300b7f11dd915b88 Mon Sep 17 00:00:00 2001 From: Ed Wildgoose Date: Mon, 28 Sep 2020 10:44:52 +0100 Subject: [PATCH] gpio: amd-fch: correct logic of GPIO_LINE_DIRECTION The original commit appears to have the logic reversed in amd_fch_gpio_get_direction. Also confirmed by observing the value of "direction" in the sys tree. Signed-off-by: Ed Wildgoose Fixes: e09d168f13f0 ("gpio: AMD G-Series PCH gpio driver") Cc: stable@vger.kernel.org Signed-off-by: Bartosz Golaszewski diff --git a/drivers/gpio/gpio-amd-fch.c b/drivers/gpio/gpio-amd-fch.c index 4e44ba4d7423..2a21354ed6a0 100644 --- a/drivers/gpio/gpio-amd-fch.c +++ b/drivers/gpio/gpio-amd-fch.c @@ -92,7 +92,7 @@ static int amd_fch_gpio_get_direction(struct gpio_chip *gc, unsigned int gpio) ret = (readl_relaxed(ptr) & AMD_FCH_GPIO_FLAG_DIRECTION); spin_unlock_irqrestore(&priv->lock, flags); - return ret ? GPIO_LINE_DIRECTION_IN : GPIO_LINE_DIRECTION_OUT; + return ret ? GPIO_LINE_DIRECTION_OUT : GPIO_LINE_DIRECTION_IN; } static void amd_fch_gpio_set(struct gpio_chip *gc,