From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BAD847D92C for ; Fri, 15 May 2026 11:41:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778845304; cv=none; b=sflMZK8fkhHBZWVtQ5dAErH0Y/fRJNtvox8PEpwRwGdk9WC0ZZuMo8GginD4JYTT2zpcS3WLusfKiy/yN1NYoUFnhpXCLB1EM3OQD7SmniTxB7xDGQC9f7Oelk6GVHuh+//acedZHU5O9tTNKh3bY/A8l27bm9wAV7E40YSXSS0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778845304; c=relaxed/simple; bh=CTwiBTXgKo7K6y0K1Dx2UdK0JxC3dCcCpJUx4YVxSM8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kKi8PXVVWqk4UJLwjpbnT1D8P4PyBD1NBaL7yBobWHnsE8wSWbxAiPWrD2fUpdvx4L2x039OMnymkX6pZQ04hYPEyNST6xAw6ih/zoKUEH6u2i7vJ1t19kOrDsBROk4wC47vDsqEhvpv7Jn/6c2HgJ8QAx3vFaQuXPEBCCXx/4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=o2hkzp9L; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="o2hkzp9L" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-bd4f81505ccso263831266b.1 for ; Fri, 15 May 2026 04:41:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1778845301; x=1779450101; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=d0YuC8NLk0JJSjHe3iGG0tkbsopOL75mgPP59FgiTls=; b=o2hkzp9LAx5y+kXSG+qoaGv+0i7ZgiLkzhAo/CibsDYs8RQ4yq0jkysaY1lOxLzEqF ccaXDINSjEbYfWdn7P4o/2NKTRkmPULCB0qG4mUSW5F227Jt9KJP/Z57nbFlHf2MaEZP ptTBeMTRU003ORlt7aIVLddhZKE6AyfOlb/OJ0TcSIDsQdKq5s7Q+Fuin3C8JRr4O53h feefA6yVTyH9GimKO5mMwuhhL3AMD5xfY7qtU58onbNEfNl/J+DTAPGbijWvowl4JReq hvIcgf66rOiEjUkHgGY5C5Y24HRXPSS5ja+WPRBIiIvcIkd+wuVXZDYJof4Ubbhs2j4l e0sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778845301; x=1779450101; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d0YuC8NLk0JJSjHe3iGG0tkbsopOL75mgPP59FgiTls=; b=TEyixjG9otRUU+awmT28mFmrd2e/c6I7tyHCps54ZyOV5oUFUt7kQshP1sTy9sKP61 mtX2KE6M4BRdu7bORd3eska2kICHfhncd10vDQRa3p8RKAm8sAeF8Qohisr+4hjX2Kh9 c7EajJoxNNC2BERZcUyR3T2ZR7NnKgkn9gWV/egNl+7oZQU4mEMMYJ4Yh+QGJ50VOSnQ IQ656+dnL3nkboHrrm8s8kUs3AhGInSkJ9Doeoncnik52hCvc4Trnm7CG4o5ISevMi9+ 2WvtXUbOFPgtnHkXiWVsH1nBH9glCaec4J3/M0T40WmmLJVA1+6yKMSWOm1ZhGoZ4bSf dYQA== X-Forwarded-Encrypted: i=1; AFNElJ+0B2BnD8jfxgkmjodwlw/G1Vd/ATicnhW2MXagk7tw+rEAXkKJRfd4nhI8Ew/Jxp9nRRsDstC3DlseHM4=@vger.kernel.org X-Gm-Message-State: AOJu0YybX7kLCjqXdAAkz5JDnmJ9SsFUbA467vAo92xZqh4TFxaKTXHU QrTqTavzlMH5rXXIAL2LKBvm90OmJzkesqDia0VlqP6/AkrwVmqLGRYxNA8IKgvOwSI= X-Gm-Gg: Acq92OEgM4d/Zmi8MFtC8o7DKyI4NXKA/xRmKo6A50r8/Dw5qgzQvrtfAKROuuUPqzH CPIR7ruBXwBlO7dZ1W4Jrhuio+dEasAkj9zbQhvmYFrvjrDB4jcu56GamAoncAWr81k9QXQub2n 84uG0/ryLmmp18t9z81gP0YKts+BrKUK+7kNzyR+5Xy3Y8/q2j9HUWvxbJ9npyjVOLE9+5KMZ+Y gIqrLrk2W0FD3OZk2ZJlt5eRT6QtqM8Mi3yer/g77x9zHHsayNyzYGLGnNxT/pugQjq83LuVgDd WP7x0BOGdKWUTgJt9ZOSgHp4oJv/3sVtUfJ4j/9iI1fNi/sX9wVeqrCIPOKXcrVGfXybzXlrk53 xxotqLPrXPxmqbBsQ3uhnJ0JqiSW0Rp2Ga6A2EnSkHxd5yN3oZ26mQuwUbx6BnhxXw39rSj/0WQ PhEnL/KOnwuxMO1fMFLDJf95xKyA1h0k6FMs6/PwLUbAxFfhs2oyGYULj7LQoNImhm+0ayyg== X-Received: by 2002:a17:907:c291:b0:bd5:7a3:a58b with SMTP id a640c23a62f3a-bd517994249mr190506866b.46.1778845300966; Fri, 15 May 2026 04:41:40 -0700 (PDT) Received: from [192.168.1.105] (164-6-132-5.ftth.glasoperator.nl. [5.132.6.164]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-bd4f4c31494sm215043366b.20.2026.05.15.04.41.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 May 2026 04:41:40 -0700 (PDT) Message-ID: <21308d1e-712b-4d3b-b083-251c8d755470@fairphone.com> Date: Fri, 15 May 2026 13:41:38 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC 3/4] Input: gpio-keys - add regulator to gpio_keys To: Mark Brown Cc: Dmitry Torokhov , Liam Girdwood , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Luca Weiss , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org References: <20260508-gpiokeys-vdd-supply-v1-0-0bb32e8e6428@fairphone.com> <20260508-gpiokeys-vdd-supply-v1-3-0bb32e8e6428@fairphone.com> Content-Language: en-US From: Griffin Kroah-Hartman In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/8/26 15:44, Mark Brown wrote: > On Fri, May 08, 2026 at 02:53:15PM +0200, Griffin Kroah-Hartman wrote: > >> + if (fwnode_property_present(child, "vdd-supply")) { >> + button->regulator = devm_fwnode_regulator_get_optional(dev, child, "vdd"); >> + if (IS_ERR(button->regulator)) { > > As well as the issue I mentioned on a prior thread with this assigning a > non-physical "vdd" name to the single supply that these components can > have (which has had issues in the past Our Hall Effect sensor IC does have a named "vdd" pin, but we are totally open to changing this to power-supply or whatever best follows the standard. > painful) the fact that this is fwnode means that this opens up support > for using this with ACPI which is very problematic given that ACPI has a > strong model of how regulators should work which is that they should not > be OS visible at all. Would it be more appropriate to drop the devm_fwnode_regulator_get() and replace it with a type-casted devm_of_regulator_get()? > That probably needs more addressing in the prior regulator patch, that > needs a bit more motivation and discussion about the issues with trying > to do a regulator interface firmware neutrally. Thank you for your response and feedback!