From patchwork Wed Jul 10 13:08:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 2825723 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0A7FA9F756 for ; Wed, 10 Jul 2013 13:09:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5AE962015A for ; Wed, 10 Jul 2013 13:09:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F8DF20136 for ; Wed, 10 Jul 2013 13:09:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750980Ab3GJNJY (ORCPT ); Wed, 10 Jul 2013 09:09:24 -0400 Received: from mail-ea0-f172.google.com ([209.85.215.172]:53110 "EHLO mail-ea0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750921Ab3GJNJX (ORCPT ); Wed, 10 Jul 2013 09:09:23 -0400 Received: by mail-ea0-f172.google.com with SMTP id q10so5005281eaj.3 for ; Wed, 10 Jul 2013 06:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=lJ7M8CAZONAReUQup/uqolEJ7fULLM+Ay4s1fy7tQ78=; b=ODfKQTB3eVRcNnImP2WdN1DvRMVLzmqtVmHE3cz7fVCEwaKF00S310MFRrAKlGR1OV vjoOfiLYe7dFmtKMe+LD6NR/3zYufUf2peuO8Iaf+/SK77239Yw6+XTCyqu9zsqSSoB5 KCrQo6RJaVIigRODgxDvqeQqIMgOya5zqtRvT2msCElFXoK9cjI7tdplQFHgTvkgbRqb WwiTb8iv875Z83ooA0K9fLnbobV7y9BgUJob4B23BwtAqqfaFRveNOmVqIzKUpzrnTtU 6elW6YyQ6YTMwqtMbm4jt5zOBAkmboBepGnFge0JloXTqxQDYo5fbCw7tohOHB3jYf+S KRjw== X-Received: by 10.15.63.67 with SMTP id l43mr36580065eex.5.1373461762256; Wed, 10 Jul 2013 06:09:22 -0700 (PDT) Received: from localhost.localdomain (ip-88-212-34-237.antik.sk. [88.212.34.237]) by mx.google.com with ESMTPSA id w43sm59877850eez.6.2013.07.10.06.09.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 10 Jul 2013 06:09:21 -0700 (PDT) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Tomi Valkeinen , Jean-Christophe Plagniol-Villard Cc: linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Pavel Machek , Aaro Koskinen , Tony Lindgren , =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: =?UTF-8?q?=5BPATCH=5D=20omapfb=3A=20In=20omapfb=5Fprobe=20return=20-EPROBE=5FDEFER=20when=20display=20driver=20is=20not=20loaded=20yet?= Date: Wed, 10 Jul 2013 15:08:59 +0200 Message-Id: <1373461739-10168-1-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP * On RX-51 probing for acx565akm driver is later then for omapfb which cause that omapfb probe fail and framebuffer is not working * EPROBE_DEFER causing that kernel try to probe for omapfb later again which fixing this problem * Without this patch display on Nokia RX-51 (N900) phone not working Signed-off-by: Pali Rohár Tested-by: Pavel Machek --- drivers/video/omap2/omapfb/omapfb-main.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 856917b..93e7c84 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c @@ -2419,6 +2419,15 @@ static int omapfb_probe(struct platform_device *pdev) if (omapdss_is_initialized() == false) return -EPROBE_DEFER; + dssdev = NULL; + for_each_dss_dev(dssdev) { + if (!dssdev->driver) { + dev_warn(&pdev->dev, "no driver for display: %s\n", + dssdev->name); + return -EPROBE_DEFER; + } + } + if (pdev->num_resources != 0) { dev_err(&pdev->dev, "probed for an unknown device\n"); r = -ENODEV;