Received: by 10.213.65.68 with SMTP id h4csp1480854imn; Mon, 26 Mar 2018 08:19:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELtQzLMeqHLbtDHEVR/h0EJqfXUYkBk8TQm39LhgqHWV0nGe8C2MRelFNMj6W9Da9pAbCHdh X-Received: by 10.101.101.204 with SMTP id y12mr29009065pgv.142.1522077579189; Mon, 26 Mar 2018 08:19:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522077579; cv=none; d=google.com; s=arc-20160816; b=fOAVgPU8Cgnf0LgAR/FnGkjoRwpfw5U1FfpFLDAe6G9MI6tyvE0tnJIzhKawIb3Gb1 naXrbV3Wq5EOpXSg2L/BYXeTQjvRpOjljsJp8iA0ZVSXCGYHaOyktJhkCqbmovtAXwzH Mz/ZI6a50tj3HJ17A1Xqlywcu4/02uuPJhmvS3hS/GIpepMpKknVKslqHsDk7V8jLPbW x97oNq9j6XP8YSS5p7j9uTJVLcAhbspCOtPOU/kfjzTagsz9rnNZ2hV0fr9DWuA2hlsu QiZ6pMvpE5YNof6oCoY/c56x8piV5lLSl2KzP8d1yMIHaYiS2xgoqOaHblr8iQO2oZkT 5PVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=ymZT9pJqOKm3vcjHUvn4BTokUbV7/WcreLoIdFMGa04=; b=j6RTKa3nARi//dF7bQIrMNaZReJ0cBVa4oFH+jHvY15ZuJoChBLoEPIKlfMIewvHwQ 8C7Qhfft4TLlqjGovXOW3V1nE3mzqBS96xpNhV0rdbwWf507QlPpDvNcX7Y/3gKN2aDD VViGOXOemeW7ARg9YzLwoO+A6t5tTOcAH8mG4P+ht10I+seFvXWUUZ1E3feifAIx6wxC gmXlSP7c0A9QSAowpbVlyO+VdgpDF3Efots6BfHtsP0X7OMU65e9C7ariJzho+zw/61k OcGkSE3HlVDR7CMqJhMlTg8Y20Qhpv62i0PIxinTJfVcOYsNJl4ymckgnyVnEDVQBCzJ ETLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fMhueUq1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si10310490pgt.130.2018.03.26.08.19.23; Mon, 26 Mar 2018 08:19:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fMhueUq1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752177AbeCZPSM (ORCPT + 99 others); Mon, 26 Mar 2018 11:18:12 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:54407 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752040AbeCZPSJ (ORCPT ); Mon, 26 Mar 2018 11:18:09 -0400 Received: by mail-wm0-f53.google.com with SMTP id h76so16160938wme.4 for ; Mon, 26 Mar 2018 08:18:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ymZT9pJqOKm3vcjHUvn4BTokUbV7/WcreLoIdFMGa04=; b=fMhueUq1imbvjdvGu9JIsRsXXnW5HwB3apLl4W/nyy9A4hgcEmU6eSANd2ii84taE+ 2rGmrm1arlG0gLDAQy8zVN1UeOreSuPiWWlm6ju3TdB+ZPG/+7mUJtPBo+zxPnlUosBB NK6WebUsTozCkTb/kZL08NZn6/S92TZo3rqA8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ymZT9pJqOKm3vcjHUvn4BTokUbV7/WcreLoIdFMGa04=; b=Af0BdI8pN1yjkLx/YENtcOVmqEst+bQfY66/+LlmLdWPvAphNrPw2DTor0F7KkR0Is 5BwefRuF24LvXpcWc8ycixdgrr1Kp8762b3GAXxlJbGPy+djoLPgZMOmBpxLJW5nO9z1 0BiEhCwZINdowxhLiGv3it/ho0cBR/f1fh/ohW9Y9UQ6Cp8DnqRsvogv4HCIiZnjnib1 acl+4veE87gyOqFxcloRmw2aBBvdIJkkXs+vA4GFY3HaaBNYLQNnf8sGXpgkFTQwSXnL +y3gQbxNTxwEO8A2QBvvH5F6vvYjpMpzQ7JhStRtt+daqMKmRy8Eh4Y0i9Aiiq5vDf7V y54g== X-Gm-Message-State: AElRT7FgSNaSpPgOxsCyKHz8zoK9Gh1ws4kX77M4Ms9/sXYRc7Gnyz75 juE+TdZVIx+9S7mJj0xCaToJJQ== X-Received: by 10.28.107.5 with SMTP id g5mr14444830wmc.133.1522077488511; Mon, 26 Mar 2018 08:18:08 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id p25sm7602213wmi.14.2018.03.26.08.18.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Mar 2018 08:18:07 -0700 (PDT) Date: Mon, 26 Mar 2018 16:18:05 +0100 From: Daniel Thompson To: Enric Balletbo Serra Cc: Pavel Machek , Enric Balletbo i Serra , Lee Jones , Jingoo Han , Rob Herring , Heiko Stuebner , Thierry Reding , Bartlomiej Zolnierkiewicz , Richard Purdie , Jacek Anaszewski , Linux PWM List , linux-fbdev@vger.kernel.org, linux-kernel , Guenter Roeck , "open list:ARM/Rockchip SoC..." , linux-leds@vger.kernel.org, "devicetree@vger.kernel.org" , kernel@collabora.com Subject: Re: [PATCH v6 1/5] pwm-backlight: enable/disable the PWM before/after LCD enable toggle. Message-ID: <20180326151805.dzqqar36npmwzpdr@holly.lan> References: <20180326095213.18362-1-enric.balletbo@collabora.com> <20180326104205.GA12425@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 04:40:21PM +0200, Enric Balletbo Serra wrote: > Hi Pavel, > > 2018-03-26 12:42 GMT+02:00 Pavel Machek : > > On Mon 2018-03-26 11:52:09, Enric Balletbo i Serra wrote: > >> Before this patch the enable signal was set before the PWM signal and > >> vice-versa on power off. This sequence is wrong, at least, it is on > >> the different panels datasheets that I checked, so I inverted the sequence > >> to follow the specs. > >> > >> For reference the following panels have the mentioned sequence: > >> - N133HSE-EA1 (Innolux) > >> - N116BGE (Innolux) > >> - N156BGE-L21 (Innolux) > >> - B101EAN0 (Auo) > >> - B101AW03 (Auo) > >> - LTN101NT05 (Samsung) > >> - CLAA101WA01A (Chunghwa) > > > > Ok, but this changes behaviour for other panels, too. Are you sure you > > are not breaking one of those? > > I can't say that I am 100% sure because I didn't find all the > datasheets of all the panels supported in the kernel. But all the > datasheets I checked specifies this sequence as valid. In general I > think that doesn't really matter, but I know that at least the > B116XTN02 panel requires enable first the PWM, wait 10ms and then > enable BL_EN to avoid garbage. So the other way around is not valid > for this panel. That's the reason for this patchset. This is certainly a patch that could cause regressions... but it would be a very odd panel that *likes* to be exposed to all the weird edges that might occur whilst the PWM stablizes and a panel that *needs* to see weird edges to work seems even less likely (since it could act different with each SoC). So whilst the patch is not absolutely cast iron guaranteed free of risk, I think it is well enough argued for. Naturally I may change my position *very* quickly on receipt of the first bug report ;-) Daniel.