From patchwork Tue Dec 12 10:12:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander A Sverdlin X-Patchwork-Id: 847443 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nokia.onmicrosoft.com header.i=@nokia.onmicrosoft.com header.b="GGhN9ji3"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ywwdh2kddz9s71 for ; Tue, 12 Dec 2017 21:13:44 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbdLLKNl (ORCPT ); Tue, 12 Dec 2017 05:13:41 -0500 Received: from mail-eopbgr00094.outbound.protection.outlook.com ([40.107.0.94]:47856 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752473AbdLLKNe (ORCPT ); Tue, 12 Dec 2017 05:13:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=o9P723Kjvve/GOB5sqPQDjc4b6ymB1Zl9w9/jjDGkmA=; b=GGhN9ji3Cdn9t1f6/K8AbFkuljJ5ODWcHYehrbF9zZj/Jdzi0SBVlX4BGw3B8FwT+E6HdwIvN7fw4L8FjlnFzayxc26wNmCP24f7HW1kh6eiBSU97OieGiu39I39CEiDb9OxlKXJ+f05gHGWUaTmJZ49jQdgPfe+oMUlDeWXSiU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=alexander.sverdlin@nokia.com; Received: from ulegcpsvdell.emea.nsn-net.net (131.228.2.20) by HE1PR07MB1324.eurprd07.prod.outlook.com (2a01:111:e400:59b0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.323.4; Tue, 12 Dec 2017 10:13:30 +0000 From: Alexander Sverdlin To: linux-i2c@vger.kernel.org Cc: Tomasz Bachorski , Wolfram Sang , Peter Rosin , Alexander Sverdlin Subject: [PATCH] i2c: mux: reg: don't log an error for probe deferral Date: Tue, 12 Dec 2017 11:12:03 +0100 Message-Id: <20171212101203.22125-1-alexander.sverdlin@nokia.com> X-Mailer: git-send-email 2.13.2 MIME-Version: 1.0 X-Originating-IP: [131.228.2.20] X-ClientProxiedBy: AM5PR0102CA0024.eurprd01.prod.exchangelabs.com (2603:10a6:206::37) To HE1PR07MB1324.eurprd07.prod.outlook.com (2a01:111:e400:59b0::14) X-MS-Office365-Filtering-Correlation-Id: cb38ff99-3b77-42f5-7f6f-08d54148fecc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(48565401081)(2017052603307); SRVR:HE1PR07MB1324; X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1324; 3:EN7OljcN3I5+fFk0E1wsYLHWFGa49vMiasyBtgcVXFMSDEd7EIHKHh/W6MjVuyFYko+LhuFiEVJphnuXHOJior+7lfoRKU/zTFG+6lSaZ/MzMhyrqqkZXXqAolo5p17jLtGU+zGR0DE+o4uUT9gR7Y+yn4u9gSrHqwEISDzooMgs4dOKTT96OXvRcrYGnEwL2WEpdRU8pev89QyayvoZslicySXxGyeGEjAVpGQ5TBIz4brpjpAqHMTc/eqFSSRq; 25:2w9gQjYrLbDFJd4dGvaEsFSweXgXgFVJROJTHB8PW7XomdVoR/rV7LQ7ZDGnYZ7o5RLi0zg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5x0VrT9YKHwcFaGCmDmuPV/SS9I702k+i9DVd8zHwXc44oO4FiEHQoufpWT1A177xyjAsNgTDvv7dMqs4akztXT+jiDkSSjQZezhG5Jw2YYJ1HyJ5i4Er8k5nGeG1yaIsJytBadiRkOA29G5OtK2889rC3D/MNI4s1RjkKs=; 4:KA5HoKmREC2oBhIV8Duz8gFMKM6UAyCc0+5tYCGscn6l8uCqZSxKbo3HYl+Umenz3aaREvGaWdxqtpYXNGRU9e2MUKE593ZEuz8hOLz4893I1c9wp4zT4eoa+XxEcTIspSCT9XuZnsrgQRm39Vvxiw7lWfMVHscMlfEUNRyJae3TZCx17OgcvN+FEy6F7Oj72yx5PmRW8qQmpx1sYF8P0caP0j52Mt9A8an1/VqJl8H5v7Ucu9Aeb/NfGde9NibDkQ954IY0PbpVUL/p5Zhl9IZt7nBSo9zjyAP8WULGoezNS634OOgkkJfOXY3Yuerx X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(82608151540597); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231023)(11241501184)(806099)(10201501046)(6055026)(6041248)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123564025)(6072148)(201708071742011); SRVR:HE1PR07MB1324; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:HE1PR07MB1324; X-Forefront-PRVS: 051900244E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(366004)(39860400002)(376002)(346002)(189003)(199004)(16526018)(50466002)(81166006)(1076002)(478600001)(316002)(54906003)(6916009)(59450400001)(5660300001)(6666003)(305945005)(2906002)(2351001)(81156014)(50226002)(6486002)(6116002)(7736002)(3846002)(47776003)(86362001)(2361001)(68736007)(36756003)(97736004)(107886003)(48376002)(106356001)(66066001)(575784001)(51416003)(105586002)(52116002)(8936002)(6506006)(53936002)(6512007)(4326008)(8676002)(25786009)(16586007); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR07MB1324; H:ulegcpsvdell.emea.nsn-net.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nokia.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1324; 23:5RApa6mEzljw4K1qBfECudp2ZBNxC2b5SgyJZdm/+UrnmxZ58Ijs22Irh9yIiiY+crQAmTtHe9zDCzxkHcs3wQAKySP7vTYgcDh3Oyp01YH8G2k3r0WoSaWhsPkF4s8X+gwtwM1t2kzJnmeVxJ/51IUk5LBhsXhCLFPi4pWop7m5kB/QF1NAjXEReEF0mVCBdVqHyv6IjHiBIJQUBn+aQPcRlJaZ9V5J/s16Amu6Ixe45aWjyzRjo8epDqG+/kkv370bN4cbFWEAEuxlzW3FihRGZ8al5DlEDkC1glabpW/YEhIpEZMwf4KOnKAUXvnWSDGyQ/0tjDXnplVZeqeCQKNUHtbR88V5A2TV61oC7NdRM5w3itGkgDcSubRBtxQrG4sBbLZeJmo/ccmt+M1LS80Yj3MvbwNYPbw+txL0q/0GF41UArdeEVRbwbxh6bjcZ2iBoz46IWCdmjalLtzAGJSwNpMKZhFP+H97Af2T55VW9JK1nm7tQtvx/IMjvgG2ispEvF+KZZqEbXiBl5J/iJV0+0Xh6bEYxqEwBZtNiH6g3Func7RMj/7sU5+F72vbaeCl5bdJKCmFLb6jenGjC+wQTs9JwC+G+b+r6/DZBoB5PFsuLmouFAYXlQrqpJlOwyT71eW79py/yhlUBI+qhVXiNgNCmf3CKKTYyoUynMlXfkbG/1OBbMV6K2/XgngOBsHMu6h/Wx8TmEky9QoNEr0U6ncf19aL57bBKYc7+W2rMKDajHBICgesxD9JfiGmxthmzCwsXDWEzRFRz2OyOmH/SlwTCA4Ck7J6UWCPOd6hQING4WWzYzowE/k3wwpjr+GxqBWJr0X3Z2SAjVJnnJXQieSaSi67JxzL8v7O+IF8L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Mq4D8TJk9yvf06hFxtFVG9KZdMKdvMrBHZbjvFyf2YfD1S7sTHjwNTiMLNI11WNHVJqxyDhNjMY1o5QfobUk2H9QhRpb9rpFrjm+NLMIzMMGZjeF4K8WCfyJPtPKvNHRfC+aBDcNpHiCgnRKKkVvsahdS3WtHP/gW8bJQbk28ItQCupImjnxrC7JpfqkXZGUXLq5utkqzGZaX85ePhqMrfZn6re590yw8ciSD9MRDL SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Dec 2017 10:13:30.4339 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cb38ff99-3b77-42f5-7f6f-08d54148fecc X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB1324 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Tomasz Bachorski It's possible that i2c_mux_reg_probe_dt() could return -EPROBE_DEFER. In that case, driver will request a probe deferral and an error suggesting device tree parsing problem will be reported. This is a pretty confusing information. Let's change the error handling, so driver will be able to request probe deferral without logging not related errors. Signed-off-by: Tomasz Bachorski --- drivers/i2c/muxes/i2c-mux-reg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/i2c/muxes/i2c-mux-reg.c b/drivers/i2c/muxes/i2c-mux-reg.c index f6c9c3dc6cad..e0be96e77231 100644 --- a/drivers/i2c/muxes/i2c-mux-reg.c +++ b/drivers/i2c/muxes/i2c-mux-reg.c @@ -177,7 +177,9 @@ static int i2c_mux_reg_probe(struct platform_device *pdev) sizeof(mux->data)); } else { ret = i2c_mux_reg_probe_dt(mux, pdev); - if (ret < 0) { + if (ret == -EPROBE_DEFER) { + return ret; + } else if (ret < 0) { dev_err(&pdev->dev, "Error parsing device tree"); return ret; }