Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4392453pxb; Tue, 2 Mar 2021 14:11:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyg0dNNPm5I6XFA3xzAEQW5UorAZUhszabTLwsR8x5FLfj0+c+ssqqFETwnSmJFu/CqLjBs X-Received: by 2002:a17:906:a944:: with SMTP id hh4mr15712940ejb.479.1614723087965; Tue, 02 Mar 2021 14:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614723087; cv=none; d=google.com; s=arc-20160816; b=D/wkJlqNO8IgM6noS7XQsbK4kXWY4YpShnjCgxbqOGcux6O5cHBPvmXWFIE9qMx7AY 0U0RdBaB2fbrBoW9dsPp+rD3jR3suepLzcxjOfGgkmMOqMW7COpPwncmDs8dXXThgjtf pOGFpwCritcR+AtWoslb9TVnIgiT9r2Nk7fwVF8lG//YrTK4ZIZ3HfD9b8JtVmkPuIPX lg1RNnE20jfDlU+02ZbkrrpM9kHVyMdh+7SW8WDf/2Tpv2j4S0DbnszoBwjbHqaUrDmR vMXV9D1Dx9CeiTkzCPFIglxsDR6njY0mh6b39S7RCNM8b+FWA2/fjU5wSSkbNkVouGJu WpSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=gtnCzCZfIQgQQH55nOcqI1DMPJUSm+J03ubYUyVqxYw=; b=qZ2FRjRKdov84fPtfvnVKTDoEijFBRmyWBpPrYrrrKotqE7HM8rnjK248yq1on5PeB Aara8ir4aWv7BPi1431yKkgmV0n0lzlbAOYlmQDdlGrUCa3MCTDXfl7PuGFt7Zi2dUQr rEDlNaS64j2pIdf2NSdM5F1+Z/W2/O/YEVsS56vZYHgGq8rJmmKamjIF82J9zpXeHR1O cd5bDc4+g/NtAmiR+0xP2b2FbEO1eaM1BICedL/4csruqVB5srmZ0qMEYuiV6IFbaxd1 uznJpNSwb6JiP1NfiEjF+idNyXP8ESkm5vzvOOPS6CnggFrfdpRRDN95Bk0pc0O/ipTv hTkw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc11si10083735edb.17.2021.03.02.14.11.05; Tue, 02 Mar 2021 14:11:27 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1446416AbhCBKx4 (ORCPT + 99 others); Tue, 2 Mar 2021 05:53:56 -0500 Received: from mail-vs1-f50.google.com ([209.85.217.50]:45655 "EHLO mail-vs1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349563AbhCBKhi (ORCPT ); Tue, 2 Mar 2021 05:37:38 -0500 Received: by mail-vs1-f50.google.com with SMTP id z65so7993698vsz.12; Tue, 02 Mar 2021 02:37:04 -0800 (PST) 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=gtnCzCZfIQgQQH55nOcqI1DMPJUSm+J03ubYUyVqxYw=; b=XjL8EZ+9enC87LtEFBe+/AGNAS47JB5xBhzh5J6YVzwZvS14fdllZTN+oXYUUQVuMT YSSfpLCGdJ13nmNpgNrvhUV22rXln1B3NwlzwLygJqWm2sDyyGqCEZ86xHywLLo2KK9T 15xSNR8Ajecio5ON4Nj2zIEx2QeeGUddazVPldiz/fQBDMidXBqY1sXnwAv7MztFqvGj HIDNXcUROpM1MralKQwbI9nvO6ee9QiGpqflrdp9G+u+zlRFOJbfTcVSuBrjSmTT9Ul5 hQfdNfB5L9wE9apNeeTsPzuzdbgqyDZvc/8SkLHaSjnDiMC+fyqcSTk7XoizWZOXbkXW WpwA== X-Gm-Message-State: AOAM532HDXIYTB1otwTzInyuiIbrRm3L31+rcurI2OQDwFN81in8v1i2 g+Jr2vQQwKkgR4zLpxlJjR2Ex3C7RciApRk4oeE= X-Received: by 2002:a67:2245:: with SMTP id i66mr1896921vsi.18.1614681398987; Tue, 02 Mar 2021 02:36:38 -0800 (PST) MIME-Version: 1.0 References: <49ebc8e27958cb77cde36e5f95ad530803259907.1607591119.git.mallikarjunax.reddy@linux.intel.com> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 2 Mar 2021 11:36:27 +0100 Message-ID: Subject: Re: [PATCH v3 2/2] leds: lgm: Add LED controller driver for LGM SoC To: Amireddy Mallikarjuna reddy Cc: linux-leds , Pavel Machek , Dan Murphy , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Rob Herring , Linux Kernel Mailing List , cheol.yong.kim@intel.com, qi-ming.wu@intel.com, malliamireddy009@gmail.com, yixin.zhu@intel.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Amireddy, On Thu, Dec 10, 2020 at 10:20 AM Amireddy Mallikarjuna reddy wrote: > Parallel to serial conversion, which is also called SSO controller, > can drive external shift register for LED outputs, reset or > general purpose outputs. > > This driver enables LED support for Serial Shift Output Controller (SSO). > > Signed-off-by: Amireddy Mallikarjuna reddy Thanks for your patch, which is now commit c3987cd2bca34ddf ("leds: lgm: Add LED controller driver for LGM SoC") in v5.12-rc1. > --- /dev/null > +++ b/drivers/leds/blink/Kconfig > @@ -0,0 +1,20 @@ > +menuconfig LEDS_BLINK > + bool "LED Blink support" > + depends on LEDS_CLASS > + help > + This option enables blink support for the leds class. > + If unsure, say Y. What is the purpose of the LEDS_BLINK config symbol? Blink support for the leds class is always available, regardless of the value of this symbol, and controlled for individual drivers by filling in the led_classdev.blink_set() callback. > + > +if LEDS_BLINK > + > +config LEDS_BLINK_LGM > + tristate "LED support for Intel LGM SoC series" > + depends on LEDS_CLASS > + depends on MFD_SYSCON > + depends on OF > + help > + Parallel to serial conversion, which is also called SSO controller, > + can drive external shift register for LED outputs. > + This enables LED support for Serial Shift Output controller(SSO). What's so special about this driver that it needs a new "blink" subdir? Isn't it an ordinary LED driver? Looking at the code filling in the .blink_set() callback, the hardware blink feature seems to be even optional? > + > +endif # LEDS_BLINK Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds