From patchwork Sun May 7 17:29:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dylan Van Assche X-Patchwork-Id: 9008 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1682935vqo; Sun, 7 May 2023 10:33:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Gj+8N7PMy5BvSs09e7GQ293Qs0IDX0iBKxfNT5cya4oCOKJX5zBGcVOLiEz1XZQ9utyCr X-Received: by 2002:a05:6a00:a8b:b0:643:b27f:6c43 with SMTP id b11-20020a056a000a8b00b00643b27f6c43mr8550321pfl.27.1683480805101; Sun, 07 May 2023 10:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683480805; cv=none; d=google.com; s=arc-20160816; b=r1JiHg8x4iwnVirGdtAF9uD+qx6YbZq/sBgibnEjpQp+m/UH3Bny0/PZ5LgQsAeP31 keMSv0+MksbBJpZzzw+HVED6mM+i+r3Guqcoj2BmLBNRasSWMy/nT0qmfkmq+nLQ7EtX eVePIZXULTutfGdAbgKa97xOTKejkUQZWb4I+px4FLxqEtNIiP0PzP2izGbfbn8vhfD1 sRTn2Q/aHSc14UF1AEfVAT+yEi2so1F199eWHqRkyrn3nWTjQkDw6VVoxUEpta+w8sP+ IGeGw8mEPo5WvMhvGGSjPmTCK+mMCL56hAJH8N7yZVLL5KpNG9r/UbeMQ4IwyClBUjz5 6FGg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=RQPVnOmT5Rx6sI76v3BMcGlgaIUBrNyVx3grvraWAAE=; b=sR9yD65YfRlwgzMOArxERUDvFTO3QfPI99UGac9HwdSwUpmyrIAmMhV4lOkKw96Ye9 UwZuNBA1PJnxT0m+P2doLSPL4tkMA0EFX3WmanGpf6DVXXU6LA1HuKrcXjA1sN8v/Woo 7CIqK4KaRitqa3nksgl+OP9qDmxeTuf6AaSOz9UPfbOxT1SttID4pOCG5KmWtQ4QVo84 qey/kvu6Sbkrr27Uh50l0Gha5YBmJ6An93MebyEZtku+AeqbPtESZKdvqwUcXQMkzNCJ iRYowniPj6OHGUGjx/1XShcN35yn5CYKUB7SxNw7B3VWvn7SMtWbEZZqThBVfHZ0vU42 yEIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b="mArWJN/X"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j15-20020a636e0f000000b0052cb480458bsi4878592pgc.97.2023.05.07.10.33.12; Sun, 07 May 2023 10:33:25 -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=@dylanvanassche.be header.s=MBO0001 header.b="mArWJN/X"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231672AbjEGRcD (ORCPT + 99 others); Sun, 7 May 2023 13:32:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjEGRcC (ORCPT ); Sun, 7 May 2023 13:32:02 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050:0:465::202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 546EB93C8; Sun, 7 May 2023 10:31:56 -0700 (PDT) Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4QDs144nl0z9sTS; Sun, 7 May 2023 19:31:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1683480712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=RQPVnOmT5Rx6sI76v3BMcGlgaIUBrNyVx3grvraWAAE=; b=mArWJN/XkWGwWEminCzDSpCuEYz3WmdnYbQch6QNsnn5d/AJsz4sGEOWyHD8Rr2erguK4f te9rOhRgpcPlhl6P/anviRThQ7J+hkEOsMenVTU6MGu/VboJu2nqFJm0a5OCP8qXu4KEBI q4mtiR/qTzMfyCoJ0qW0Pft394kBxeqzcrasWUNBdomM9s8AGAvz0KegHs20+aL6km6fDd hfsZve6VNxAcuaRo2Hj8vC3suHfYoxT2B1C6MHfdJ/SzCLWil/CxWWgMvs+x0HrX1o3t+5 idPs0lUsFQriX3hJV+EeuBZaaaaY8enWOKOcxdtZxSbhHzMaeCcr29PFedkxJA== From: Dylan Van Assche To: pavel@ucw.cz, quic_fenglinw@quicinc.com, lee@kernel.org Cc: trix@redhat.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Dylan Van Assche Subject: [PATCH 0/2] leds: flash: leds-qcom-flash: add PMI8998 support Date: Sun, 7 May 2023 19:29:39 +0200 Message-Id: <20230507172941.364852-1-me@dylanvanassche.be> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765257568475684518?= X-GMAIL-MSGID: =?utf-8?q?1765257568475684518?= This patchserie adds support for the Qualcomm PMI8998 PMIC to the pending leds-qcom-flash LED driver (v8) [1]. The following changes are necessary to support the Qualcomm PMI8998 PMIC: - Add subtype 0x3 for the Qualcomm PMI8998 PMIC. - Disable LED when changing the brightness to make brightness changes propagate when the LED was already enabled. @Fenglin Wu: Feel free to pull these patches in with your v9 if you like them. We discussed support for this PMIC in the past around v3, but never could make it work until now. [1] https://lore.kernel.org/all/20230303095023.538917-1-quic_fenglinw@quicinc.com/ Kind regards, Dylan Van Assche Dylan Van Assche (2): leds: flash: leds-qcom-flash: add PMI8998 support leds: flash: leds-qcom-flash: disable LED when changing brightness drivers/leds/flash/leds-qcom-flash.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-)