Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp585901rdg; Thu, 12 Oct 2023 14:51:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrbX7g3bLqN3Qa7Cj40n60WREG0tPHuahJz3zE7d26gMwVhmoYxL+CttKlYMMeTglxk0xz X-Received: by 2002:a05:6a20:7487:b0:14e:43b0:5f99 with SMTP id p7-20020a056a20748700b0014e43b05f99mr25991429pzd.52.1697147493695; Thu, 12 Oct 2023 14:51:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697147493; cv=none; d=google.com; s=arc-20160816; b=z2OlKiLhhv8OW+tpUp5ODFGLbHubdyqFzkD0PiE/+7jGgBSheiVa1c4bhuuAmGUECO D2la9iN5egcsJjJFuntAV46i5ZpzmTqVmM/xBaXoCXS9gXAF4J9sdwKE8H7H30RUXyZP 4YMT6NetYvmyBmoo9ZE1T74LQkbnxE2AhEJCDuJpvw8B3u9vQCdU8iH0IbMMQSjSs97M BNTVTg3kGg76MYyIu4wl+Q/pPSySScHZldOs79tOex5lwQMQRdjC9BaiF6LaClm7LJxN snh1PS0O5MesakFK2SXNzQIOhPO+xQyULnJeiSmjToqaPvDBNGjttrRauBZ7oQxXIrXb arDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=voUltIrLrhXdVJp9/yCwFFwFBu2KkCyxDDIWBrI4Xog=; fh=ic3vIuZZYFUqM0wFFH1DOxc3ISA5AuvN5gCTwl+lO/c=; b=yt0zBSxXHW4G/q2n50B/7fhL6lrTT2oddqxsARWiF04IexBdS2faRZY/l6+hNa/tZG zjjA0hxwk2trSIdz3J9XkRAXbXUaOH5RgHt6m9l8HyxbCMpnL2coXHwTOZaHnWICx1sB 2AnSn2NFI57Cy0h2QHgLU2k4Vkaz/8uYxbDnnxAOxyvn0LpVJEA9jce0azYJIaGqdQPY QuZ2VS2W5ZxD38S+9NsV1d/VtmxZSSQGUJOOkfKtl27FyfxE//TZXN6DfpUpOvtsnWCI d8MZNjz1SaZLCqf62yUSrf3PNZ38C/M76uMVMGd7r21b25ZBI2LRkc4K6stdtGKZIkeZ 8uGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HjSHOCag; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id l31-20020a635b5f000000b0057ab7f46d3dsi1810234pgm.108.2023.10.12.14.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 14:51:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=HjSHOCag; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3784F828E8E8; Thu, 12 Oct 2023 14:51:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442959AbjJLVvY (ORCPT + 99 others); Thu, 12 Oct 2023 17:51:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43906 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442945AbjJLVvW (ORCPT ); Thu, 12 Oct 2023 17:51:22 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F09CBB; Thu, 12 Oct 2023 14:51:20 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39CLbjch027956; Thu, 12 Oct 2023 21:51:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=voUltIrLrhXdVJp9/yCwFFwFBu2KkCyxDDIWBrI4Xog=; b=HjSHOCagbHCB6bOReW+vqK+Dfm07myfSFl8yPtmClixpKCcx4C5UnnqZmJp4EkkrDlGk sDingmngYmPHq+uM3HBBqPVeQGzhUBBMSXXi3SA5X0kNnLJQP6XLfqhUZ1vUA3G+umcu gEnsitEU8Llg9JgShMHxB3a5DvlmHMEYr5M5u84mB7GEvxhxzAQTFiqgJF+aWHmqIvr2 9/U+wcedGEb8KGNxTmqgyc7htL3M+bz8iq1TCdvyJkUU1ehqhGC3hPkWpIqnJq0Xm8vL 1+bDS61NU97RlA6x7NV16IlgORC6blhN3ETupnnFsJrRxkKbilBOeheB+98R4nhkHEJx pQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tnsmq4h32-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Oct 2023 21:51:03 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 39CLp1Wo011405 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Oct 2023 21:51:01 GMT Received: from [10.110.43.201] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.36; Thu, 12 Oct 2023 14:50:59 -0700 Message-ID: Date: Thu, 12 Oct 2023 14:50:42 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v5 0/7] Add support for LUT PPG Content-Language: en-US To: Luca Weiss , , , , , , , , CC: , , , , , , , , , References: <20230929003901.15086-1-quic_amelende@quicinc.com> From: Anjelique Melendez In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: PeOLq1QMggphqx9nLudVIdQ5iZgaUs-J X-Proofpoint-ORIG-GUID: PeOLq1QMggphqx9nLudVIdQ5iZgaUs-J X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-12_14,2023-10-12_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 mlxlogscore=999 lowpriorityscore=0 adultscore=0 priorityscore=1501 impostorscore=0 spamscore=0 bulkscore=0 clxscore=1011 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310120183 X-Spam-Status: No, score=-4.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 howler.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 (howler.vger.email [0.0.0.0]); Thu, 12 Oct 2023 14:51:31 -0700 (PDT) On 10/1/2023 7:15 AM, Luca Weiss wrote: > On Fri Sep 29, 2023 at 2:38 AM CEST, Anjelique Melendez wrote: >> In certain PMICs, LUT pattern and LPG configuration is stored in SDAM >> modules instead of LUT peripheral. This feature is called PPG. >> >> This change series adds support for PPG. Thanks! [..] >> >> Tested-by: Luca Weiss # sdm632-fairphone-fp3 (pmi632) > > Hi Anjelique, > > Actually I've retested this now on PMI632 (and also realized that my > previous tests weren't correct and wasn't actually using hw_pattern). > > Using the following commands (after boot) I'm expecting to get a > 500ms on 500ms off blinking pattern between white (255 255 255) and off > (0 0 0). > > echo pattern > /sys/class/leds/rgb:status/trigger > echo -1 > /sys/class/leds/rgb:status/repeat > > echo "255 255 255" > /sys/class/leds/rgb:status/multi_intensity > echo "255 500 255 0 0 500 0 0" > /sys/class/leds/rgb:status/hw_pattern > > What I actually see is it blinking between cyan (0 255 255) and red (255 > 0 0). > At some point after playing with many patterns I got it to actually > cycle between white and off, but I couldn't reproduce this again (or I > didn't try hard enough). > > > But with this example it correctly blinks red on-off. > > echo "255 0 0" > /sys/class/leds/rgb:status/multi_intensity > echo "255 500 255 0 0 500 0 0" > /sys/class/leds/rgb:status/hw_pattern > > With "0 255 0" and "0 0 255" the other colors also work fine, it's just > the combinations that seem somewhat broken. > > Regards > Luca > > Hi Luca, Thanks for testing again and the feedback! Looks like for multicolor devices there is a small concurrency issue with enabling pattern at the same time for all the led channels. This could be why you observed your device blinking between red (255 0 0) and cyan (0 255 255), instead of seeing all channels (255 255 255) blink. The fix I'm planing to include in the next series is is to disable the multicolor led channels first, then configure all channels, and finally re-enable channels so that pattern is triggered at the same time for each all of the channels. I am currently testing with pm8350c device so if you are able to test next series on pmi632 it would be very appreciated! Thanks, Anjelique