Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B24BBC05027 for ; Wed, 1 Feb 2023 12:42:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230208AbjBAMmq (ORCPT ); Wed, 1 Feb 2023 07:42:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232034AbjBAMmo (ORCPT ); Wed, 1 Feb 2023 07:42:44 -0500 Received: from proxima.lasnet.de (proxima.lasnet.de [IPv6:2a01:4f8:121:31eb:3::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C91F9CDCF; Wed, 1 Feb 2023 04:42:41 -0800 (PST) Received: from [IPV6:2003:e9:d70f:e348:e684:710d:4017:e1c4] (p200300e9d70fe348e684710d4017e1c4.dip0.t-ipconnect.de [IPv6:2003:e9:d70f:e348:e684:710d:4017:e1c4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: stefan@datenfreihafen.org) by proxima.lasnet.de (Postfix) with ESMTPSA id 288D3C03DD; Wed, 1 Feb 2023 13:42:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datenfreihafen.org; s=2021; t=1675255359; h=from:from: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=pRZxwZKdvipSSAcGaNJknFkoRTNkO+3gbjfMX5XFILw=; b=ZH4OQT1ONs1IsLzNhV5+ncHo4GH1tzmYk4rvqpi0BV+4/y0ds+Yq57ZVxsICT2PVyxN/+s PUu9SP8t+JEfgBCTEp/FYC731wIdWX9kg246H6uM3jkOmi/whEaZXU4Xo+A3oCj2e9wmn7 Cnjs92bMAMoftCjVdYEruvCG9uM7qGrQevdqruLMo7tMpuikrYfHnMK0XrOC1c3mzyUIrn BodVxepofVASjSRigB7jdHFTC3AzvMhcT6O0oYUfOvwlQDQRtiqK26EnRfZ5a0/TmAe2zE qZ3Y45synhLbjcBf2NoHmrzMGg2RgOyBJD86C5aBG5nh+yURpRLcx/AQ9p4j3w== Message-ID: <77b78287-a352-85ae-0c3d-c3837be9bf1d@datenfreihafen.org> Date: Wed, 1 Feb 2023 13:42:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH] [v2] at86rf230: convert to gpio descriptors Content-Language: en-US To: Dmitry Torokhov , Arnd Bergmann Cc: Alexander Aring , Arnd Bergmann , Miquel Raynal , Andy Shevchenko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org, netdev@vger.kernel.org References: <20230126162323.2986682-1-arnd@kernel.org> From: Stefan Schmidt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Dmitry. On 01.02.23 01:50, Dmitry Torokhov wrote: > On Tue, Jan 31, 2023 at 3:52 PM Dmitry Torokhov > wrote: >> >> Hi Arnd, >> >> On Thu, Jan 26, 2023 at 8:32 AM Arnd Bergmann wrote: >>> >>> /* Reset */ >>> - if (gpio_is_valid(rstn)) { >>> + if (rstn) { >>> udelay(1); >>> - gpio_set_value_cansleep(rstn, 0); >>> + gpiod_set_value_cansleep(rstn, 0); >>> udelay(1); >>> - gpio_set_value_cansleep(rstn, 1); >>> + gpiod_set_value_cansleep(rstn, 1); >> >> For gpiod conversions, if we are not willing to chase whether existing >> DTSes specify polarities >> properly and create workarounds in case they are wrong, we should use >> gpiod_set_raw_value*() >> (my preference would be to do the work and not use "raw" variants). >> >> In this particular case, arch/arm/boot/dts/vf610-zii-dev-rev-c.dts >> defines reset line as active low, >> so you are leaving the device in reset state. >> >> Please review your other conversion patches. > > We also can not change the names of requested GPIOs from "reset-gpio" > to "rstn-gpios" and expect > this to work. > > Stefan, please consider reverting this and applying a couple of > patches I will send out shortly. Thanks for having another look at these patches. Do you have the same concern for the convesion patch to cc2520 that has been posted and applied as well? Arnd, if you have any concerns about the revert please speak up soon as I am going to revert your patch and get these patches into my tree later today. regards Stefan Schmidt