Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4573420rwb; Mon, 21 Nov 2022 09:10:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf4phrUAeQDB1W1QWj/EXRSet3QYRNG09ziF8900q9Og5GoD33DhKw6cjjeFPrYECHOM6s77 X-Received: by 2002:a05:6402:4486:b0:461:a7e0:735c with SMTP id er6-20020a056402448600b00461a7e0735cmr17695872edb.14.1669050636735; Mon, 21 Nov 2022 09:10:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669050636; cv=none; d=google.com; s=arc-20160816; b=iJ1mpYJSFqIKZnXKQUmsQJ47bP3PcDicZXzzY1FzLeU+0Kd66SBOY3fgDWhjodrPbc 4RjWBrqQ9c9H2+/9qVDwYbqFhn1hDvAPNSsaduQbowZRgNLamyLz1zxYcYiK+dc3kxn/ jWWgFE62UB3jOkuQexnpO0GvNOyGmh51/OyzGTIDD1b+s5cMIRDu+ElGfI7KE+JrW4p5 8y7+WijawHeg4Mveo58nkvoJndXZ0ikxovgRC84ArtBFe29O3Qt7n5rg/e1liBQa3D5n wdvbtpngPYy4MT8ZNNb4wcrFT8W8FBNKw65HqXvAeeesWl4S7jlLbdxHo9upjljD8S4N 0d7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=hy/RKlzSNfGhlk59PS4+zH85oKON5hw8BPIWLCowcGU=; b=Ucg7kCy7ULckR8uqFTT99ybElGsMqlCDYLdS9r5oEhcOV1XbQt8cZBaIXdjMP3k+gZ flFS1H9GZdAwiepkeiZ/NqJA4iHvCmKcRBvd+Slt8hBK32lwFDFWYRareJZvkCcPdssk TpPf+v0K4OPhH7lD0UOjA5HznSRUiKfF0PFyCKXYff5Ybg68mfCJpYmpp+2FS/EYoPqn v46w01ajA4GWUrKV+gkPEmvHYGWY9mxleSrc2+aF7GNk3Qvf2cagsiIuVl1yVYa5uQYG Uk7kVfrog0quQikTz/AnleQo6zeV9fU82MN9p9kACcw0zcFhTSDWTW+hLL5vAJFPFr4m lWWQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz31-20020a1709077d9f00b0078d1faeb619si2370762ejc.777.2022.11.21.09.10.13; Mon, 21 Nov 2022 09:10:36 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230198AbiKURGr (ORCPT + 91 others); Mon, 21 Nov 2022 12:06:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbiKURGp (ORCPT ); Mon, 21 Nov 2022 12:06:45 -0500 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB8DCC78F2; Mon, 21 Nov 2022 09:06:43 -0800 (PST) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1oxAFl-00041n-00; Mon, 21 Nov 2022 18:06:41 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id C2930C1B8B; Mon, 21 Nov 2022 18:03:52 +0100 (CET) Date: Mon, 21 Nov 2022 18:03:52 +0100 From: Thomas Bogendoerfer To: Dmitry Torokhov Cc: Paul Cercueil , Rob Herring , Krzysztof Kozlowski , linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: DTS: CI20: fix reset line polarity of the ethernet controller Message-ID: <20221121170352.GA3200@alpha.franken.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, 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 On Fri, Nov 18, 2022 at 08:43:47AM -0800, Dmitry Torokhov wrote: > The reset line is called PWRST#, annotated as "active low" in the > binding documentation, and is driven low and then high by the driver to > reset the chip. However in device tree for CI20 board it was incorrectly > marked as "active high". Fix it. > > Because (as far as I know) the ci20.dts is always built in the kernel I > elected not to also add a quirk to gpiolib to force the polarity there. > > Fixes: db49ca38579d ("net: davicom: dm9000: switch to using gpiod API") > Reported-by: Paul Cercueil > Signed-off-by: Dmitry Torokhov > --- > arch/mips/boot/dts/ingenic/ci20.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/mips/boot/dts/ingenic/ci20.dts 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 = <50>; > ingenic,nemc-tSTRV = <100>; > > - reset-gpios = <&gpf 12 GPIO_ACTIVE_HIGH>; > + reset-gpios = <&gpf 12 GPIO_ACTIVE_LOW>; > vcc-supply = <ð0_power>; > > interrupt-parent = <&gpe>; > -- > 2.38.1.584.g0f3c55d4c2-goog applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]