Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5963976ybx; Mon, 11 Nov 2019 01:28:02 -0800 (PST) X-Google-Smtp-Source: APXvYqwQjuUDbWE90IXOAxEwO9RLPdCIN1MieBrqhO0VbqsfOyTEVNdSHYf53KW9rPDiIPImEKu4 X-Received: by 2002:a17:906:1fd5:: with SMTP id e21mr21134844ejt.320.1573464482372; Mon, 11 Nov 2019 01:28:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573464482; cv=none; d=google.com; s=arc-20160816; b=KcAdp1OvURtq3kDkYaN7UNzxuixc0MYA7M/CJUfsvAApU129iIDTyDHrQEA3MznR5u P1eu78hUpG95olohMTLS4B4OGxz64mMNwuNNCN3c973TRs7K5wjvgX68iwYYg1JDv/hl WYDYmSzXsHLMwXMOfhSVbPZdm28AErkveBlJxuRAsA3b0CqzLHF31v2gHnb601drSkwl PeGRLM2/adlLJs9w70w2omOP0qnzJ6jjvFGVscTF/HiOrCh5Y+4BecERGiPdHfJHiR+X ZuOPMsym9sWSWQRCtRu/QOFjWZ6BmWrz1XfQdOxqb8LQrCVhflyrLtSnxhx8XnONN++A LISw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OhCha09COfgKPtZLiOdmeCfAFANdSRBnfQoI436vAFc=; b=QIe4PVPhZn1HI9Ir+pHL7ftAN8/oC3Nhx+Gb3u7twCcFrSjQc8RzUSxr1VCZy8ttSl WI4LJUEXhAlWf0w8zX4etgWGjbkaW8GvYyNEnbwhbg0ZDCXvJ+m36oMr0dgbi0OFM0BI 88zEWR9L0QfrjkYqDn4OlhuUiHGBaq3xTzhpCHt33kD2pjwRexbL1mae9ffBX4ODeOih xgjpj0DhVzEOUpu+2Ce4UIVAge8e4XRVKZz1AWiaqA8oOQAn5MrJaIvW+FnxDA045+dK Lzo/iIwunjH/ubcbI4pXohEmARYGyDnMk9gBykru/um+SDv3tges7OXFw/toJyySX0Lv cTQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kZPZiQyy; 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 r18si8801453eja.211.2019.11.11.01.27.39; Mon, 11 Nov 2019 01:28:02 -0800 (PST) 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=kZPZiQyy; 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 S1727180AbfKKJZz (ORCPT + 99 others); Mon, 11 Nov 2019 04:25:55 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:51567 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726877AbfKKJZz (ORCPT ); Mon, 11 Nov 2019 04:25:55 -0500 Received: by mail-wm1-f65.google.com with SMTP id q70so12479039wme.1 for ; Mon, 11 Nov 2019 01:25:52 -0800 (PST) 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:content-transfer-encoding:in-reply-to :user-agent; bh=OhCha09COfgKPtZLiOdmeCfAFANdSRBnfQoI436vAFc=; b=kZPZiQyy9gd/WCmfdT0wc6TN4JLHAvMXmaxLilUQegA2YhfTRSZrmqW7TKLSuPyMDn +x8tdXkQ7PW4Br2k0sinujFdrQ7SCrG+PpDq/RZ542MrG9L57mfRQnYkxFm0lbRJ30VI uFRc/EUwu7WA2upRC0lelKTE0WBo2EFku5QrFMhqrmseZP5tpMzx71G7sBUu/Tuep6fL XLjOFAKVzoLmN+LRE6grlpQ68CMD7HFDTvnFkdZsoY2GQE1KHAzDacRGr3QY2x1ALXNm tJH6MLLOlVJgyyU+bOjZ4u35qcxklOqbZnAyB4jRfJdcQJVleJPk6/IahsD0Mt7FdA23 u+9A== 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:content-transfer-encoding :in-reply-to:user-agent; bh=OhCha09COfgKPtZLiOdmeCfAFANdSRBnfQoI436vAFc=; b=KeIcnFoteDluEYXgX0ysG3akCI29A79mUyIMu21UUghT0Yb1eVUJWBLPTKXKUAyWdm wpY7MWS4RPvhIei1uOPtpTsfK2RO4cvLjbJfYHw78pattZEzz80tdr4yleAXMFWctZyK j1zvfxqGIscFg5LwLGrVacQcoEOwXNbKuWI1TV8LYjMeg6L2bUyQU0GZftxWPe8nlvWp g/SJSN8ulrOfCIdpY6nQaI2UCPfJjTiQMvxdTRUZDo/0XGiUe0/8l8Kdk7oh8Ig23agh vCUi+UGFyGwTZU4oWYKbV55eI2vzkPhYRy586LPXCPh1xzW3+bhqB6tks885Uu4F66zZ dkKg== X-Gm-Message-State: APjAAAURRyZyzk9Iesi7o88xZyef/FIU4zDPfGijBUuDQKdX5LyIvD5S vKwI678UUJn1wQxF4zRNVgeIEg== X-Received: by 2002:a1c:6146:: with SMTP id v67mr19985324wmb.102.1573464351581; Mon, 11 Nov 2019 01:25:51 -0800 (PST) Received: from dell ([95.147.198.88]) by smtp.gmail.com with ESMTPSA id a5sm15368078wrv.56.2019.11.11.01.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2019 01:25:51 -0800 (PST) Date: Mon, 11 Nov 2019 09:25:43 +0000 From: Lee Jones To: Kiran Gunda Cc: bjorn.andersson@linaro.org, jingoohan1@gmail.com, b.zolnierkie@samsung.com, dri-devel@lists.freedesktop.org, daniel.thompson@linaro.org, jacek.anaszewski@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, mark.rutland@arm.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Gross , linux-arm-msm@vger.kernel.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH V10 8/8] backlight: qcom-wled: Add auto string detection logic Message-ID: <20191111092543.GV18902@dell> References: <1572589624-6095-1-git-send-email-kgunda@codeaurora.org> <1572589624-6095-9-git-send-email-kgunda@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1572589624-6095-9-git-send-email-kgunda@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 01 Nov 2019, Kiran Gunda wrote: > The auto string detection algorithm checks if the current WLED > sink configuration is valid. It tries enabling every sink and > checks if the OVP fault is observed. Based on this information > it detects and enables the valid sink configuration. > Auto calibration will be triggered when the OVP fault interrupts > are seen frequently thereby it tries to fix the sink configuration. > > The auto-detection also kicks in when the connected LED string > of the display-backlight malfunctions (because of damage) and > requires the damaged string to be turned off to prevent the > complete panel and/or board from being damaged. > > Signed-off-by: Kiran Gunda > Reviewed-by: Daniel Thompson > --- > drivers/video/backlight/qcom-wled.c | 400 +++++++++++++++++++++++++++++++++++- > 1 file changed, 394 insertions(+), 6 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog