From: Jesse Barnes Subject: Re: [PATCH 3/6] drm/i915: reset eDP timestamps on resume Date: Thu, 19 Dec 2013 09:35:11 -0800 Message-ID: <20131219093511.457a493d@jbarnes-t420> References: <1387470584-1662-1-git-send-email-przanoni@gmail.com> <1387470584-1662-4-git-send-email-przanoni@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from oproxy19-pub.mail.unifiedlayer.com (oproxy19-pub.mail.unifiedlayer.com [70.40.200.33]) by gabe.freedesktop.org (Postfix) with SMTP id AEDD810E6BC for ; Thu, 19 Dec 2013 09:35:37 -0800 (PST) In-Reply-To: <1387470584-1662-4-git-send-email-przanoni@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: Paulo Zanoni Cc: intel-gfx@lists.freedesktop.org, Paulo Zanoni List-Id: intel-gfx@lists.freedesktop.org On Thu, 19 Dec 2013 14:29:41 -0200 Paulo Zanoni wrote: > + * Reset everything, otherwise when suspend/resume gets very fast, we > + * delay the resume based on the values that were set when we were still > + * suspending. > + */ > + intel_dp->last_power_on = tmp_jiffies - intel_dp->backlight_on_delay; > + intel_dp->last_power_cycle = tmp_jiffies - > + intel_dp->panel_power_cycle_delay; > + intel_dp->last_backlight_off = tmp_jiffies - > + intel_dp->backlight_off_delay; I'm not clear on this; aren't the _delay fields in ms? Here you're subtracting ms units from jiffies units. Don't you have to convert? Or did I miss a unit change in an earlier patch? Thanks, Jesse