Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2565894lqz; Wed, 3 Apr 2024 01:40:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUy+RGfRsIcbemtCo2l0kzNcI0NN2WpaQbmdBBR29kcgik+yRm9ngeoKDfXyTLT1AqbL6pm/YZmwLBXmG3MGWk8fJEk08IWPssY8hpACA== X-Google-Smtp-Source: AGHT+IFCNcpdV091zpQbFa5kV6VEvFOmldJCErNLZm2IYa0zxt9M11psNAsDXLE86Xib5vmPxmdZ X-Received: by 2002:a50:bae7:0:b0:56e:a0e:f4bd with SMTP id x94-20020a50bae7000000b0056e0a0ef4bdmr676592ede.22.1712133628361; Wed, 03 Apr 2024 01:40:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712133628; cv=pass; d=google.com; s=arc-20160816; b=lW9xUyUumKBlPieZoIdJHGE04v7udlcsvmo3m2iu7B5bohw78O4UkM6Nysk3FV2tyT BkqMOT6zopCjYPhMupmrL/r5NkF8LZ9nWCXZ7M/Y3qNh1q8445+1Cz8N2pmGccGcGXWv VCrxOSisphOL8FBtPNs5O8td9pwjrbFD1cJp4bsQM3NxJRt6WhBYdbO02s0I31c+zUCn WT5dzKEy7Hw6afiwPoQ06RFbsijWHYYgAiAIj0U4j3gHUbVMf1NQxpqtJ4Oq/gGSMFLC NL8tyF+AeGIuNtPktN5jJGBGFSuT00IG4VnvRnYXR9LEr7pgX6P2boMnh+JaVLzCo/fV 8POw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=YOAN9UDBf2fvp2SNU3Z3PBO73HHDwz2R1xk7y6LptS8=; fh=QVMdZTJlohGtK6Jd81g1bsxMVCruh3CyzFfh0ggeUTM=; b=jeCjIuwzhyRLbE4ajTd5okGmRgMI+s++1klw14UJJ/pgij7wK7GBP4d7q1ySHrZBJF Rm2OtZuD27dAJ8kJyo4MT1bUl+/Jyed6BOnSPi1r37ItT8wJzUObFuNx1ySRYrf0VOfC Ls/5uYc36bOnXaLD2RDO0N9BzNVSc78hmZyrA6iD9qIfSlAUJyiBOdY5viLQBBWHV5dN 5xNX+umol8uEzO32czkJ0VYxE0Uu7fAvgQ/HWmbjNE/m5hX9lBlMswGe6qWuPs2BzaTe t+27b9qk4aInH3Yn8Cucrqio02EN9di40cO6VzMk7MUu7cyrHXGkr8T4bTNlMkpPKuVQ DhTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PYMDaxpD; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-129352-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129352-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q14-20020a056402518e00b0056e07db9394si369153edd.382.2024.04.03.01.40.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:40:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129352-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=PYMDaxpD; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-129352-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129352-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 97F4E1F2603F for ; Wed, 3 Apr 2024 08:40:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8A5E6FE05; Wed, 3 Apr 2024 08:39:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="PYMDaxpD" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 60A1E6D1A8 for ; Wed, 3 Apr 2024 08:39:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712133582; cv=none; b=j1WpxmCEGnTIa/h+kDqNPD4aaCYrG+Jkqii+kFMRMdxbUc27HYtH3I3g/es+D+skCn3nox6wm4XnL3XrV4755jkniOjjE0SxQHiaIx8BF2qKxcHEMwYtZa61IYRd5aKsr2LpINhRTT3Cleh5/xyrLD/vBJZqkLfy/ZGXZYhagZc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712133582; c=relaxed/simple; bh=oX1f18o8YYXgxS133FsNouB7LDA9X+oiIEuwMjfh7cs=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=QLiTi/Ezoi/nj5uo8g+HFeO/wB05SgNZOUPV+C9r0J4TMENyp8LNFoYs/v2LR758hcogg4Ze/SdVL9/P+RE2/4OiFZvJvtlczSZflnK7g0vKJOKcgNGTSO9SzkW0M7FiWxsU9/ZuuEYI1OQuO5k7FLMFAWHj1ERjrZIc643pOkE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=PYMDaxpD; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712133580; 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=YOAN9UDBf2fvp2SNU3Z3PBO73HHDwz2R1xk7y6LptS8=; b=PYMDaxpD/WLntZttZQAdsJNR01o5wb9VkQc2TTR3KEUBzivTqgtXm6vuhU3qOlYt4GYFYy CBSSg7fIeVfIzeLK/3jAR6ATvMbk4lzmYGOllw6wRlZFkx7NxCAPUotSM3GsNpCfaeKfte k3/bFVWof1PHHdclBYKoyZoZAcd+FFQ= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-528-UG8y78JNN1eTMcKFHdyOBQ-1; Wed, 03 Apr 2024 04:39:36 -0400 X-MC-Unique: UG8y78JNN1eTMcKFHdyOBQ-1 Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-515c91a7ffdso3906910e87.0 for ; Wed, 03 Apr 2024 01:39:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712133575; x=1712738375; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=YOAN9UDBf2fvp2SNU3Z3PBO73HHDwz2R1xk7y6LptS8=; b=N6pnvlGae5YiuvQ35CFqB3Bv2l6OCgH1M1vHmC4RcjLnocfrs9js1a95wH/L/fK03M swcFCteFZFDj4nT6oIlfNgpBiMwdPqp74ZA0gqyvhpaiRYLh+N5l75DpEcLy6Y92FmFl jENQLAC3GZpeSCWBKZNbw3HwW8q3yc8M0S4yxqhk4a5jEDzuzdgaQUxJkBFmQIlYKHX+ Og23hciJx/KGQmmRUoHF7g495rR90HopEJWggJMlzxhoI9laO4eorK+3irV8Wdy2KVAG vj4MnDx0g+tydLlfwciHkvY+8fkha01Nbnv5lTvjMytQw8exkYsmWDLC3vu/BZMLMc/F +bCg== X-Forwarded-Encrypted: i=1; AJvYcCVOGypElu8m8YNZR7UbnLuld2j6dEDHrX0Q+RHBfhlylXL8tcUOTKC+ddzUbYkV+3QBS3xUbG6HQhunjuuGTkY6JihTDuZ5D/1FKpYo X-Gm-Message-State: AOJu0Yyv+AzqDhHx6T23K4a8NYm1Tcn2kN6SglfGDvGp5ZNjV91f3QKP lfIExmanbICUcwRjBt1EmBU18fLt4kvrWZhOc4lHf0d9zFY46FdeEh2YXvduEgXXpFuu2j5Kky/ xY+OuF6qAxwEH9koFb6QhawM3sHq9uv4Do6zbCh1ui9YFu6MVSkQA7YyvDvdUCQ== X-Received: by 2002:a19:5e03:0:b0:516:9ee4:72ca with SMTP id s3-20020a195e03000000b005169ee472camr3454539lfb.21.1712133575195; Wed, 03 Apr 2024 01:39:35 -0700 (PDT) X-Received: by 2002:a19:5e03:0:b0:516:9ee4:72ca with SMTP id s3-20020a195e03000000b005169ee472camr3454522lfb.21.1712133574736; Wed, 03 Apr 2024 01:39:34 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id r20-20020a17090638d400b00a4e59587f63sm4421923ejd.193.2024.04.03.01.39.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Apr 2024 01:39:34 -0700 (PDT) Message-ID: <4956933c-49c4-49ab-a91a-7e0efcc211d5@redhat.com> Date: Wed, 3 Apr 2024 10:39:33 +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 1/3] dt-bindings: leds: add LED_FUNCTION_FNLOCK To: Krzysztof Kozlowski , Gergo Koteles , Ike Panhc , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org References: <8ac95e85a53dc0b8cce1e27fc1cab6d19221543b.1712063200.git.soyer@irl.hu> <6b47886e-09ac-4cb9-ab53-ca64f5320005@linaro.org> <39acb3b9-a69f-4654-9749-a9af42fea39e@redhat.com> <368e9817-0000-4f69-9f09-568827466121@linaro.org> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <368e9817-0000-4f69-9f09-568827466121@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 4/3/24 10:36 AM, Krzysztof Kozlowski wrote: > On 03/04/2024 10:31, Hans de Goede wrote: >> Hi Krzysztof, >> >> On 4/2/24 3:55 PM, Krzysztof Kozlowski wrote: >>> On 02/04/2024 15:21, Gergo Koteles wrote: >>>> Newer laptops have FnLock LED. >>>> >>>> Add a define for this very common function. >>>> >>>> Signed-off-by: Gergo Koteles >>>> --- >>>> include/dt-bindings/leds/common.h | 1 + >>> >>> Do we really need to define all these possible LED functions? Please >>> link to DTS user for this. >> >> It is useful to have well established names for common >> LED functions instead of having each driver come up >> with its own name with slightly different spelling >> for various fixed function LEDs. >> >> This is even documented in: >> >> Documentation/leds/leds-class.rst : >> >> """ >> LED Device Naming >> ================= >> >> Is currently of the form: >> >> "devicename:color:function" >> >> ... >> >> >> - function: >> one of LED_FUNCTION_* definitions from the header >> include/dt-bindings/leds/common.h. >> """ >> >> Note this even specifies these definitions should go into >> include/dt-bindings/leds/common.h . >> >> In this case there is no dts user (yet) only an in kernel >> driver which wants to use a LED_FUNCTION_* define to >> establish how to identify FN-lock LEDs going forward. > > Ack, reasonable. > >> >> Since a lot of LED_FUNCTION_* defines happen to be used >> in dts files these happen to live under include/dt-bindings/ >> but the dts files are not the only consumer of these defines (1). > > Yes, but if there was no DTS consumer at all, then it is not a binding, > so it should not go to include/dt-bindings. > >> >> IMHO having a hard this must be used in a dts file rule >> is not helpful for these kinda files with defines shared >> between dts and non dts cases. >> >> If we were to follow this logic then any addition to >> >> include/uapi/linux/input-event-codes.h >> >> must have a dts user before being approved too ? Since >> that file is included from include/dt-bindings/input/input.h ? > > Wait, that's UAPI :) and we just share the constants. That's kind of > special case, but I get what you mean. > >> >> TL;DR: not only is this patch fine, this is actually >> the correct place to add such a define according to >> the docs in Documentation/leds/leds-class.rst : >> >> Reviewed-by: Hans de Goede > > Acked-by: Krzysztof Kozlowski Thanks. Is it ok for me to merge this through the pdx86 tree (once I've reviewed the other 2 patches) ? Regards, Hans