Received: by 10.192.165.148 with SMTP id m20csp5092117imm; Tue, 8 May 2018 22:07:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr+FxQTzuUru9d2YkQ0bpv6LM4pAR8qE8bF1B5tX+TE3pU3IFOk/jZwHMTjk6ZRyWT2YTsA X-Received: by 2002:a65:4648:: with SMTP id k8-v6mr35759135pgr.47.1525842458764; Tue, 08 May 2018 22:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525842458; cv=none; d=google.com; s=arc-20160816; b=n9mWghzSWCWONejdGRsN6RldbkZrQOkb/9Dhhwqy9aitYVa9geTwgtwhkS1JIOoeOl qQTy8iM90WTmDw8kImCHFnHERSCZl5fTkd2miljpl+UB9s67fnpxDm4HzzuIMlQnM9iL WdMHl48wW4TmMsENO7X94Gz0+Ulbw3vPHjwju9XQZ5b1F5e0k2NQB5MuOfUlWKPx7B0D AxeDOQklFbZ3z7/05+KzPpYVD5lIT+0Pc9Jgq7C4V+d7IebcBl6mYkZF8/Sdb1NH8WsM Yn8T3PfVjTDYki4IM55xq4aV9F2DxDTka1hVRR5m17CRyxcKTE/410si8pvp5e6v4OCV m9YQ== 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=c1yMxHpsRvtIEQIgzDWGubVHGaHLPyVEszuuO/xtW1o=; b=woQZFMJYiz5kOC6iX3vtyRM0wk8EwbADW1k4l4uKH+PuQixtjPwm6Nn2jZbxYkLjII ap02LVq7RvnVw4s8N0TqtfBir8cOHDEMc/1xVpf30maELCKHPc7Fg1sftjxIrzIMFdK+ GY7xAV8ZzWjKLozH22j8SKHLsdS0SvlE1g62rUd/o2Yhb+MmcVERGPAlVDT2e0qE3S2K RlVDED6m/pNRt8bqKG9RMBIubOWNBtjr0vZacXVJZk6Hn88vXl4rCpdycBHS7hiiP3Gc IgX07njsfXXUvgzzaTNgDy+omG5rA9/Y0REiVgJJVu6QryUDT6+G9u/qtDimqt9b1Zbj 7ixA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=EVCcju/l; dkim=pass header.i=@codeaurora.org header.s=default header.b=AeW27UsS; 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 w5-v6si20690363pgt.68.2018.05.08.22.07.24; Tue, 08 May 2018 22:07:38 -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=EVCcju/l; dkim=pass header.i=@codeaurora.org header.s=default header.b=AeW27UsS; 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 S1753331AbeEIFGE (ORCPT + 99 others); Wed, 9 May 2018 01:06:04 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:52348 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753150AbeEIFGD (ORCPT ); Wed, 9 May 2018 01:06:03 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 65AA360B23; Wed, 9 May 2018 05:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525842362; bh=AkDY3Q5y/9ViBwkWxQMXA8X2vKtstfFDRv88UA6EpFo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EVCcju/lPKhhapv7pzQzWuGk3lx0LUHdxU4xN6aYX4by9Ggzj3akc/oz1UaRN+t9Y gQh7riqOFEsRj4dQbAMsEvoAoSShjfNPQXR+/YIp11RpGYNAMG5G56qqsz7T8r+YbN kcNIOUnlKoce2BgTMQB7k+fhGzPv4kLg37aBfXeM= 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 A7285601A0; Wed, 9 May 2018 05:06:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1525842361; bh=AkDY3Q5y/9ViBwkWxQMXA8X2vKtstfFDRv88UA6EpFo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=AeW27UsS0woSKPPHzBqwO6DSWwVGvZXWHoKelb876jQk1JVEJ9u56Z4r07nEmliJv kIj86CaJlkLpXyyMaYj3avGYiyzVJ5LDiNK+PsBZwUtMmg/V0O+hYdbEmScBaeJC+3 TKXrMaON3immOTNTEl6NQp0h8jM1Y/+xDxbRNUPI= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 09 May 2018 10:36:01 +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 Subject: Re: [PATCH V1 4/5] backlight: qcom-wled: Add support for OVP interrupt handling In-Reply-To: <20180508171936.GK2259@tuxbook-pro> 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> Message-ID: <9757b8fbcdd55cb72a42451270b3cb33@codeaurora.org> 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-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. > Regards, > Bjorn