Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp268219rdd; Wed, 22 Nov 2023 15:48:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHVdqPxlX+e6+sfg7jsJgWoqSgFD+qUz2d4YfhgBZ2khUYiAv/4DNzW+Q4YVE3vgvzhePi X-Received: by 2002:a05:6a00:2314:b0:6cb:a1d1:ab45 with SMTP id h20-20020a056a00231400b006cba1d1ab45mr3737430pfh.5.1700696928096; Wed, 22 Nov 2023 15:48:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700696928; cv=none; d=google.com; s=arc-20160816; b=K/f6ELoTwOX3ueD7sVJ0paeDE5XnVkx0XWt3GaPYsdvXFJZe+bZfbLmsUHKQHUUyL2 h1T5/VyFQOo9nQAmf/8xNmBBTHe3khzvjuMhXWbLWFNXqCvLBAyzQ6mTRQmZPl12gfvF +P4PwmjUOxff/Jf99XyInrxi1HHDXgKdQJpYi3WArBO0YgEhMuBuL+5l0oExOx/5VYqR 0bnxcE5AEsokvxmSJBx+kfRB08sFhgnsRDoxYaUWbMQ10FA3Hs3Rznle0c5MEKwrHOf0 EREqdWOIT4L13q/5QyKBCNV+rVmTT+lNK6aBw+SiKxy+et8lwK3W3Kz8763auy2i42Iv H3Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :date:dkim-signature; bh=f6AP4LmFw/trA60I/yMovmpTiDKYHrAJis74uiTJfuc=; fh=5vagqlo9wwt7nqE7CQ1e1NaHNZrymxkCY21uwhxGwvI=; b=z7UshUEZJDxAZsg7relz6JHNFAYq7NZxawXuC/yDtxlLe3H7okGEJXV+Y0FPd/0gLz GIZHX0nxrkG7CplMmvtDshCn7fm6Rh0yEGJ5kSbOZMumsMg6vNL1VM7xCIV8IQX9hj0X LUnFUgLi59IncvrkPjbRlBIoDmO6TZx2N7JXKBYotfmO6wK9ttMVj5uVl3lGqnPfXS+m 6d7QC+BW4klmTtJ2oxleZjDiNF45zohVFdOQff79F8fqnTr/5qA5DULsDphvdM/MUhAm +vLJ0hB14ShW+PaiMT7Sze/QGsJ/dZyJDR4bwD/901h4tnIDMlMq57VV1adkHvmGbg0l Ymnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=LgfVUwMa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n68-20020a634047000000b005c21d7ee51asi138409pga.301.2023.11.22.15.48.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 15:48:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=LgfVUwMa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 869AC839A912; Wed, 22 Nov 2023 15:48:44 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344054AbjKVXsb (ORCPT + 99 others); Wed, 22 Nov 2023 18:48:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231410AbjKVXsa (ORCPT ); Wed, 22 Nov 2023 18:48:30 -0500 Received: from mail-0301.mail-europe.com (mail-0301.mail-europe.com [188.165.51.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65FCD1AE; Wed, 22 Nov 2023 15:48:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1700696898; x=1700956098; bh=f6AP4LmFw/trA60I/yMovmpTiDKYHrAJis74uiTJfuc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=LgfVUwMabzoZ0GZdCiNplAUdW5ZUgRm//I+1rvh9ZzeSj3s4hHcp1aG3mj56loQWk FZsWjHpquhpwQyU6HmRntasLt2wQjlJfyve86+Pdl/ubm05MNv1prlSkfns6Njti2L ADOUdtu4kgp58s5y5mdDLEToqMyP/JrQs/ZLdUogD7MEHehG4XV1d4vC8XDhfSLH6q NaOI+uzNeN4YLJ8F1J8LCN+o3RzwZiEMypg2LDqaBCXMF5BjWZEJjSuGITj0JlISUN 0DwvqWZcyMuhL5L3UC8k8WrLX+9NLeD4mIw/JqJagq7cDGW2DnQQ/r4M28J3lHfqlr QppN++RYjWo7g== Date: Wed, 22 Nov 2023 23:48:08 +0000 To: Henry Shi From: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Cc: hbshi69@hotmail.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, hdegoede@redhat.com, markgross@kernel.org, jdelvare@suse.com, linux@roeck-us.net, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org, hb_shi2003@yahoo.com, henrys@silicom-usa.com, wenw@silicom-usa.com Subject: Re: [PATCH v14] platform/x86: Add Silicom Platform Driver Message-ID: <1usxJUtpXn7sDZJDkSY3j4F45qYVw7b4-8t5SYM5-3bfyXdgG3yXswa2oDJvi3b_Lt_e5ZZUiUIBpAJoQZriz-E9BHh1QzGGErE8QV5zbDw=@protonmail.com> In-Reply-To: <20231122212007.19428-1-henryshi2018@gmail.com> References: <20231122212007.19428-1-henryshi2018@gmail.com> Feedback-ID: 20568564:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 15:48:44 -0800 (PST) Hi 2023. november 22., szerda 22:20 keltez=C3=A9ssel, Henry Shi =C3=ADrta: > [...] > +What:=09=09/sys/devices/platform/silicom-platform/hwmon/hwmon1/temp1_inp= ut > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This file is read only. It returns the temperature > +=09=09of device in the scale of 1000 * Degree Celsius. > + > +What:=09=09/sys/devices/platform/silicom-platform/hwmon/hwmon1/temp1_lab= el > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This file is read only. It returns "Silicom_platform: > +=09=09Thermostat Sensor". > + > +What:=09=09/sys/devices/platform/silicom-platform/hwmon/hwmon1/fan1_inpu= t > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This file is read only. It returns current fan > +=09=09speed (RPM). > + > +What:=09=09/sys/devices/platform/silicom-platform/hwmon/hwmon1/fan1_labe= l > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This file is read only. It returns "Silicom_platform: > +=09=09Fan Speed". > + These are standard hwmon attributes already documented in Documentation/ABI/testing/sysfs-class-hwmon, is it really needed to documen= t them here as well? > +What:=09=09/sys/class/leds/multicolor:sys/brightness > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09status of system LED brightness: > + > +=09=090 - to turn off the LED > +=09=091 - to turn on the LED > + > +What:=09=09/sys/class/leds/multicolor:sys/multi_index > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read only file. It returns: > + > +=09=09white amber red > + > +What:=09=09/sys/class/leds/multicolor:sys/multi_intensity > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09multi-color intensity of system LED: First value for > +=09=09color white, second value for color amber and third value > +=09=09for color red: > + > +=09=090 - The color is turned off. > +=09=091 - the color is turned on. > + > +What:=09=09/sys/class/leds/multicolor:wan/brightness > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09status of WAN LED brightness: > + > +=09=090 - to turn off the LED > +=09=091 - to turn on the LED > + > +What:=09=09/sys/class/leds/multicolor:wan/multi_index > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read only file. It returns: > + > +=09=09white yellow red > + > +What:=09=09/sys/class/leds/multicolor:wan/multi_intensity > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09multi-color intensity of WAN LED: First value for > +=09=09color white, second value for color yellow and third value > +=09=09for color red: > + > +=09=090 - The color is turned off. > +=09=091 - the color is turned on. > + > +What:=09=09/sys/class/leds/multicolor:stat%d/brightness > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09status of device status LED (number %d) brightness: > + > +=09=090 - to turn off the LED > +=09=091 - to turn on the LED > + > +What:=09=09/sys/class/leds/multicolor:stat%d/multi_index > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read only file. It returns: > + > +=09=09red green blue yellow > + > +What:=09=09/sys/class/leds/multicolor:stat%d/multi_intensity > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09multi-color intensity of device status LED (number %d): > +=09=09First value for color red, second value for color green, > +=09=09third value for color blue and fourth value for color > +=09=09yellow. > + > +=09=090 - The color is turned off. > +=09=091 - the color is turned on. > + > +What:=09=09/sys/class/leds/multicolor:fp_left/brightness > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09status of left LED brightness: > + > +=09=090 - to turn off the LED > +=09=091 - to turn on the LED > + > +What:=09=09/sys/class/leds/multicolor:fp_left/multi_index > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read only file. It returns: > + > +=09=09red green blue amber > + > +What:=09=09/sys/class/leds/multicolor:fp_left/multi_intensity > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09multi-color intensity of left LED: First value for > +=09=09color red; Second value for color green; Third value for > +=09=09color blue and fourth value for color amber. > +=09=09for color red: > + > +=09=090 - The color is turned off. > +=09=091 - the color is turned on. > + > +What:=09=09/sys/class/leds/multicolor:fp_center/brightness > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09status of left LED brightness: > + > +=09=090 - to turn off the LED > +=09=091 - to turn on the LED > + > +What:=09=09/sys/class/leds/multicolor:fp_center/multi_index > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read only file. It returns: > + > +=09=09red green blue amber > + > +What:=09=09/sys/class/leds/multicolor:fp_center/multi_intensity > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09multi-color intensity of left LED: First value for > +=09=09color red; Second value for color green; Third value for > +=09=09color blue and fourth value for color amber. > +=09=09for color red: > + > +=09=090 - The color is turned off. > +=09=091 - the color is turned on. > + > +What:=09=09/sys/class/leds/multicolor:fp_right/brightness > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09status of left LED brightness: > + > +=09=090 - to turn off the LED > +=09=091 - to turn on the LED > + > +What:=09=09/sys/class/leds/multicolor:fp_right/multi_index > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read only file. It returns: > + > +=09=09red green blue amber > + > +What:=09=09/sys/class/leds/multicolor:fp_right/multi_intensity > +Date:=09=09November 2023 > +KernelVersion:=096.7 > +Contact:=09Henry Shi > +Description: > +=09=09This is a read/write file. It is used to read/set current > +=09=09multi-color intensity of left LED: First value for > +=09=09color red; Second value for color green; Third value for > +=09=09color blue and fourth value for color amber. > +=09=09for color red: > + > +=09=090 - The color is turned off. > +=09=091 - the color is turned on. > + These are standard LED attributes already documented in Documentation/ABI/testing/sysfs-class-{led,led-multicolor}, is it really needed to document them here as well? > [...] > +static struct led_classdev_mc plat_0222_mc_led_info[] __initdata =3D { > +=09{ > +=09=09.led_cdev =3D { > +=09=09=09.name =3D "multicolor:wan", > +=09=09=09.brightness =3D 0, > +=09=09=09.max_brightness =3D 1, > +=09=09=09.brightness_set =3D silicom_mec_led_mc_brightness_set, > +=09=09=09.brightness_get =3D silicom_mec_led_mc_brightness_get, > +=09=09}, > +=09=09.num_colors =3D ARRAY_SIZE(plat_0222_wan_mc_subled_info), > +=09=09.subled_info =3D plat_0222_wan_mc_subled_info, > +=09}, > +=09{ > +=09=09.led_cdev =3D { > +=09=09=09.name =3D "multicolor:sys", > +=09=09=09.brightness =3D 0, > +=09=09=09.max_brightness =3D 1, > +=09=09=09.brightness_set =3D silicom_mec_led_mc_brightness_set, > +=09=09=09.brightness_get =3D silicom_mec_led_mc_brightness_get, > +=09=09}, > +=09=09.num_colors =3D ARRAY_SIZE(plat_0222_sys_mc_subled_info), > +=09=09.subled_info =3D plat_0222_sys_mc_subled_info, > +=09}, > +=09{ > +=09=09.led_cdev =3D { > +=09=09=09.name =3D "multicolor:stat1", > +=09=09=09.brightness =3D 0, > +=09=09=09.max_brightness =3D 1, > +=09=09=09.brightness_set =3D silicom_mec_led_mc_brightness_set, > +=09=09=09.brightness_get =3D silicom_mec_led_mc_brightness_get, > +=09=09}, > +=09=09.num_colors =3D ARRAY_SIZE(plat_0222_stat1_mc_subled_info), > +=09=09.subled_info =3D plat_0222_stat1_mc_subled_info, > +=09}, > +=09{ > +=09=09.led_cdev =3D { > +=09=09=09.name =3D "multicolor:stat2", > +=09=09=09.brightness =3D 0, > +=09=09=09.max_brightness =3D 1, > +=09=09=09.brightness_set =3D silicom_mec_led_mc_brightness_set, > +=09=09=09.brightness_get =3D silicom_mec_led_mc_brightness_get, > +=09=09}, > +=09=09.num_colors =3D ARRAY_SIZE(plat_0222_stat2_mc_subled_info), > +=09=09.subled_info =3D plat_0222_stat2_mc_subled_info, > +=09}, > +=09{ > +=09=09.led_cdev =3D { > +=09=09=09.name =3D "multicolor:stat3", > +=09=09=09.brightness =3D 0, > +=09=09=09.max_brightness =3D 1, > +=09=09=09.brightness_set =3D silicom_mec_led_mc_brightness_set, > +=09=09=09.brightness_get =3D silicom_mec_led_mc_brightness_get, > +=09=09}, > +=09=09.num_colors =3D ARRAY_SIZE(plat_0222_stat3_mc_subled_info), > +=09=09.subled_info =3D plat_0222_stat3_mc_subled_info, > +=09}, > +=09{ }, > +}; > [...] > +static struct led_classdev_mc cordoba_mc_led_info[] __initdata =3D { > +=09{ > +=09=09.led_cdev =3D { > +=09=09=09.name =3D "multicolor:fp_left", > +=09=09=09.brightness =3D 0, > +=09=09=09.max_brightness =3D 1, > +=09=09=09.brightness_set =3D silicom_mec_led_mc_brightness_set, > +=09=09=09.brightness_get =3D silicom_mec_led_mc_brightness_get, > +=09=09}, > +=09=09.num_colors =3D ARRAY_SIZE(cordoba_fp_left_mc_subled_info), > +=09=09.subled_info =3D cordoba_fp_left_mc_subled_info, > +=09}, > +=09{ > +=09=09.led_cdev =3D { > +=09=09=09.name =3D "multicolor:fp_center", > +=09=09=09.brightness =3D 0, > +=09=09=09.max_brightness =3D 1, > +=09=09=09.brightness_set =3D silicom_mec_led_mc_brightness_set, > +=09=09=09.brightness_get =3D silicom_mec_led_mc_brightness_get, > +=09=09}, > +=09=09.num_colors =3D ARRAY_SIZE(cordoba_fp_center_mc_subled_info), > +=09=09.subled_info =3D cordoba_fp_center_mc_subled_info, > +=09}, > +=09{ > +=09=09.led_cdev =3D { > +=09=09=09.name =3D "multicolor:fp_right", > +=09=09=09.brightness =3D 0, > +=09=09=09.max_brightness =3D 1, > +=09=09=09.brightness_set =3D silicom_mec_led_mc_brightness_set, > +=09=09=09.brightness_get =3D silicom_mec_led_mc_brightness_get, > +=09=09}, > +=09=09.num_colors =3D ARRAY_SIZE(cordoba_fp_right_mc_subled_info), > +=09=09.subled_info =3D cordoba_fp_right_mc_subled_info, > +=09}, > +=09{ }, > +}; > [...] These LED names do not have the syntax described in Documentation/leds/leds= -class.rst, which is "devicename:color:function". Regards, Barnab=C3=A1s P=C5=91cze