Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1160385lqb; Thu, 18 Apr 2024 01:42:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3Kkvav/lavV406+fLXSTeqsvBxJqpPzUQHWTrXRY1r45Frv/0iOsfiHMyHgo3k9a+5G6+MKH5gvCvhHjLP5uCBTvtcgNzU2eXKVlaOA== X-Google-Smtp-Source: AGHT+IGTAnNzKcTlGX2efvIyK8CI2MSbyPbDEwbQVXIBkXfPGI+6/O9hIipsFld9YiyJsUZR2go1 X-Received: by 2002:a05:6a20:4387:b0:1aa:92d8:b9 with SMTP id i7-20020a056a20438700b001aa92d800b9mr2572484pzl.5.1713429746423; Thu, 18 Apr 2024 01:42:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713429746; cv=pass; d=google.com; s=arc-20160816; b=UkrEeHeuqyNA92pLIBBPN5v1ZRtHSDbZlvNuvKbpCG9Eqo/wUI/P5QJ5LXd4l3Ir0U fAEx31G6mZ8bk3QM5iGfRaNx9D+e23/FnXGv7kn3iYRUdYso9gHKKsX+P5J6UxgbLC3W 0wKnTcRwclDW6qmTCh7YWIornjCKzjd+vbwcu0+MZarD8DaH5X+6UlJLJfhb75Y81i0e O694+aUeO/5QWe0+L1RFRv0hxRaX/mYP/FNLLUY83GlCGLwWxIhG771YGGNg8RgaDJDv fpQWngkDkyW66LGwvMwBgLySXCEXQJEgMIBK9GGIgsuvVNDbUwbv3JR7f+AObzODSmRl 7d4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lcAKWCMj+reGzv/SxgQTObCQDHvEXKI5uKBcKnB6ORw=; fh=qYy0aJZuCdJb1rOvfb7B8c1+5jyxUzjkKG3xz1v6V/4=; b=N8jYbG0G38G8bLqNJrT8AtBq/AbVTIa9j7ZvEpYW1ZhpQVNqp9+mI+nWl0YFulSbkT frA5lNN/TCocdc++Xcs6NkM1RMHU2IQ7ZCAUSaIexhAiPnr73ZpmyXdaCYcmrZe68pz8 QtldXANGInqJH5yk5LQQnEcvtQP/97PVYvCMff+0O+040sQCYBX+EUyIbEryVE3wHSYG ZSadD5Z+1yX2dvHkaBROQJJgYqrpddmlFvo0VfzsrH7In5lIbzMscxMGuPJ8/oyUsUtR 69biKxOd/V+osNFZLIR8LnveN2dcBHGelPF8bBSSvzjxG6UsAMxY6HnHPRNgJixa47G5 s4XQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gtrbtFfU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-149737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ot14-20020a17090b3b4e00b002a4fff29ecbsi1042428pjb.121.2024.04.18.01.42.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 01:42:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gtrbtFfU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-149737-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149737-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0D816281700 for ; Thu, 18 Apr 2024 08:42:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC7A415AAD3; Thu, 18 Apr 2024 08:41:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="gtrbtFfU" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 272F51E489 for ; Thu, 18 Apr 2024 08:41:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713429719; cv=none; b=q0mGkjqF2Qf9c7xfXTFXHcbOVKll3PWu+ZQeM4b+5vijuk/KbzOQk/RsykaT0hqHEQYERfHX6f24pxB4ejBnI+yTTjiSnrE+T/uFWghc7ZNoR4gWfjlNj53DzSe0Fw1ll+VndjvV7va44zgfY7vGdqO6sBqoKyk95B2TMLz4et0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713429719; c=relaxed/simple; bh=lcAKWCMj+reGzv/SxgQTObCQDHvEXKI5uKBcKnB6ORw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aQ2hNqjyt9PVBmgTe3oJe6mwESnnmyyk9R53VRG04lXyVRdLtdcA4Hev4L/g+LTXmg0OBHGdDvaG8pYiW41RY2Y0BBGcsce1L8MFf92iYEAkoFzV4Jx0stB9cpfcfyh6tyWZiWxNQQiRyCvw7/jwES+Dt61r+Tcelq0z09W+gpI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=gtrbtFfU; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-41882c16824so5201195e9.3 for ; Thu, 18 Apr 2024 01:41:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713429715; x=1714034515; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lcAKWCMj+reGzv/SxgQTObCQDHvEXKI5uKBcKnB6ORw=; b=gtrbtFfUUdhicm878kFdTF6Isf4skHahi/1MuSlK4Z7HcYM8AA2y2KsviQ/of+c9X4 eY9SOJoIudA01qadgFIacWC4EpAIgPhq50/VimmTJYZW0r4zh8AQHM78HL+7MsZ6FmzJ pM4RRXPJrm6/s3lB1dkuUk99ghDYFvBq1TyfmdOEviYl4jQ3iPrQ75UJ+gebDdu8JUbD Gtop9FCaNMyMWUtcIj2T4itJWKQB/h28sjDw7SLBn8cXZNJkaVAbMz19006A528aWIRf R1BWJ3Pq5M+FcuOyuy2gKU8hWXCL55tXzrMLrTXjRZ1bvzAhtpkdSk5z1WEriQKp6MVp 6gsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713429715; x=1714034515; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lcAKWCMj+reGzv/SxgQTObCQDHvEXKI5uKBcKnB6ORw=; b=PZUtgSTCa53JqyVKnDAAipCC9EGxvIi0Zk3/tpoYH6Ocu4uWFmvdPkgfwZlRdJJq2t nBVpyfE/SStS5gkBhF4zzXZLVwNYJGW3+VztitEVaU5qPQ/vRY28XhieI4rcH6QfVwxt 8tT4eHTwje+ioOSuoiggHsJtxIilQQmzZP+5mHOow1GM0JvGht9EfmlBzlj446hz39tA 6efMMsKRI/SqYp8XY94Ye+qSTxg7eIY7uLLXxWW9rXfoJF/SW7l6FNbbXSdgfpfTZReN ffOSab8ZXJRVH3Cbm6vxDn5T0veXHJGVaK7fDFDmsoYlNsG308NRQcvYxxZJI48LdYNo Yj4g== X-Forwarded-Encrypted: i=1; AJvYcCV5KFHPQl62cVHszSXnZ1ZM7u4AKEzP7rRNR/iNDVeLhhfISc5RJ582q1Ltps/LrTRlxOCmS9KLwFhPVTW6IaLnlsYI4Ce5hQpI13WM X-Gm-Message-State: AOJu0YxckGducw4EfzLMUlrfXLkdFJLq74GFG+/w8iwDqHO0z2VkHrOu pvsWcCX/Ndd6X68iK72zy+UuUAbot1VfMlPOmt52TREFV/00gwoh7stuzJR7CsA= X-Received: by 2002:a05:600c:3555:b0:418:f400:4af1 with SMTP id i21-20020a05600c355500b00418f4004af1mr12010wmq.38.1713429715231; Thu, 18 Apr 2024 01:41:55 -0700 (PDT) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id t18-20020a05600c199200b00417ee784fcasm1894342wmq.45.2024.04.18.01.41.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 01:41:54 -0700 (PDT) Date: Thu, 18 Apr 2024 09:41:57 +0100 From: Daniel Thompson To: Flavio Suligoi Cc: Lee Jones , Jingoo Han , Helge Deller , Dan Carpenter , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] backlight: mp3309c: fix leds flickering in pwm mode Message-ID: <20240418084157.GA162404@aspen.lan> References: <20240417153105.1794134-1-f.suligoi@asem.it> <20240417153105.1794134-2-f.suligoi@asem.it> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240417153105.1794134-2-f.suligoi@asem.it> On Wed, Apr 17, 2024 at 05:31:05PM +0200, Flavio Suligoi wrote: > The mp3309 has two configuration registers, named according to their > address (0x00 and 0x01). > In the second register (0x01), the bit DIMS (Dimming Mode Select) must > be always 0 (zero), in both analog (via i2c commands) and pwm dimming > mode. > > In the initial driver version, the DIMS bit was set in pwm mode and > reset in analog mode. > But if the DIMS bit is set in pwm dimming mode and other devices are > connected on the same i2c bus, every i2c commands on the bus generates a > flickering on the LEDs powered by the mp3309c. > > This change concerns the chip initialization and does not impact any > existing device-tree configuration. > > Signed-off-by: Flavio Suligoi Reviewed-by: Daniel Thompson Daniel.