Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753368AbcJKPE0 (ORCPT ); Tue, 11 Oct 2016 11:04:26 -0400 Received: from foss.arm.com ([217.140.101.70]:35890 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752829AbcJKPEZ (ORCPT ); Tue, 11 Oct 2016 11:04:25 -0400 Date: Tue, 11 Oct 2016 16:03:52 +0100 From: liviu.dudau@arm.com To: Brian Starkey Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] drm: mali-dp: Set the drm->irq_enabled flag to match driver's state. Message-ID: <20161011150352.GC8762@e106497-lin.cambridge.arm.com> References: <1476195969-23655-1-git-send-email-brian.starkey@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1476195969-23655-1-git-send-email-brian.starkey@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1557 Lines: 62 On Tue, Oct 11, 2016 at 03:26:02PM +0100, Brian Starkey wrote: > From: Liviu Dudau > > Mali DP driver does not use drm_irq_{un,}install() function so the > drm->irq_enabled flag does not get set automatically. > drm_wait_vblank() checks the value of the flag among other functions. > > Signed-off-by: Liviu Dudau > --- > > Hi, > > This series is a bunch of small driver-internal fixes and cleanup for > Mali-DP. For the whole series, on the patches not already Signed-off-by me or acked: Acked-by: Liviu Dudau Many thanks, Liviu > > -Brian > > drivers/gpu/drm/arm/malidp_drv.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/arm/malidp_drv.c b/drivers/gpu/drm/arm/malidp_drv.c > index 9280358..7987ebd 100644 > --- a/drivers/gpu/drm/arm/malidp_drv.c > +++ b/drivers/gpu/drm/arm/malidp_drv.c > @@ -377,6 +377,8 @@ static int malidp_bind(struct device *dev) > if (ret < 0) > goto irq_init_fail; > > + drm->irq_enabled = true; > + > ret = drm_vblank_init(drm, drm->mode_config.num_crtc); > if (ret < 0) { > DRM_ERROR("failed to initialise vblank\n"); > @@ -402,6 +404,7 @@ fbdev_fail: > vblank_fail: > malidp_se_irq_fini(drm); > malidp_de_irq_fini(drm); > + drm->irq_enabled = false; > irq_init_fail: > component_unbind_all(dev, drm); > bind_fail: > -- > 1.7.9.5 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯