Received: by 10.192.165.148 with SMTP id m20csp4559860imm; Tue, 8 May 2018 10:18:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo6B4Jqj23TNBygBiD1AoiKn4xv5rjUXb6m545vZMWrcNFTMtwhqBGa+fjXqoKrsIMcQ0FI X-Received: by 2002:a65:6249:: with SMTP id q9-v6mr16603493pgv.216.1525799927572; Tue, 08 May 2018 10:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525799927; cv=none; d=google.com; s=arc-20160816; b=CIzTPq+CAT6nk14spuf1dKCkaGEuXtGXRxMicWi3K9HR2RflQlpSkauj5xwr0u6aYP Jxh8A/d09d1A5+l31AeKD+MwjjzdyIOFWsjh0alCx9xp4vFZb5TqRalOcsUQSONMh/MV DcQ40Grog7pez9BrH/QDj0r0lowJLP3qFhGYM3Gr3umT7VG2TBmAcjEez+/1MZFuL2tP WGhBI9CtijD1s0b7RmfScLWAfZe9Yc+FP6LTrjae2d1p2wz+HJWe6UQAyFo5HY6LANUo wbs5Uj7fFvp1Bl8THkm5mpASSWGwhokIW8gr0xQ4c4cBt6qqeyleHUnbZUkoaIOkcE9x 9Yfw== 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=B2fOOJk7NbZpeIVWmlNmOF7oDb2mN84/9nt6xUCe94k=; b=IN+5hQd4rMy9DHJgjnip6jvztweIWJEUNLrMK1DM+n8Gj+6wE6L4wZl/b0rNtINihs 0jLgFUD5O8rSnckdW4/j4Mos4mv8Pl1xOLJQCdWYtp+JPKJksXb/yxVcMYn2yaE/UAqD 760B+Fv/Y8umZ587I+cf24J8Cp+E7HlOTbNg1KD5rsuI0VDmiXHNMw0FeysWNoa/QsP3 djeMIyNYCIhS+YrsJzopn4XHdpteHFMDO3nx+RZcTBTgiU1sEeJ2zMJbAx4wcK9We6Kq 1WC3nDUg28tuTvpjMTOWW9Pr3zBkU7PEN6N18YPKh7Ah+joiX86KI1lUN+2ret0NPV4E Sq6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iTw0mK7M; 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 u12-v6si24736537plz.563.2018.05.08.10.18.32; Tue, 08 May 2018 10:18:47 -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=iTw0mK7M; 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 S1755415AbeEHRSS (ORCPT + 99 others); Tue, 8 May 2018 13:18:18 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33237 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755209AbeEHRSO (ORCPT ); Tue, 8 May 2018 13:18:14 -0400 Received: by mail-pg0-f68.google.com with SMTP id i194-v6so21452990pgd.0 for ; Tue, 08 May 2018 10:18:14 -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=B2fOOJk7NbZpeIVWmlNmOF7oDb2mN84/9nt6xUCe94k=; b=iTw0mK7MWdt8HOZL28ivPYDGgsiARdWcGKz7GyxIiKnq/QzJY8QvxJLWqDLxFdPSM+ Ks6UwpmBT8QNTWhp69T0nJiFgCGR4kHlMPkQrnzsgZMgrzrO3jOJx1pIXJYrY5L7TH1V IDfKnI4/SAta/3xtUea9J+TisJER+RnVLlVac= 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=B2fOOJk7NbZpeIVWmlNmOF7oDb2mN84/9nt6xUCe94k=; b=XgB2dYwko6jdQhH3V6gaMOOVcrUiO1v42q864kW36bN3nrjj3V1lKkiv4A4t3Mllgh fHMsXOdkCM7VWZ+xgVoc0YdzrHqvCZ8vyFQZ9VKU+26h+olEnbdEMKG1MDP7ExxrD4s2 alS2ScO+SKThhXRqze/sDOT8NyX03Wu2+s0B8RQ9AKqIfLb3NWnNfIWL70sKjcX8JlS6 tMMfHiqee8r7ndCcNNPsvTen205SAbHmDO45LXH1h5WHdrAv/fPG4yhRq7GLhYr111l1 8NOHM3TSWFyslzUSZfEgG2oOgF+bLx7ue+DasYk9SHNuQJqSSbk29IVlOdFeC9iTVVL1 QOkw== X-Gm-Message-State: ALQs6tAuxipfOx8JAi1svilse1MLNFvYdxt+GPJW3mT7UrOYFCxwm7Sw fTJlazh/bN/4IvOcQF5UvqMvRA== X-Received: by 2002:a65:438b:: with SMTP id m11-v6mr10187009pgp.99.1525799893852; Tue, 08 May 2018 10:18:13 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id z131-v6sm5391340pgz.86.2018.05.08.10.18.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 10:18:13 -0700 (PDT) Date: Tue, 8 May 2018 10:19:36 -0700 From: Bjorn Andersson To: kgunda@codeaurora.org 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3736480b2712e2dd401fed0a635a25d7@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Regards, Bjorn