Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp851468rwb; Fri, 18 Nov 2022 09:04:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gBv5oalM+to3jCHnAaIaBCSDQB5vjxIaECu/v30B8MPGi5XdCNB9s8zBFU38hlGtQyYI/ X-Received: by 2002:a17:902:ce0e:b0:172:86a2:8e68 with SMTP id k14-20020a170902ce0e00b0017286a28e68mr479320plg.27.1668791078723; Fri, 18 Nov 2022 09:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668791078; cv=none; d=google.com; s=arc-20160816; b=RWF/njiDsCBUPhqLnhYkY/469tO0hOdZg/hpYIeekAonSV6DBYzbfow9KXAT9dM4DG rSeopRiFLxPqOR+RApUDw+bfjOC9xSByk9qKh6KeZI0dRRuNYBzkjkBXFMB0saf/GTtT OafsfTWh9DQfX93nA4EFOJo/QYIsvNqoXVROQ3Mizb9Br8KGv1N5wOCVmgb85FpHIvOl HbIn03FgMm47Y3jyLvtyFtk9DXsh+sNw7nGydCm5WH1zEsHDg9o2JJRkcSGqfZvrO+pO iLWpShE9G1eCu9oLGVCK/rAL8xODKPkU1viYZmBQN/+BzktHiQCgwCVzg5ZJrxl/Y8Z5 /BiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=5nuvc8xs/tHY7tFt1K4QIyCzdBKfQ5FijC8GcRmpSk8=; b=PkOUqgnYUBVirl0wqngKH0OLFXbRDEdraqZEFFenHeE8Q9HjuKlzJOcQ8Tzmf7WraY 85ypYeDEjzRRQ7PHT/3hiyUdLjL4u9jPAhJlzFoB/NzS89fYwxI6vynE0Oqbjw5UcbEV ga66yr9N2GkisvAt29eUI1WpL1kRdcx4NN7yuJbyCQplkwWGFr0oiRfM0cRk1TZPwt9Q FVNQApHp7E9eEi2MheEj2SnRghDchxfSUs8bpKIMgsxNzTRTLSsN8Ait1F299uPI9Ekl sll+AfGk7f+zQ8Q+26O2VGIJmqeW7Nn+IKtK+aW00V36mPPXIhybPkYyxpgMFEhjPyrU peoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=sp3ZFBBa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a170902c94e00b0017808c0aa8bsi4923982pla.115.2022.11.18.09.04.16; Fri, 18 Nov 2022 09:04:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=sp3ZFBBa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242343AbiKRQvP (ORCPT + 90 others); Fri, 18 Nov 2022 11:51:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242337AbiKRQvM (ORCPT ); Fri, 18 Nov 2022 11:51:12 -0500 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7E2942F3; Fri, 18 Nov 2022 08:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1668790269; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5nuvc8xs/tHY7tFt1K4QIyCzdBKfQ5FijC8GcRmpSk8=; b=sp3ZFBBa9zl7myNNfiumVeMAKCSAyZt5xTG2Hz1aGT3V3p6UOmfodKg7HShLsGtlih7YIT XnSUAcgkDbm9NJaaZKHcPMWwtx0mz06qBeiKXcvfabvtWoB0gtysLbd1jG2AGy9T2VCrfA Y+NmDgs2qXQfcNPHU8UN7pFwqhM8LLQ= Date: Fri, 18 Nov 2022 16:51:00 +0000 From: Paul Cercueil Subject: Re: [PATCH] MIPS: DTS: CI20: fix reset line polarity of the ethernet controller To: Dmitry Torokhov Cc: Rob Herring , Krzysztof Kozlowski , Thomas Bogendoerfer , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: <0TYJLR.I2HAAXVSWQ2D@crapouillou.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, Le ven. 18 nov. 2022 =E0 08:43:47 -0800, Dmitry Torokhov=20 a =E9crit : > The reset line is called PWRST#, annotated as "active low" in the > binding documentation, and is driven low and then high by the driver=20 > to > reset the chip. However in device tree for CI20 board it was=20 > incorrectly > marked as "active high". Fix it. >=20 > Because (as far as I know) the ci20.dts is always built in the kernel=20 > I > elected not to also add a quirk to gpiolib to force the polarity=20 > there. >=20 > Fixes: db49ca38579d ("net: davicom: dm9000: switch to using gpiod=20 > API") > Reported-by: Paul Cercueil > Signed-off-by: Dmitry Torokhov Acked-by: Paul Cercueil Thanks. Cheers, -Paul > --- > arch/mips/boot/dts/ingenic/ci20.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/arch/mips/boot/dts/ingenic/ci20.dts=20 > b/arch/mips/boot/dts/ingenic/ci20.dts > index 37c46720c719..f38c39572a9e 100644 > --- a/arch/mips/boot/dts/ingenic/ci20.dts > +++ b/arch/mips/boot/dts/ingenic/ci20.dts > @@ -438,7 +438,7 @@ dm9000@6 { > ingenic,nemc-tAW =3D <50>; > ingenic,nemc-tSTRV =3D <100>; >=20 > - reset-gpios =3D <&gpf 12 GPIO_ACTIVE_HIGH>; > + reset-gpios =3D <&gpf 12 GPIO_ACTIVE_LOW>; > vcc-supply =3D <ð0_power>; >=20 > interrupt-parent =3D <&gpe>; > -- > 2.38.1.584.g0f3c55d4c2-goog >=20 >=20 > -- > Dmitry