Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp808001rwi; Mon, 31 Oct 2022 07:48:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6nGrJIdr/CSXoESAKjgTh1SdxqCV5ak7d4UbandOIbB7q1fqtiaDn04SpkS9AvlvKFraxC X-Received: by 2002:a63:516:0:b0:46e:d2ea:22cb with SMTP id 22-20020a630516000000b0046ed2ea22cbmr13144989pgf.144.1667227735698; Mon, 31 Oct 2022 07:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667227735; cv=none; d=google.com; s=arc-20160816; b=ENvOOO4F0/5aUU4W5etPjGNgE4/aE0JCUedatyORDNs0FOwOkt0F2XKnJBstHx2Xxl fhey4SjVrv96KTDhoTehzwS8vSJUZKeCgfY1tpJ9zfSjTmMXrr2+af8kX6hFi0VsgR4a Tu8R4nNaIPZkAEByNZXC15/aBKYkaXnJXpqgMOyZe310c3VEGHtZ3oNOwQZ1SCUkjv7f V2/gOqINJPrWGAIuKR4hYMaVG053P4/Zmrr70dQI4d2eNtmDrLn/nZdcKm7YVtc2Y+FL x7mriti9zMfDay2wIxhC2j4KvcWBbOKeLLaMS3VkxhSmw8NZXHQVrHNGlMP2DslmUZaF MiJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=ZcCKYUH9Lbw/pHPSk6/2WqMZQyQUMyuhsXpUiDfOF6A=; b=ukM5/rwyvU1tRh7kgH//HVz/Tn/Yuuxzbr5pPjLJe72+yBTkEIgcWpGMwy/m+rqCTb YAKwUw52EpJ3CIrO+6nvp3eL+NLKEofDr1fFxxKxiJlm/75RUrdoDcUcvrbJH6xFyjz3 /s9A7v0BQVEJ5JWysC2CBrsNKuWQMoBVIp0TBwzmznFci8LaTlozoJmqTdYTl6HBJcah i4Gys1/5co2ShC+EqqmcmijpxfDv4k5vRcuLBlZkd71rgUUuKQnM1PJsQkX9JEYI8XvZ x4hImJ0+jZUbRlqRcc0fDQu0mzzR1PJaOwi7tuFLa3D/lGf3anv7EsEUvcNk5K1IEcp6 OnIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=MHShAiwK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a170902f61000b001868bb70fd5si9383000plg.124.2022.10.31.07.48.42; Mon, 31 Oct 2022 07:48:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=MHShAiwK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231363AbiJaN45 (ORCPT + 98 others); Mon, 31 Oct 2022 09:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231347AbiJaN4z (ORCPT ); Mon, 31 Oct 2022 09:56:55 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43AD11055D for ; Mon, 31 Oct 2022 06:56:54 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id f7so11869669edc.6 for ; Mon, 31 Oct 2022 06:56:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ZcCKYUH9Lbw/pHPSk6/2WqMZQyQUMyuhsXpUiDfOF6A=; b=MHShAiwKTrTKgezu8b/h1HoWiKmRbMo2Se7Cqp0JBdChjeixK+L0le1H3GXkvigB+s tl1nb+Pnb1oJjdpb/LjPiD9TJUKR7TUUPFUHxlwjWN1j2ruklEG3lDaWN19Q5V7o8i2Q 9ae1VwZkDTRFRsksktZlCLJ7ukCegJxsj2IP1C3+23KdkS872MiAqMHYUaA0Y8tj5X4m pZxEweYicWfz1f3HCYMGqWP4u+oouDxlrGb0/RU3S8kFR02V3F6lk405m4PmD4WUR2LO CsbLxLDBTKjBBFeQBWhgZz7hrFJuiMpeZOa+wHqM5IfSZLG4v481jSWye7Gm9kURvhmJ Gl3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ZcCKYUH9Lbw/pHPSk6/2WqMZQyQUMyuhsXpUiDfOF6A=; b=CIcUb8Tqmm6rp0IALW+7fQXkCdvspCelAyWHMoGXrETAVCUThYbBDOaxqjJmP9Zhdv Ku1Booke7zAPu/KVQTMGIc73Fb/utGYDACo+057QkNpe5Bqx2as5vv62eCf1h/dNQW3/ QQi/ZdK10cKP34RN70SC9KX1OdZqMXjZ3eviKT79ZMrD0Bd7hi7FlesmEPM8g08aeTsK ObIp4sKzQa93KrBQkBaWRTwVvsgvsbrO66RQPCM4sv9nF6sBgS021qnn3PbECLxODlYE 2+Ys2foGA6TWrBP1UwZrYBunKBWFKksFQk/5sv03xlZ8HKTzWWwmGYfrJvUHHDgbMVsr /oTw== X-Gm-Message-State: ACrzQf2jzJPpUf5IaGymRt3WMBusN7Z9T7H/6pwCL8b/rmSh/nHuT9ey cNRGA8IpF1C4lYKLw6Q/bW4Z/w== X-Received: by 2002:a50:ec99:0:b0:462:2c1c:8764 with SMTP id e25-20020a50ec99000000b004622c1c8764mr13656055edr.325.1667224612782; Mon, 31 Oct 2022 06:56:52 -0700 (PDT) Received: from localhost (31-151-115-246.dynamic.upc.nl. [31.151.115.246]) by smtp.gmail.com with ESMTPSA id t31-20020a056402241f00b00459cd13fd34sm3214246eda.85.2022.10.31.06.56.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Oct 2022 06:56:52 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 31 Oct 2022 14:56:50 +0100 Message-Id: Cc: , , "Dylan Van Assche" Subject: Re: [PATCH v4 1/2] leds: flash: add driver to support flash LED module in QCOM PMICs From: "Luca Weiss" To: "Fenglin Wu" , , , , "Pavel Machek" , "Gene Chen" , "Jacek Anaszewski" , X-Mailer: aerc 0.12.0 References: <20221025073802.2662564-1-quic_fenglinw@quicinc.com> <20221025073802.2662564-2-quic_fenglinw@quicinc.com> In-Reply-To: <20221025073802.2662564-2-quic_fenglinw@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fenglin, On Tue Oct 25, 2022 at 9:38 AM CEST, Fenglin Wu wrote: > Add initial driver to support flash LED module found in Qualcomm > Technologies, Inc. PMICs. The flash module can have 3 or 4 channels > and each channel can be controlled indepedently and support full scale > current up to 1.5 A. It also supports connecting two channels together > to supply one LED component with full scale current up to 2 A. In that > case, the current will be split on each channel symmetrically and the > channels will be enabled and disabled at the same time. > > Signed-off-by: Fenglin Wu > Tested-by: Luca Weiss # sm7225-fairphone-fp4 += pm6150l > --- > drivers/leds/flash/Kconfig | 15 + > drivers/leds/flash/Makefile | 1 + > drivers/leds/flash/leds-qcom-flash.c | 700 +++++++++++++++++++++++++++ > 3 files changed, 716 insertions(+) > create mode 100644 drivers/leds/flash/leds-qcom-flash.c > > +static const struct of_device_id qcom_flash_led_match_table[] =3D { > + { .compatible =3D "qcom,spmi-flash-led" }, > + { } > +}; Dylan has noticed that auto-loading the module based on dt match doesn't work currently. It seems that this line is missing here to enable that: MODULE_DEVICE_TABLE(of, qcom_flash_led_match_table); Please add it for v5! Regards Luca > + > +static struct platform_driver qcom_flash_led_driver =3D { > + .driver =3D { > + .name =3D "leds-qcom-flash", > + .of_match_table =3D qcom_flash_led_match_table, > + }, > + .probe =3D qcom_flash_led_probe, > + .remove =3D qcom_flash_led_remove, > +}; > + > +module_platform_driver(qcom_flash_led_driver); > + > +MODULE_DESCRIPTION("QCOM Flash LED driver"); > +MODULE_LICENSE("GPL"); > --=20 > 2.25.1