Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17928983ybl; Thu, 2 Jan 2020 15:01:24 -0800 (PST) X-Google-Smtp-Source: APXvYqyGeKHtoODBg/n4yMH/92x0SG7cUh5k4/DbA7+G/aEj5ph768FscuQJ5XM1EwkohPM3jXTO X-Received: by 2002:a9d:7e8a:: with SMTP id m10mr90271812otp.27.1578006084626; Thu, 02 Jan 2020 15:01:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578006084; cv=none; d=google.com; s=arc-20160816; b=OWhHgvZecMFyQ2aOrS9TKzZ+CJZC3I7NYCsLpqGGxz/9nFOaRPwoOldvIA3qySD79N Ywsgblp5iX1heWKuy/FSqImROT/TQcrDzueTK7vE6z6O2iE6RKOYo00tzqnRm6sOFUAO njKCYE14PLl9uxV/J7x+Tr+RdszRhiWhoiTZ8NOHdWtaW2bKR3JTusZRkh2UOEKBrBYB JiThjcOC7w+dmKXcp6tglA5YmBHbKEJ6n136T8d1ZShX9Ne3NFEyph+z+xy1qBH+9+nk ZdpQmT/isR4VtZKfHvdjrkvPHLTmIDa7WWfWl3TwwdE5pxLLGy8tpTAQgjQaNq8M+EHg q0NA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=as/e8XGOKGhF8EvblCOWYbZJpHKUt2M7il7EM+HHiFk=; b=fZrXZ9DYhjkBwhHHp7Xzn1Uy2/byYUwOhc50WJd466ZR2pMGwnBUaYngDlRZddNMmj FeaH8eDpU3EkzqzoSB5OyQQPeMUI251vaL4i7IhUhBbJwV9QIvn6bsaBg78XRy3tumPZ 3C8aSulB8Sjv3dpMyIH62fs2NUXTn2twioFtpcZYE6vSqQkBhs5Ax4lCJn1KcDWEDr1u TEfjd1O3OJHYzuo/+DYNEHLYy/GVLWaCHqJOv4T6RkQ4w0OqnHbMuxki1vF2V92w/LfK 5RtEnDkbot8vi/KN94POW0VBeLTGE7Hv+DRAAxQxRuicurH69bXUwMYHtrp8v2OmIZJ0 f7YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xJTSd7pa; 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 44si30200494otu.77.2020.01.02.15.01.13; Thu, 02 Jan 2020 15:01:24 -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=xJTSd7pa; 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 S1727962AbgABWOr (ORCPT + 99 others); Thu, 2 Jan 2020 17:14:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:55166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbgABWOp (ORCPT ); Thu, 2 Jan 2020 17:14:45 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B4A722314; Thu, 2 Jan 2020 22:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003285; bh=eFSrbM0YLx7ixvZ4o7BDvCfWiEf9hFG1YCjCboxeDWc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xJTSd7pam8Gjs6SNl3qIVs6kh7eS13xEdDagSX2P0la7RcLmVsfiL3k9VRly3pO9Y 7K0UTaVN/F0Kheq494JyndbyFIqqlTQAmuQakT0WtVQ8BE2PBDR3Ls3kUWGKXO0ZB0 HQ1ehDcui9/IgMN/Z8tDQqvHTGrkFmYYamWd/lTg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Linus Walleij , Sasha Levin Subject: [PATCH 5.4 097/191] gpio/mpc8xxx: fix qoriq GPIO reading Date: Thu, 2 Jan 2020 23:06:19 +0100 Message-Id: <20200102215840.304056588@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Russell King [ Upstream commit 787b64a43f7acacf8099329ea08872e663f1e74f ] Qoriq requires the IBE register to be set to enable GPIO inputs to be read. Set it. Signed-off-by: Russell King Link: https://lore.kernel.org/r/E1iX3HC-00069N-0T@rmk-PC.armlinux.org.uk Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/gpio/gpio-mpc8xxx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpio/gpio-mpc8xxx.c b/drivers/gpio/gpio-mpc8xxx.c index 16a47de29c94..b863421ae730 100644 --- a/drivers/gpio/gpio-mpc8xxx.c +++ b/drivers/gpio/gpio-mpc8xxx.c @@ -386,6 +386,9 @@ static int mpc8xxx_probe(struct platform_device *pdev) gc->to_irq = mpc8xxx_gpio_to_irq; + if (of_device_is_compatible(np, "fsl,qoriq-gpio")) + gc->write_reg(mpc8xxx_gc->regs + GPIO_IBE, 0xffffffff); + ret = gpiochip_add_data(gc, mpc8xxx_gc); if (ret) { pr_err("%pOF: GPIO chip registration failed with status %d\n", -- 2.20.1