Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp633024yba; Wed, 24 Apr 2019 07:11:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPPAovCD8BoylZmlG21n8UdOvOoXW9nToPBZKAT+WMZCPXxrCnlitvwkbsVcv0OCUj7agB X-Received: by 2002:a17:902:8d8b:: with SMTP id v11mr3359008plo.133.1556115110560; Wed, 24 Apr 2019 07:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556115110; cv=none; d=google.com; s=arc-20160816; b=D3YEXH3XdRDlPG7yGIkg0gvfLk87md4kfxv7wTeDKEBra6hscGstKCsIfXkYNExYfk 5d0lk+Wq3/ZCMXS9yfi6/qx/K7qzT2j6FM7GuWL38XZjA4HwK5AmiAt1+CicLkw2Nqyd CnUun03xOi+AAuhtL48UJP4Qw7XrW9DbC0M+GpIF5IAS+8xbdlhp/xSFZFfEc51jVXpL DYds7Q22ci9sgP69PZFHPVZAHQX3wTpiyRk+iUhS2oAS8NQ9oida+m7qprRV3nMEXE5u WmT1nyJ61f06OYhN+HSjbiDvU1RnIcEAZ0HohWRrfytMXDyNg/XKRCdUM+2ThaNTbrY9 RaMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=qXf9zSeCvuTI38sMjpBYmuv1URETMTuq+Zbz/Qww5nE=; b=hm+ovCmHE1AbZxVm6BkIm5TJhMPieTiUahPsKG7ot2AiSskAhHXf9xML9AIgPwD1U2 kS9MiwU/sFQw8jdJNfwF8EIFJ4BWxicPY+08JccIGPUPcGPuOhGHJZLnMZH3vkPG8n6y iAY87BBvefcVensanXjwZK+GWQzYHqVQf3pB56wBpt9GRL8kqJml6ARb4NngwP8OUTX2 F83fVK2+5MkupuVxiZ62Tahd5E8yiWGhjGbJnYjaD4mz3Hh8Lo/jrtufu36zohILX31z 2smn0BmDW2uO5c4q2o3U9VBTIb5teqHKmHG9znquuAtacJS21oZihDxZT68a4iU1XrYM I/ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=c2xayF8c; 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 b12si17675420pgl.264.2019.04.24.07.11.34; Wed, 24 Apr 2019 07:11:50 -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=@st.com header.s=STMicroelectronics header.b=c2xayF8c; 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 S1727513AbfDXODo (ORCPT + 99 others); Wed, 24 Apr 2019 10:03:44 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:44408 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726830AbfDXODn (ORCPT ); Wed, 24 Apr 2019 10:03:43 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3ODvPjQ007033; Wed, 24 Apr 2019 16:03:30 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=qXf9zSeCvuTI38sMjpBYmuv1URETMTuq+Zbz/Qww5nE=; b=c2xayF8c+om7kgzyMRCCIlh80x9z8usXGimjzq4k/8awR7J2OkfNDFc93tihxAQaG0UT BlUMy0i/0APy3yR3Pyj6xtSKREMr68XfWxOKP5IIXLzhXYecfSDvOLtRSwC31PbSoziU CcvJ5mk8a2raYo2HPiUNlj9VY2OSLZQPiGfuHo+tHwjyVVBzc82+UZiFgJ0yMevBfwrw 8G6De1E6nTB5v/6LT+rAUw0rtp386m39XpMQvBF52yCt7dGP8pO0VV8E7FwIx/zg6MhL Y8cqF7kAtuVOfh/s5rUv4YuwtbSsGniBQ/lSwVxe5BNJMV0Jo12gKwEcaGN0PqxhTQcH FA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2rytad6yy4-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 24 Apr 2019 16:03:30 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 464C334; Wed, 24 Apr 2019 14:03:30 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 2B22F2726; Wed, 24 Apr 2019 14:03:30 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 24 Apr 2019 16:03:29 +0200 Received: from localhost (10.201.23.25) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 24 Apr 2019 16:03:29 +0200 From: Fabien Dessenne To: Yannick Fertre , Philippe Cornu , Benjamin Gaignard , Vincent Abriou , David Airlie , Daniel Vetter , Maxime Coquelin , Alexandre Torgue , , , , CC: Fabien Dessenne Subject: [PATCH 1/2] drm/stm: ltdc: manage the get_irq probe defer case Date: Wed, 24 Apr 2019 16:03:20 +0200 Message-ID: <1556114601-30936-2-git-send-email-fabien.dessenne@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556114601-30936-1-git-send-email-fabien.dessenne@st.com> References: <1556114601-30936-1-git-send-email-fabien.dessenne@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.25] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-24_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Manage the -EPROBE_DEFER error case for the ltdc IRQ. Signed-off-by: Fabien Dessenne --- drivers/gpu/drm/stm/ltdc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c index 566b0d8..521ba83 100644 --- a/drivers/gpu/drm/stm/ltdc.c +++ b/drivers/gpu/drm/stm/ltdc.c @@ -1174,6 +1174,9 @@ int ltdc_load(struct drm_device *ddev) for (i = 0; i < MAX_IRQ; i++) { irq = platform_get_irq(pdev, i); + if (irq == -EPROBE_DEFER) + goto err; + if (irq < 0) continue; -- 2.7.4