Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp920541imj; Sat, 9 Feb 2019 10:49:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IadSeV0ms/QCdAc+L0/bGeB3OY/UXT8UCLCegWgpQSHzRDEDRFrKLXXtWv/O/Hs6APha0V1 X-Received: by 2002:a17:902:8686:: with SMTP id g6mr27245541plo.149.1549738150331; Sat, 09 Feb 2019 10:49:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549738150; cv=none; d=google.com; s=arc-20160816; b=hpXwMVgsficazMyT3ZdG51ueA9E0MoUwXz/1gth31AlxMsSSK7QYJGFAmFHX2/cP3Y lRHmIrYQ1Y9ncJP+jdkzJ2yQsumcCb3nrgBVOubQD7qtkIp7vPUIU9Zgxc2Os3aH30bU J6MhI6+hDTzitPKEA1pqI4Ft6WvsutnS8L0/rVIt2mydFCStLgqXFUbZTIBFl/S2RBI0 cpUJtgEu8tef6gT5Hhgu0vuO69iDoqdjcISl0qcDIk10L2RBy5GRJV5iVlkFKGiH5e4w SSa1pAvpPN7miN2alKKo6wQ3xKASqan9Fh4Cw8V/1YtlfVnhT2IF/3Ddls816s7kpU7p vQ7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0FDA1EcRSKdSiTf+HPqNnxpXACQKykQdE2aoBOUCfQs=; b=OffPQMqch3LI8awKZnRsmBLYeHcxng8VZ8cIuVTzraWFxzrV6aY7r+YOapf7qEr7IA TrY0Ds94Q5rboDasXlD8Fe0vj6VdyNHU/Lnurrrw+aBcM0wDJNQyleQWTPMAFOA2k/rS ZErTcQqzmlf6YAzcfTxgsRHhvSEF0gUusvyEAwF7Ib6C0HqRB+i4vYzBhp4YPQqJTA5r FapNX9h9cFiHgdeZbGzTTQ66rFURCEpwqqrj+SoyIb99X9nSlSZdN8vxRrxAHFur3j53 D3omGNdxOgQF8HO9rGnFc2A09fmH/x9LaE5DjAM+Mny3SFLesgBCTMAuoWFnpiyMJahX DEJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VcYLovEk; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9si587790plc.40.2019.02.09.10.48.54; Sat, 09 Feb 2019 10:49:10 -0800 (PST) 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=@kernel.org header.s=default header.b=VcYLovEk; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727656AbfBISsW (ORCPT + 99 others); Sat, 9 Feb 2019 13:48:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:33138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727648AbfBISsU (ORCPT ); Sat, 9 Feb 2019 13:48:20 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5B76721929; Sat, 9 Feb 2019 18:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549738099; bh=SQbUFCd+lKqKv/YYgzC/1cplw2hLs+9BnMUw0YhjiOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VcYLovEk5zcuPRJCJhl5XZk1krRvRPbIP71JP2wj1YYgcpH+hoLvmwbLkQcurRLZe 2eUH1zMEi2sBttl8NaJPppUfgdTaRrFnUYUEnpjtS9K1U2g9qKZfI4nt8KLVqTPeoI zlozKtS3wriF9BgDt6qDIMqs+y+k+zT/hGwMBaSo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Walleij , Jamie Lentin , Guenter Roeck , Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Julien D'Ascenzio , Sasha Levin , devicetree@vger.kernel.org Subject: [PATCH AUTOSEL 4.20 33/42] ARM: dts: kirkwood: Fix polarity of GPIO fan lines Date: Sat, 9 Feb 2019 13:47:25 -0500 Message-Id: <20190209184734.125935-33-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190209184734.125935-1-sashal@kernel.org> References: <20190209184734.125935-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Walleij [ Upstream commit b5f034845e70916fd33e172fad5ad530a29c10ab ] These two lines are active high, not active low. The bug was found when we changed the kernel to respect the polarity defined in the device tree. Fixes: 1b90e06b1429 ("ARM: kirkwood: Use devicetree to define DNS-32[05] fan") Cc: Jamie Lentin Cc: Guenter Roeck Cc: Jason Cooper Cc: Andrew Lunn Cc: Gregory Clement Cc: Sebastian Hesselbarth Cc: Julien D'Ascenzio Reviewed-by: Andrew Lunn Tested-by: Jamie Lentin Reported-by: Julien D'Ascenzio Tested-by: Julien D'Ascenzio Signed-off-by: Linus Walleij Signed-off-by: Gregory CLEMENT Signed-off-by: Sasha Levin --- arch/arm/boot/dts/kirkwood-dnskw.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/kirkwood-dnskw.dtsi b/arch/arm/boot/dts/kirkwood-dnskw.dtsi index cbaf06f2f78e..eb917462b219 100644 --- a/arch/arm/boot/dts/kirkwood-dnskw.dtsi +++ b/arch/arm/boot/dts/kirkwood-dnskw.dtsi @@ -36,8 +36,8 @@ compatible = "gpio-fan"; pinctrl-0 = <&pmx_fan_high_speed &pmx_fan_low_speed>; pinctrl-names = "default"; - gpios = <&gpio1 14 GPIO_ACTIVE_LOW - &gpio1 13 GPIO_ACTIVE_LOW>; + gpios = <&gpio1 14 GPIO_ACTIVE_HIGH + &gpio1 13 GPIO_ACTIVE_HIGH>; gpio-fan,speed-map = <0 0 3000 1 6000 2>; -- 2.19.1