Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp264700rdg; Tue, 10 Oct 2023 09:34:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZxCqg06JBRfNvzA7YJliRPuDs/+fAp2fENrJnH3g6vUs3N4A9yzUiefeTLbWnsvA2TAx9 X-Received: by 2002:a05:6a00:1954:b0:693:3be8:feba with SMTP id s20-20020a056a00195400b006933be8febamr20447602pfk.19.1696955657752; Tue, 10 Oct 2023 09:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696955657; cv=none; d=google.com; s=arc-20160816; b=SsU1HbizdU47ydef30yeoCNNo4Vs9np2wxy5tr5Qec/pnspBtoad1dnm3UHHMj4X9O rwvlZ0KgnuWOBMNNhFg84rEM/33PT56O7lcoiw1t9B4qmea0XTKzdBl4jHaJDfeW9dWC G/EbiEeBW8zsMWLL/kMIIfX/V085GNXHdru63hxcg3v3c2rVKo1rplHWpfRpsDs+uYoS +Dbp+EyQoZC6gFmTwo/evOnnokdqQZKmoqkUUv+l8/iSKu28YdXZb8oKh8UQuPaoX+9c ZQShBTOvK6rYUahAnWvUg9pkdzDEuU5nauUpze8bJGjODgjr0QgF1/NJhc/RL0Il0lfD Nv7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:autocrypt:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=rwU4+Y4OqZzK6TI2W7XzGhkqLVKUr2nyC1V8axGfFVI=; fh=BLlz3jiA8oG32R7vWCC51EisqQkd/ufo8FJSA02w6tk=; b=UmEwLZ3q4iRTFlGr3j0B/qOA66lf4JI+wm21HJfSHWVuQFZ25XVC9eEjs5wmGxOPKd f5VT+ldKfjNwvGKASjYqVghqLjGfqCvR6cwW5a8zLbuDPuAbY6ZGwtmw7B3L6HBFqg+x oCz8AdlwFZDCL7QmZlXmvuh7nGvrdfvDnbYRsbBSzQ6i9Dn2sICHzbxTBnOzL84eb5f0 NjENaKIyvsIradJdTeB+v1vJseXmL5qdXZvMij39pT5Bcl27BavklS0fkKhN1VS0j/7T Mlsmtg1U8pzJzqwVYEsOcofu6IfCt4b3klaCfzecRcaHaJOrTDsT2nRUcx0mKi9qGo6B +xdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id z11-20020a6552cb000000b0059b71fb147dsi1982825pgp.264.2023.10.10.09.34.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 09:34:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id CF12F826E35B; Tue, 10 Oct 2023 09:34:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233618AbjJJQdu (ORCPT + 99 others); Tue, 10 Oct 2023 12:33:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232356AbjJJQdr (ORCPT ); Tue, 10 Oct 2023 12:33:47 -0400 Received: from mx.skole.hr (mx1.hosting.skole.hr [161.53.165.185]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 060AF8E; Tue, 10 Oct 2023 09:33:42 -0700 (PDT) Received: from mx1.hosting.skole.hr (localhost.localdomain [127.0.0.1]) by mx.skole.hr (mx.skole.hr) with ESMTP id D4DC9850F2; Tue, 10 Oct 2023 18:33:38 +0200 (CEST) From: Duje =?utf-8?B?TWloYW5vdmnEhw==?= To: Bartosz Golaszewski Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Alan Stern , Greg Kroah-Hartman , Linus Walleij , Andy Shevchenko , Dmitry Torokhov , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, linux-spi@vger.kernel.org Subject: Re: [PATCH RFT v7 2/6] ARM: pxa: Convert Spitz LEDs to GPIO descriptors Date: Tue, 10 Oct 2023 18:33:28 +0200 Message-ID: <12313687.O9o76ZdvQC@radijator> In-Reply-To: References: <20231009-pxa-gpio-v7-0-c8f5f403e856@skole.hr> <20231009-pxa-gpio-v7-2-c8f5f403e856@skole.hr> MIME-Version: 1.0 Autocrypt: addr=duje.mihanovic@skole.hr; keydata= mQINBGBhuA8BEACtpIbYNfUtQkpVqgHMPlcQR/vZhB7VUh5S32uSyerG28gUxFs2be//GOhSHv+ DilYp3N3pnTdu1NPGD/D1bzxpSuCz6lylansMzpP21Idn3ydqFydDTduQlvY6nqR2p5hndQg6II pmVvNZXLyP2B3EE1ypdLIm6dJJIZzLm6uJywAePCyncRDJY0J7mn7q8Nwzd6LG74D8+6+fKptFS QYI8Ira7rLtGZHsbfO9MLQI/dSL6xe8ZTnEMjQMAmFvsd2M2rAm8YIV57h/B8oP5V0U4/CkHVho m+a2p0nGRmyDeluQ3rQmX1/m6M5W0yBnEcz5yWgVV63zoZp9EJu3NcZWs22LD6SQjTV1X8Eo999 LtviIj2rIeCliozdsHwv3lN0BzTg9ST9klnDgY0eYeSY1lstwCXrApZCSBKnz98nX9CuuZeGx0b PHelxzHW/+VtWu1IH5679wcZ7J/kQYUxhhk+cIpadRiRaXgZffxd3Fkv4s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QNf9hag5zlFMfKjmKphzJRbstqlIf0B0oY3NgLZ4ExWa8wJxs+p4pUZd9m+ 6fDfimjuLtlBphjsHfwrgs69g8RqJlEsgsDrWu7zsWraK/jTyuPK6GuNe4AWemRUaZZmhMYnCxU p8AXRgtzZw2vsqERylx1Ug35G/xRIVrjf9bU2fersVWLR3JZ/rJwdjev4cJqzqJ9nBzblHky3K1 cqiNEM/CU+JLBsZMc4jti/3tDv8VKfZiwLMIsVrfPgTM/97CCW3QDwVcreUGx81kemiAweXENWk MGQfJ+8rfAdLHf7iECLWLtrqyfYFQCZGhA5rPPr27TjOLaLV5ObMMBsUY= Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 09:34:15 -0700 (PDT) X-Spam-Level: ** On Tuesday, October 10, 2023 1:12:05 PM CEST Bartosz Golaszewski wrote: > Gah! I should have noticed this earlier but this is a perfect > candidate for using hogs. Can you use gpiod_add_hogs() from > linux/gpio/machine.h instead? That would save you having the lookup > and the static leds descriptor array. From what I can tell, the hogs keep a certain pin at a certain state as long as the machine is powered on. Is this really what we want to do with LEDs or am I missing something? Regards, Duje