Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp967687yba; Wed, 24 Apr 2019 12:37:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGNHPH7C14wT+S69UXd6V/Z9hgTCuJ6JCtX1Aw8Pg30p4px964DbH7CcB9VbJmaCerd2/R X-Received: by 2002:a63:531a:: with SMTP id h26mr26066621pgb.428.1556134648934; Wed, 24 Apr 2019 12:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556134648; cv=none; d=google.com; s=arc-20160816; b=ovTc22ulIeOLnJSPtbOIA5r+n/q7MvO4eFPFe6fSz4f5ofI8E9w5dinVWvO8ft0mMU 9wtn+IMz/LRESMPdN9K4cSMPM8z4nllb8aq35pXvudvct69cqVNYXlKUSUN1cAf8ATfK A3pE25Y+itu0jrtxHtyHNfpj8yPYiBpxTvEmr1AjgQJT83PILz/huD20pC6/rKGzijPn rsMrOn+oGOWmQNTj/wqwt+RI4LrOqupXrR+mytTM/tqklP4IW6JpF4KquBbDD9Z9v5jf Cva5MU+gjLLRvN4My4A4ByCXrbAH+h4Lp+8ZcGngQ4jgkPSaYyG3HDOrOpPPI9Eq8tkh 7J6w== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=JK835SmutkiSI02d9K73JY94LjFulDtPz60W5BA7hrc=; b=F9XwpzXpXTTu5/34O0A9As/yB8SdY4FzvvLgnwYDtnc4fsogpuPk8Gu0dmVF0HrccD J6OfJT/CFT27PnGD+g2+KqIkz5uleqrneL250xm/re1FHMCQhKv6J9RYU0aRQ2nFqMo7 duId8cDM7Pnq0nr3wOQUNA5tm2IraVPYwj+NaIsBPokovSSRQ3l7d+E2+3XB8ol46UW7 7bPQ8r+8dMVUTuu8UdIR6kxMsmsooAOz4H3AqihQ7p7WLSYWYYkscDoWtfaxzJq4TX6m PRzYLwX/I1QapcxjE6tvhnIId5yujNoG9DPh4UWTrtzRrYoLgc4xi8etMFtiNCNndsZc l5/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y1o8YwgU; 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 e193si18666813pgc.339.2019.04.24.12.37.12; Wed, 24 Apr 2019 12:37:28 -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=y1o8YwgU; 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 S1730041AbfDXM2G (ORCPT + 99 others); Wed, 24 Apr 2019 08:28:06 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:45056 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbfDXM2G (ORCPT ); Wed, 24 Apr 2019 08:28:06 -0400 Received: by mail-qt1-f195.google.com with SMTP id b3so5078382qtc.12 for ; Wed, 24 Apr 2019 05:28:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JK835SmutkiSI02d9K73JY94LjFulDtPz60W5BA7hrc=; b=y1o8YwgUQ8h69hsxi0LAzl4q21vVwmnMJlKubeLWPJ/aJruYyu9BeploZUnnWyk1ef 140Al9/FDLWIZps/bQRti9lmwgoxCnyz4WgmH7u4TP/d+IWvzxYayrmus8Up9ie6T3Ym MlY70jBjRTakdg1A3bqwJU3w5nxgrHe6j8dFPwgLg+JDJbPCEBFVdcJhfAUgsdI6U7Xx sGUBzAC28fveplXEhYwK1JpLO1VZF8mPiDaKGFexgmqvAYyvVJR7irAKkQGNDMqfewOo g1EgpLTJwvX8tFzqPLwWjQjV9zS3qkiGVJxS2H44WmaxLfZmVMgl+LzoJw4QPAvGcOIi EWXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JK835SmutkiSI02d9K73JY94LjFulDtPz60W5BA7hrc=; b=InegWFpmn2LFAKJi3TcbW0F25/gjtbq5vCz3RL2TpMWK04R1fsgvAFNh5YQzxQfLnZ mCbhEjt+bZiqT6NC8YtzDUsadzRtW5kZQvPwP4jQqgpuSZbEjUSIECfcjokRMsNDHHwG DXuLwASBQZOpDV/O6sc+6+1c+Exqan92zai7msOvRGeAFslq8pNOqsfeG33IB08itBDQ 4tOpmJhnI0chH053R7eBJA9VN/InuArGnei72cOM4KNnaOWLLPo2CAHf5HVPoDK4F3Vu 6b1Jc1eWWmlGJdua7/HnKS9+s0J7Z5JAVKmUAz10kN3Jpk8obWBc0tct/EPf6OhSRMbu J34g== X-Gm-Message-State: APjAAAUWvOZriUGxrVfhxcDZvBl+h7wIfUW7uGg5YOS7AzhlxWaqB0ky ifiYDPth7z/PEEBCX3zOmEk7x5OKWfg3Z5OThs15tw== X-Received: by 2002:a0c:b0a5:: with SMTP id o34mr24152323qvc.42.1556108885068; Wed, 24 Apr 2019 05:28:05 -0700 (PDT) MIME-Version: 1.0 References: <1553874485-31259-1-git-send-email-yannick.fertre@st.com> In-Reply-To: From: Benjamin Gaignard Date: Wed, 24 Apr 2019 14:27:54 +0200 Message-ID: Subject: Re: [PATCH] drm/stm: ltdc: disable hw interrupts before its handler init To: Philippe CORNU Cc: Yannick FERTRE , Vincent ABRIOU , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre TORGUE , "dri-devel@lists.freedesktop.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le lun. 1 avr. 2019 =C3=A0 11:19, Philippe CORNU a = =C3=A9crit : > > > On 3/29/19 4:48 PM, Yannick Fertr=C3=A9 wrote: > > Interrupt register must be disabled before call of > > devm_request_threaded_irq function to avoid dummy interruption. > > > > Signed-off-by: Yannick Fertr=C3=A9 > > --- > > drivers/gpu/drm/stm/ltdc.c | 8 ++++---- > > 1 file changed, 4 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c > > index b1741a9..ef5b4d6 100644 > > --- a/drivers/gpu/drm/stm/ltdc.c > > +++ b/drivers/gpu/drm/stm/ltdc.c > > @@ -1118,6 +1118,10 @@ int ltdc_load(struct drm_device *ddev) > > goto err; > > } > > > > + /* Disable interrupts */ > > + reg_clear(ldev->regs, LTDC_IER, > > + IER_LIE | IER_RRIE | IER_FUIE | IER_TERRIE); > > + > > for (i =3D 0; i < MAX_IRQ; i++) { > > irq =3D platform_get_irq(pdev, i); > > if (irq < 0) > > @@ -1138,10 +1142,6 @@ int ltdc_load(struct drm_device *ddev) > > reset_control_deassert(rstc); > > } > > > > - /* Disable interrupts */ > > - reg_clear(ldev->regs, LTDC_IER, > > - IER_LIE | IER_RRIE | IER_FUIE | IER_TERRIE); > > - > > Dear Yannick, > Thank you for your patch, > > Acked-by: Philippe Cornu > Applied on drm-misc-next, Thanks, Benjamin > Philippe :-) > > > ret =3D ltdc_get_caps(ddev); > > if (ret) { > > DRM_ERROR("hardware identifier (0x%08x) not supported!\n"= , > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel