Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2653819rwd; Wed, 17 May 2023 12:30:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5mq8ynRvl5v/PBf0zM2tyBZM1Pi6IyIz1vWXVZ5IKLl5yxALt7j/Q4CaBJVXRUAcZP4N/6 X-Received: by 2002:a05:6a20:3d09:b0:ee:f290:5b5e with SMTP id y9-20020a056a203d0900b000eef2905b5emr53341689pzi.43.1684351809006; Wed, 17 May 2023 12:30:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684351808; cv=pass; d=google.com; s=arc-20160816; b=gj/3+Y01gVlY8+PID1TstLbLQnqVAIGHgc31ZOi2B+VNXoPAtNnCTDUIDarxTyAFS5 3gYc1E4tQAuPmLa2Z4qztUWSbL3wphCINpdyx2NJNl0eEgtWDEl3YsRn4NzmoPJr4Z99 FcZyFQXX5G5TRf5+5koQ8gUBf1ot+8cCR9tn4IqdW8Apm5wDumpRIqDEIgy3hpeSnAuh PWYHM61jCTmMLDznQ5ar0PhMUKYcOA/do/aiYufXvnU0Ejq/4/8MDM18Qu2gUnr2VC6a RGYt1zejS+E6g7EdWeScVnWoXqk5uc7oo6AC8W00YdT8X57iIcPMFhZJ4uev/kD1Kmbj 4Tog== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/YiOntKiq1t2aKqRxB/vNZKyQYA7kVVSMg4c0ahwgfE=; b=fczyCXLS7vXCyrcf5wStE9TAee0OkIgazeBa7hgBMJIPDn21GzUPhYXjviFejjGFMR UwYZh7IuFrK49BltL9bv2forYUVvT8Q6GF2lZ4LnEYeiVbyd3MTv3B8trg/WE/eNv++V w+qBhGC/eCTFMYeJgTRRwur1zG2W9tud6JvCv6ixVBvmK6YhLK4F6coPWbCTWt0piQAv yAZQfuRiRV6AOOaeNgIUhgUGzQjV8YvJZb88GTt4r+LT2NcN2xGtwonW2VR0zfU4D9Lb mH1RsAnwVU266ixCsy2co3cuZ1VyNIKpNFfIIqfrz/ep7F3xP5fitfW6C8CpMdN5sQFM nbLw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=lP3edUuK; arc=pass (i=1); 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 h186-20020a636cc3000000b0050c0305bcc3si21542481pgc.872.2023.05.17.12.29.57; Wed, 17 May 2023 12:30:08 -0700 (PDT) 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=@iki.fi header.s=lahtoruutu header.b=lP3edUuK; arc=pass (i=1); 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 S230133AbjEQT1T (ORCPT + 99 others); Wed, 17 May 2023 15:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbjEQT1C (ORCPT ); Wed, 17 May 2023 15:27:02 -0400 Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3D74DC4E; Wed, 17 May 2023 12:26:22 -0700 (PDT) Received: from hillosipuli.retiisi.eu (dkzdf0gkyyyyyyyyyyyyt-3.rev.dnainternet.fi [IPv6:2001:14ba:4506:4f15::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4QM34W2J3tz49Q4J; Wed, 17 May 2023 22:26:19 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1684351579; 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: in-reply-to:in-reply-to:references:references; bh=/YiOntKiq1t2aKqRxB/vNZKyQYA7kVVSMg4c0ahwgfE=; b=lP3edUuKvfOT3j9P9WCTsbYy1hDSxAjcOOSl3Zr7R/lFUnMA6BLPAIxu6el1oKDOPstOc1 qYjxrMy9I6VBxm1TMubJxf75qXJRqAnwTje1Ut+EbnReFqg/ISbNDzCScGxC67dxZLck+K UWkaSMD4rXkwghAT24c8+Imnxg1waGSOaX/uJm7664u/GgDTgLGyox98LmrKOLUbZRme7O ETBYVcuYvgBkdvXfqd92Og2Cbb1YrCvYdEdbce+xfko9nzAnj5FbhPdBS9rZMaP+i9eXbF AjXz3TwyPKyIG5ejJub+c70LgYOe0/vlGgnK0yOqpBtRVPtVq5bfs6BlOKntrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1684351579; 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: in-reply-to:in-reply-to:references:references; bh=/YiOntKiq1t2aKqRxB/vNZKyQYA7kVVSMg4c0ahwgfE=; b=uUn3WgrAZKxXYSfoJCCdHrj8DjGF6VzQmeuUS/+P7tzcAqmLfhrXKpBnen5GXF+M+pfPBf x3bCM0vBvbITCwoImVGrROwTN13Q0pn8/F1Tk3pO+Vkr1YKojIvXMshc/Sb+jXIpoGPePb arWBHCug7SSL3ycavtNVNXJat9Ql0/804VpsUB1BG5ZjhwjjPk7tZFxR96yGktyNayPHwN +JXVlNET+JGwxKDH3gbszf6Ai3zZc5rGSfpLJt1eJ18XrVEYfgG5Qnbx0z04I6RoU3VOMR 8btiyMJR8qCljQPQcAERZkKx4Fg5r5Mp6i928IDfmNenVXat04AX36yC6yIBvg== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1684351579; a=rsa-sha256; cv=none; b=hhovqfl84Yjvt+r8jS2uB88oxqxrMkh2YoN+3gMkCiBbir35b8VLX/0B+GRrsIf/3B40az BLHiqxvZJvCijLqVVdqu9TDC2o90jm2wmAVjYrZ8vqgTdN4N7WL/RO3qHul6nC2OI08MxQ OLteKGQ6wWH3rB9UrSN9SZvqtM3ahOQ1UTXN69IP5bdKw1wQ5lwQZzYTa1VqMq9px/LTA/ oTXyRSTElOcv1FgXcEBGKhW3WnWbY90Xz8lfP0gU52HPtPS90fjbKcFQ25we02HqVDalzJ hmgjPi37jXvgedwPuV3SW80nPOjxC0ScJqXst7cy92tefAEDhQUWQt5qtnKC5A== Received: from valkosipuli.retiisi.eu (valkosipuli.localdomain [192.168.4.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id E3F55634C94; Wed, 17 May 2023 22:26:17 +0300 (EEST) Date: Wed, 17 May 2023 22:26:17 +0300 From: Sakari Ailus To: Dmitry Torokhov Cc: Arnd Bergmann , Patrice Chotard , Mauro Carvalho Chehab , Arnd Bergmann , Andy Shevchenko , Hans Verkuil , Hugues Fruchet , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] media: c8sectpfe: convert to gpio descriptors Message-ID: References: <20230130131003.668888-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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, On Wed, May 17, 2023 at 12:12:05PM -0700, Dmitry Torokhov wrote: > On Wed, May 17, 2023 at 09:21:00PM +0300, Sakari Ailus wrote: > > Hi Arnd, > > > > On Mon, Jan 30, 2023 at 02:09:47PM +0100, Arnd Bergmann wrote: > > > From: Arnd Bergmann > > > > > > The gpio usage in the function is fairly straightforward, > > > but the normal gpiod_get() interface cannot be used here > > > since the gpio is referenced by a child node of the device. > > > > > > Using devm_fwnode_gpiod_get_index() is the best alternative > > > here. > > > > > > Signed-off-by: Arnd Bergmann > > > > I've picked > > > > instead. I hope that's fine. Also cc Dmitry. > > What do you mean "instead"? This is the exact patch that started this > thread, and it is broken (uses wrong name of the GPIO and wrong polarity). > > I'd much rather you picked up > https://lore.kernel.org/all/Y92VLGLQJZ%2FUDRx1@google.com/ > > Thanks. Ah, the URL in my e-mail was wrong. I have , i.e. the same patch. -- Regards, Sakari Ailus