Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1615090ybh; Thu, 16 Jul 2020 18:01:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9A4EmCHr1z0vN9IDKppBL4O/bDUYvV+zzxfwSoNopeovM7v9TI2w46YqKNoLx8lcGGWkA X-Received: by 2002:a17:906:578c:: with SMTP id k12mr6037834ejq.339.1594947680888; Thu, 16 Jul 2020 18:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594947680; cv=none; d=google.com; s=arc-20160816; b=bMiTqCMVQI5mfEv6eetocVMzUMx2rJKxM79YwL5/YcnY4QaLIqQrhevwUF7DY0Zaj5 9/L8d3pdD+EGRAEGPuc3Nj8A19c9HOHrPV2c9TWs6teXUeMIoQIL1eKTo6l/8OrXA1ES 7gbjGqlzzfTc+PNRUdAFcZJk2z2RjYFLkBNCvdb92wJgRydsuVfvV0HmPIjp8I1YngT3 1Qj+qdf2Esc/MG0wQ3p3oKbfYOpruqaVmbT3633RBKlQIydhyJCzstENgDoESj8o91Hj nwwxVuBFec9oNGc1E7RDIa8CQDSRLkjtFgdB8GuB8sqejUY4OdlvwWKX7eJn4bFciuCl 0rmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=PvwLgS93w4+R3M4B0OHgO9HiGM5AwA5/GRoIcW5VUB0=; b=EzDcXg0vbuKG9+ouIhyFODbKxvE3pcny+SWcYJTGkPQ46SDpf/dwgomGTRLt4X7pcW 3eK2m1+OZDvtond8z2HGP4+05PJDed81VTQEKwbeyFHr+LrWETP0ETbkRWNYcZuAfpyH tRIM9NLR7MDIxucgkPdi6hmcvFYjrphk75ti7/4pwvsMoHFLWV5d38sGol9AwPcjYifN ojGvvUvGg6lbAqJjgb09n+M5WJ4wwm8g8PUC12RZeV2QlLquhHQW1mXAk3762wrxxIF+ MkNibmy7sbLF3iWu1LnnogjzjpIWbWEYyFWSNT9lPamVZbsOxkU1xyZr0aAXk0DbcASh OM2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XimmIqy1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b4si4115517ejp.333.2020.07.16.18.00.57; Thu, 16 Jul 2020 18:01:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XimmIqy1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726422AbgGQBAy (ORCPT + 99 others); Thu, 16 Jul 2020 21:00:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726138AbgGQBAx (ORCPT ); Thu, 16 Jul 2020 21:00:53 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E72D5C061755; Thu, 16 Jul 2020 18:00:52 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id x9so10608882ljc.5; Thu, 16 Jul 2020 18:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PvwLgS93w4+R3M4B0OHgO9HiGM5AwA5/GRoIcW5VUB0=; b=XimmIqy1Cpd2ffFk9jhtDl8EZFsThbzRDSvXNcjYLKO/PQ6L2bl0FP7E9db8wcCyIN bR29iJjplPcRpuVuX9ZSX+wRuyjhLoWLSFZ6UtYC3Ic/P2qXX86VMd7/qHPtxgV7irY7 LG4hHHRYQR9uwjKU2GLfdRnerCM/mcNht41ej5nwJS6hjAXIr2lxXX4pIJ7CY/tGuReO BYt70AD4k6Him75EJBrkdsEINZ5gFFhejURewIGrhLKe8zd95wSm9NLu2I7ppHkJzj89 rnFSBZDMpWwo0cgoiGl+IdU/gB5Cq/WnPB6X8j6PytOiZISrcklQVU3ltGiIlx7UUWBb KWNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PvwLgS93w4+R3M4B0OHgO9HiGM5AwA5/GRoIcW5VUB0=; b=F5qCMJtAxbd0e+n9DqSIBLNPxGevTJHgPi0iI9JfT22Y+YO6QXVi8hAsVYutIpZZFN nfdkHiJ0Y2Rz//1aeWc2+GCO8If4yVN5QmBQYnmGIRjS2Dxgy+kSbqUqie3QcmuEenn3 yZE4/kUN8YO2pYarKwBOSk87zSq2qwm9jSRa5fghrngDq/5bG1HVmwWnDse82KGLRG2I NyTdhEDh7gg5lcKbbP0oZLerbjfvAY+HrkhroWwm4h/lnFuHLG4c8NYlDUwDlirJ9sZL 6GpJriUc7gNsbxFDusJsgLl/vy+5H9ODkNsuOpMAg7uNG/S9xzgjJtyu+u+ANgycZLch RqeQ== X-Gm-Message-State: AOAM530cStcC3gvhL5sPUApRsV0g9+eZ+EJFJSMveGoIItyDd+mNS55a TkuvM91Vv8GT9ipn3Pus+aKRmJKCeEHxxtFXyO4= X-Received: by 2002:a2e:9144:: with SMTP id q4mr3406706ljg.84.1594947651117; Thu, 16 Jul 2020 18:00:51 -0700 (PDT) MIME-Version: 1.0 References: <20200713134114.137265-1-gnurou@gmail.com> <20200714223344.GA20740@amd> <17fe52a2-73ff-b547-8a59-5df009c929c8@gmail.com> In-Reply-To: <17fe52a2-73ff-b547-8a59-5df009c929c8@gmail.com> From: Alexandre Courbot Date: Fri, 17 Jul 2020 10:00:39 +0900 Message-ID: Subject: Re: [PATCH] leds: add NCT6795D driver To: Jacek Anaszewski Cc: Pavel Machek , Dan Murphy , Linux Kernel Mailing List , linux-leds@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacek, On Thu, Jul 16, 2020 at 4:32 AM Jacek Anaszewski wrote: > > Hi Alexandre, > > On 7/15/20 3:54 AM, Alexandre Courbot wrote: > > Hi Pavel, > > > > On Wed, Jul 15, 2020 at 7:33 AM Pavel Machek wrote: > >> > >> Hi! > >> > >>> Add support for the LED feature of the NCT6795D chip found on some > >>> motherboards, notably MSI ones. The LEDs are typically used using a > >>> RGB connector so this driver creates one LED device for each color > >>> component. > >> > >> Ok, let me take a look. What entries does it present in /sys? > > > > Right now these 3 directories in /sys/class/leds: > > > > nct6795d:blue: > > nct6795d:green: > > nct6795d:red: > > > > with the usual suspects `brightness` and `max_brightness` in each. I > > am not 100% sure I got the names right so please let me know if that > > is not correct. > > You miss LED function, that should be in the second section. The reason for not having a function at the moment is that I took a look at include/dt-bindings/leds/common.h and could not find any function that could reasonably apply. This basically controls a RGB connector on the motherboard which serves no particular function - you can plug a RGB fan or anything else you want and control it in any fashion. Is there a function that applies to this use-case?