Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751782AbdGYL2G (ORCPT ); Tue, 25 Jul 2017 07:28:06 -0400 Received: from mail.izt-labs.de ([82.135.25.162]:51364 "EHLO mail.izt-labs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751729AbdGYL2D (ORCPT ); Tue, 25 Jul 2017 07:28:03 -0400 From: Johannes Poehlmann To: linux-kernel@vger.kernel.org Cc: Johannes Poehlmann , Evgeniy Polyakov , Greg Kroah-Hartman Subject: [PATCH v4 5/5] w1: ds1wm: add messages to make incorporation in mfd-drivers easier Date: Tue, 25 Jul 2017 13:27:15 +0200 Message-Id: <1500982035-28838-6-git-send-email-johannes.poehlmann@izt-labs.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1500982035-28838-1-git-send-email-johannes.poehlmann@izt-labs.de> References: <1500982035-28838-1-git-send-email-johannes.poehlmann@izt-labs.de> In-Reply-To: <20170718141502.GA18857@kroah.com> References: <20170718141502.GA18857@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 44 w1: ds1wm: add messages to make incorporation in mfd-drivers easier Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index 5314379..f661695 100644 --- a/drivers/w1/masters/ds1wm.c +++ b/drivers/w1/masters/ds1wm.c @@ -579,8 +579,14 @@ static int ds1wm_probe(struct platform_device *pdev) ret = devm_request_irq(&pdev->dev, ds1wm_data->irq, ds1wm_isr, IRQF_SHARED, "ds1wm", ds1wm_data); - if (ret) + if (ret) { + dev_err(&ds1wm_data->pdev->dev, + "devm_request_irq %d failed with errno %d\n", + ds1wm_data->irq, + ret); + return ret; + } ds1wm_up(ds1wm_data); @@ -590,6 +596,13 @@ static int ds1wm_probe(struct platform_device *pdev) if (ret) goto err; + dev_dbg(&ds1wm_data->pdev->dev, + "ds1wm: probe successful, IAS: %d, rec.delay: %d, clockrate: %d, bus-shift: %d, is Hw Big Endian: %d\n", + plat->active_high, + plat->reset_recover_delay, + plat->clock_rate, + ds1wm_data->bus_shift, + ds1wm_data->is_hw_big_endian); return 0; err: -- 2.1.4