Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752843AbcC3MqQ (ORCPT ); Wed, 30 Mar 2016 08:46:16 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:33717 "EHLO mail-io0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751217AbcC3MqO convert rfc822-to-8bit (ORCPT ); Wed, 30 Mar 2016 08:46:14 -0400 MIME-Version: 1.0 In-Reply-To: <20160330120644.GM20367@ibawizard.net> References: <20160330120644.GM20367@ibawizard.net> Date: Wed, 30 Mar 2016 09:45:21 -0300 Message-ID: Subject: Re: [PATCH] i.MX6 PCIe: Fix imx6_pcie_deassert_core_reset() polarity From: Fabio Estevam To: =?UTF-8?Q?Petr_=C5=A0tetiar?= Cc: =?UTF-8?Q?Krzysztof_Ha=C5=82asa?= , Marcel Ziswiler , "linux-pci@vger.kernel.org" , Richard Zhu , linux-kernel , Stefan Agner , Bjorn Helgaas , "linux-arm-kernel@lists.infradead.org" , Lucas Stach Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 800 Lines: 19 On Wed, Mar 30, 2016 at 9:06 AM, Petr Štetiar wrote: > I'm really puzzled by this :-) With your patch applied I get following on > Toradex Apalis modules: > > DTS: reset-gpio = <&gpio1 28 GPIO_ACTIVE_LOW>; > dmesg: imx6q-pcie 1ffc000.pcie: phy link never came up > gpio: gpio-28 ( |reset ) out hi > pin voltage: 0V > > DTS: reset-gpio = <&gpio1 28 GPIO_ACTIVE_HIGH>; > dmesg: ath9k 0000:01:00.0: enabling device (0140 -> 0142) > gpio: gpio-28 ( |reset ) out lo > pin voltage: 3V3 > > So Toradex Apalis is actually active-high? Thanks. Yes, exactly. That's why you need to introduce a new property to handle the active-high case, so that old dtb's are not broken.