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=-9.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 CF830C282C4 for ; Sat, 9 Feb 2019 18:50:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 96C2321916 for ; Sat, 9 Feb 2019 18:50:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549738237; bh=H2I9j7Z9RZpoUBHcjn2d9ThQxaoQidRr26MSQKPfPgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=fvj+o8FVjU0OMv6E27aayID1THuHwS+QcB9tfV7mlCSQTpGDWe4cz3N6qdKZtTCsg kVZW0/rP+gJZ5EKD5RJIRUadUeebFTNPk3fSiHk9+2XBo1iWp7KTGvNEGF8j/KwIyB 6z1rJfkDZAfTFCEI14fYzywLRtiQZ0gSb3W91o8U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728369AbfBISuU (ORCPT ); Sat, 9 Feb 2019 13:50:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:37010 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728330AbfBISuS (ORCPT ); Sat, 9 Feb 2019 13:50:18 -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 919062196E; Sat, 9 Feb 2019 18:50:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549738217; bh=H2I9j7Z9RZpoUBHcjn2d9ThQxaoQidRr26MSQKPfPgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PZTFq39onUzKWc67+AibdawmNdRDSVdHnuSpnxOJkvH5g8oSr0mbeM8VRN35Z1YJe Jwa7mv3ZdfM+F1I/LIJPHT0qxPtfjBTpmijnEbUsOUvxyo9iKNaC1i4enMOMR7n6uj 0k3Kmtq+T0E+uurIGOQXFe2jVOEiLDPFbX+ndvIQ= 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 3.18 2/4] ARM: dts: kirkwood: Fix polarity of GPIO fan lines Date: Sat, 9 Feb 2019 13:50:12 -0500 Message-Id: <20190209185014.127264-2-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190209185014.127264-1-sashal@kernel.org> References: <20190209185014.127264-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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 113dcf056dcf..1b2dacfa6132 100644 --- a/arch/arm/boot/dts/kirkwood-dnskw.dtsi +++ b/arch/arm/boot/dts/kirkwood-dnskw.dtsi @@ -35,8 +35,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