Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1063691ybl; Wed, 14 Aug 2019 10:07:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3wQyKBMNBS9AJEF6o4gjY5yvghaJZ6kB+8yzk4Hjh3H+BUSzaZ0KLvYCngOr2Njg67Apu X-Received: by 2002:aa7:93c4:: with SMTP id y4mr981497pff.39.1565802457464; Wed, 14 Aug 2019 10:07:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565802457; cv=none; d=google.com; s=arc-20160816; b=XnkAOyVRkwqcjsckML3/FUz6Ody3Bcg4EcfNlHJfdOySxdREXf/qexRZP/+e+EkxIo /c2C7jopFF4+JroFzx1ihZIWIW+XUQdzYYLIbBi1uuuPaVxeGpWyEoPHyOOnHUwWF8Oh PPyBkoWcOhHFTCALJb74ZC4q3e2i+0D788ew7Gm6OJUcCBvCLuJFK5qHPPdfphRSdEjS sv/dikHV0JtZsvYC4yxayTaNV/qzOWBVdVn7WMARgZsRQk6bDCeKsXcTurCFxEQrl0nY ZS2+nbS9/yhwAC3PVXYyLwQF7NzkYEjIfd9NUCocpe113Q9uVWd5DKdvZbNNpIrgGRak chrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DObMBQVld/5V/viZ/ted2AoX7KbDhgueCJe0qkcyrhQ=; b=OCnB0yQSi2pp6is3lBB6E+ObdjspBYyve0lHkeJ797cS3lpGgH/twhbuIeCc4qJy6k 0gkuwqwdeiYY7Y2dgVFMFwixy4DZ9EHKTE5aTsBvqlJHjQhHNL4lcKQyuBroMyt8vCJw cQKkTecV5c2gi1Jv7+ze4hogFlDgGR8Beh5dqP/Qc++STjmUegTERSzfoC/yEYvj7AkO qRady8hGGET+/NvEycID9qKd5G1qT9aLOKSa0gyqCsETDbw67S7eKGj1A1dK9fNdOLGd 9cWDIdjbPrTHOIIFH825x+dkOIJO/t3JZ+RXwTvp4/eJDh3vPUk79XXKsnko5uPpOuCH x2Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WuaRVRxA; 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 d27si148534pgd.328.2019.08.14.10.07.21; Wed, 14 Aug 2019 10:07:37 -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=@kernel.org header.s=default header.b=WuaRVRxA; 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 S1729559AbfHNRF7 (ORCPT + 99 others); Wed, 14 Aug 2019 13:05:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:54924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729527AbfHNRF4 (ORCPT ); Wed, 14 Aug 2019 13:05:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 64D7D214DA; Wed, 14 Aug 2019 17:05:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802355; bh=iOVV75qfNB+FO1DfAKwsWE0RLJR3ayMmQo+knBbA83Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WuaRVRxA5Q39yC3gwB0HyaJbO6Nlj7FPercxuLtAAVs3MwsD5UEfY84SCM4jvKpRo beFtaNwxwrdj7IFUVQT9487TlpTN6X6dRpy/vlI4PIGeecKR/uazAZWXbZT4PcsXyR aQQKQGMcF0mC8Dyf/jIbQggzBYIoOmzIFFIDRddc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shubhashree Dhar , Sean Paul , Sasha Levin Subject: [PATCH 5.2 086/144] drm/msm/dpu: Correct dpu encoder spinlock initialization Date: Wed, 14 Aug 2019 19:00:42 +0200 Message-Id: <20190814165803.474520635@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 2e7b801eadbf327bf61041c943e5c44a5de4b0e5 ] dpu encoder spinlock should be initialized during dpu encoder init instead of dpu encoder setup which is part of modeset init. Signed-off-by: Shubhashree Dhar [seanpaul resolved conflict in old init removal and revised the commit message] Signed-off-by: Sean Paul Link: https://patchwork.freedesktop.org/patch/msgid/1561357632-15361-1-git-send-email-dhar@codeaurora.org Signed-off-by: Sasha Levin --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c index 0ea1501966594..c62f7abcf509c 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c @@ -2226,8 +2226,6 @@ int dpu_encoder_setup(struct drm_device *dev, struct drm_encoder *enc, if (ret) goto fail; - spin_lock_init(&dpu_enc->enc_spinlock); - atomic_set(&dpu_enc->frame_done_timeout_ms, 0); timer_setup(&dpu_enc->frame_done_timer, dpu_encoder_frame_done_timeout, 0); @@ -2281,6 +2279,7 @@ struct drm_encoder *dpu_encoder_init(struct drm_device *dev, drm_encoder_helper_add(&dpu_enc->base, &dpu_encoder_helper_funcs); + spin_lock_init(&dpu_enc->enc_spinlock); dpu_enc->enabled = false; return &dpu_enc->base; -- 2.20.1