Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp72356yba; Mon, 1 Apr 2019 01:56:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw/Au1ep4zorZS3cdREhiro9005IVt+2oSeEbzK64sLBvq6dwD1KR0HITYt/JSySK5fPw+e X-Received: by 2002:a63:fc5a:: with SMTP id r26mr33094331pgk.97.1554109019823; Mon, 01 Apr 2019 01:56:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554109019; cv=none; d=google.com; s=arc-20160816; b=1DLCAE+7F9W3Qv+gt8QxW+caKPYIuJ4Ik9vIFmZQM6xOPiIBcwzYpEiWX3RpjxMhDE EiuUnL2pwlcZ0cePSq9ZNqiiWBTtaQDSvzj5MTsaw348QkNTv4Waq+WU2q6bOL5F31S6 bR+rSy2NiHwOy676a2QKPzdzc2fzpil/J+3S9HWvJjkSz7MxtnmXQreM/6qUrvz367kP 8DqDtlPOPD79s66HXcfl+B4BInT50MVTS9QorgBb8T6fkX4UkVSlzzdeR6Z0hmHxDJuz pbxPLy0lKln1Q/C3ZAcY9SQKz7DArYTv51miDj3jrkOrsENyURnZSz9qd+hwSaorG0zI ffMw== 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; bh=+/wtz/ZCD4jn2QIekOKhMZlVMGnbqnke6pOHxWr+/v4=; b=JxHRF7in/NVXsBm16+zLmdtgE63sYcOB9tRBksQwI2kCBuQR0R/9YBW7+OgNLArDwH /6JS0epIeLG4KS5OoRA/8Et6kMbJymI/4vEncHeNJcG2icPFkvLkfxDcU2Ks/1IfPqeL zZr7KNmtMBmefvMGG3pEzx7U7a1WITiwnW1zP+jpVpGaLsNOrQcJca+TsHtRFAuD1QGo kxC6f6ArCJzTPJGvWWjh4UttycfFjcOsEkR6Dc4kEBRsUoy7TwfwLPkKyF2UMIWjXDip uwgiGM4p90aZObG0R8fmj2Iw494K9Jo1p7Pcho3vrS/Emap5y2scVu3lCEBOskkxmPN7 bTFw== ARC-Authentication-Results: i=1; mx.google.com; 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 r4si8716500pgh.171.2019.04.01.01.56.44; Mon, 01 Apr 2019 01:56:59 -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; 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 S1728967AbfDAIz0 (ORCPT + 99 others); Mon, 1 Apr 2019 04:55:26 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:16107 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728945AbfDAIzZ (ORCPT ); Mon, 1 Apr 2019 04:55:25 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x318k11S006552; Mon, 1 Apr 2019 10:55:13 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2rhxt4hjx7-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 01 Apr 2019 10:55:13 +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 EAECF3F; Mon, 1 Apr 2019 08:55:09 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C8D2E165B; Mon, 1 Apr 2019 08:55:09 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.435.0; Mon, 1 Apr 2019 10:55:09 +0200 Received: from localhost (10.201.23.19) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.435.0; Mon, 1 Apr 2019 10:55:07 +0200 From: Hugues Fruchet To: Alexandre Torgue , Mauro Carvalho Chehab , Hans Verkuil CC: , , , , Benjamin Gaignard , Yannick Fertre , Philippe CORNU , "Hugues Fruchet" Subject: [PATCH 1/2] media: stm32-dcmi: fix error messages Date: Mon, 1 Apr 2019 10:54:59 +0200 Message-ID: <1554108900-30705-2-git-send-email-hugues.fruchet@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554108900-30705-1-git-send-email-hugues.fruchet@st.com> References: <1554108900-30705-1-git-send-email-hugues.fruchet@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.19] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-01_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Revisit and add some error messages. Signed-off-by: Hugues Fruchet --- drivers/media/platform/stm32/stm32-dcmi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/stm32/stm32-dcmi.c b/drivers/media/platform/stm32/stm32-dcmi.c index 098431d..693415c 100644 --- a/drivers/media/platform/stm32/stm32-dcmi.c +++ b/drivers/media/platform/stm32/stm32-dcmi.c @@ -1611,7 +1611,7 @@ static int dcmi_graph_init(struct stm32_dcmi *dcmi) /* Parse the graph to extract a list of subdevice DT nodes. */ ret = dcmi_graph_parse(dcmi, dcmi->dev->of_node); if (ret < 0) { - dev_err(dcmi->dev, "Graph parsing failed\n"); + dev_err(dcmi->dev, "Failed to parse graph\n"); return ret; } @@ -1620,6 +1620,7 @@ static int dcmi_graph_init(struct stm32_dcmi *dcmi) ret = v4l2_async_notifier_add_subdev(&dcmi->notifier, &dcmi->entity.asd); if (ret) { + dev_err(dcmi->dev, "Failed to add subdev notifier\n"); of_node_put(dcmi->entity.node); return ret; } @@ -1628,7 +1629,7 @@ static int dcmi_graph_init(struct stm32_dcmi *dcmi) ret = v4l2_async_notifier_register(&dcmi->v4l2_dev, &dcmi->notifier); if (ret < 0) { - dev_err(dcmi->dev, "Notifier registration failed\n"); + dev_err(dcmi->dev, "Failed to register notifier\n"); v4l2_async_notifier_cleanup(&dcmi->notifier); return ret; } -- 2.7.4