Received: by 10.192.165.148 with SMTP id m20csp5138283imm; Tue, 8 May 2018 23:16:58 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpBNbAVQ6uxdU90kHzlo3oBAkPZ177ZGYk7dXmwgmpfLNwKEohvqUDEWf8QIeLfZlCqGfCq X-Received: by 2002:a17:902:bc88:: with SMTP id bb8-v6mr33681634plb.175.1525846618806; Tue, 08 May 2018 23:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525846618; cv=none; d=google.com; s=arc-20160816; b=092Yf1FNnKecGkJIDnIi5SvV9fTOlDqOeGRvBT3cj3DpYjhR3fr82klecI23vYHP9e 0B7GnDAxxol6AneKBpF4+5PzGcK/il/GWdzIELjgOIqzWdzpOnMpPfuUUsTSTlt0NWUa RFS7SPzvXx/+cjUUlMPD65aLrgNzbVeH/EC0NlOC4GmrzHN4Nka2ssB3Hmh+uPutIijA CUOIUpQWEoVjHd/UwSRyiqSpFYt/v0iICO3TobAS4hMuci/yB8vV5Jxox/Sq/eVFz31z Q+g1JmleVLM/NDeq1MyKoWi4moxkQnSoaRA/Jq5WdYqnfiamgJFxI+N00MDyAcRPRskT dz0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=m1vcSuX6wk7W/ZRev1bHKx82eRYjx/0Cse+llRu9HZM=; b=QP1g76B3ah17pdn80cAtDrpRdQqPcWUdCLKefJnWbm4doDTog/LYIzD6n5OVKP2/6c +cJrqpvpKt8Rfiifxjc4MHya9ZEmprexz1V5t5+JeB1NEMuZNqMgHY/UQ/nmxoqQmqRg edYEYMCJoU+K4xKhc9Vr3Lkwl9acnOHrARDp11fduzSvpkKIcvXr0tI7uoitcThi8Ttv EgyF/kqu0ZyiaYJ5iQBP555tsoMB8rf4s9OLCjfa0+WagGOWGDNkyG8mhGFB9DgxS34u NKi1kS0wuBZymxT6/d51QC2qE7Ky2iBjnGtfjtpouMRe6m0/PXXIn19TrD92KQOtFxuc vaig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=BO6kPfQI; dkim=pass header.i=@codeaurora.org header.s=default header.b=BO6kPfQI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7-v6si20499118plq.160.2018.05.08.23.16.43; Tue, 08 May 2018 23:16:58 -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=@codeaurora.org header.s=default header.b=BO6kPfQI; dkim=pass header.i=@codeaurora.org header.s=default header.b=BO6kPfQI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933674AbeEIGQd (ORCPT + 99 others); Wed, 9 May 2018 02:16:33 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33372 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932956AbeEIGQb (ORCPT ); Wed, 9 May 2018 02:16:31 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E86A5606AC; Wed, 9 May 2018 06:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525846590; bh=G9xFplQOp0nSkQxaZlmaAn0X37unZ3sWWCXlnLS7muU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BO6kPfQIdfcVwtsy1mcIcpsFP5qolsPGYnFAhUlU8IjGDBnYc4S88Dk0UaU4RXFCt H2Tnjz0z3G921L1gq8WSocb61xK0IWgno+VRW+tp93HyED2B5q8pntn8mFIGUC9NV2 BDyk+i+4oT7ZpiGmkWKck7STnvmcM2NWo5luk0jA= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 28307606AC; Wed, 9 May 2018 06:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525846590; bh=G9xFplQOp0nSkQxaZlmaAn0X37unZ3sWWCXlnLS7muU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BO6kPfQIdfcVwtsy1mcIcpsFP5qolsPGYnFAhUlU8IjGDBnYc4S88Dk0UaU4RXFCt H2Tnjz0z3G921L1gq8WSocb61xK0IWgno+VRW+tp93HyED2B5q8pntn8mFIGUC9NV2 BDyk+i+4oT7ZpiGmkWKck7STnvmcM2NWo5luk0jA= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 09 May 2018 11:46:30 +0530 From: kgunda@codeaurora.org To: Bjorn Andersson Cc: Lee Jones , Daniel Thompson , Jingoo Han , Bartlomiej Zolnierkiewicz , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-leds@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org Subject: Re: [PATCH V1 4/5] backlight: qcom-wled: Add support for OVP interrupt handling In-Reply-To: <9757b8fbcdd55cb72a42451270b3cb33@codeaurora.org> References: <1525341432-15818-1-git-send-email-kgunda@codeaurora.org> <1525341432-15818-5-git-send-email-kgunda@codeaurora.org> <20180507172152.GD2259@tuxbook-pro> <3736480b2712e2dd401fed0a635a25d7@codeaurora.org> <20180508171936.GK2259@tuxbook-pro> <9757b8fbcdd55cb72a42451270b3cb33@codeaurora.org> Message-ID: X-Sender: kgunda@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-05-09 10:36, kgunda@codeaurora.org wrote: > On 2018-05-08 22:49, Bjorn Andersson wrote: >> On Tue 08 May 05:26 PDT 2018, kgunda@codeaurora.org wrote: >> >>> On 2018-05-07 22:51, Bjorn Andersson wrote: >>> > On Thu 03 May 02:57 PDT 2018, Kiran Gunda wrote: >> [..] >>> > > @@ -220,7 +255,12 @@ static int wled_module_enable(struct wled >>> > > *wled, int val) >>> > > WLED3_CTRL_REG_MOD_EN, >>> > > WLED3_CTRL_REG_MOD_EN_MASK, >>> > > WLED3_CTRL_REG_MOD_EN_MASK); >>> > > - return rc; >>> > > + if (rc < 0) >>> > > + return rc; >>> > > + >>> > > + schedule_delayed_work(&wled->ovp_work, WLED_SOFT_START_DLY_US); >>> > >>> > Do you really want to delay the work on disable? >>> > >>> > Wouldn't it be better to use a delay worker for the enablement and in >>> > the disable case you cancel the work and just disable_irq() directly >>> > here. >>> > >>> Sure. Will do it in the next series. >>> > But more importantly, if this is only related to auto detection, do you >>> > really want to enable/disable the ovp_irq after you have detected the >>> > string configuration? >>> > >>> Ok. This is used for the genuine OVP detection and for the auto >>> detection as >>> well. >> >> What is the expected outcome of detecting an OVP condition, outside >> auto >> detection? >> > Ok... Out side auto detection, it is used for information purpose. I > think it is > okay to ignore enable/disable the ovp_irq after auto detection is done. I am taking back the above comment. The OVP irq is needed even after the auto detection is done. Because there are also cases where one/more of the connected LED string of the display-backlight is malfunctioning (due to damage) and requires the damaged string to be turned off to prevent the complete panel and/or board from being damaged by running the auto detection again. currently we are not resetting "auto_detection_done" flag once it set to true. I will fix it in the next series to run the auto detection again (If the OVP condition is met) because of the above mentioned reason. We are going to discuss the HW systems to check if the OVP keep on occurring due to some other reason, other then the string issue, what needs to do (disable the module ?). >> Regards, >> Bjorn > -- > To unsubscribe from this list: send the line "unsubscribe > linux-arm-msm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html