From patchwork Mon Apr 3 08:38:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9659033 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C8F876016C for ; Mon, 3 Apr 2017 08:39:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BE6BC28450 for ; Mon, 3 Apr 2017 08:39:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFA8C283FF; Mon, 3 Apr 2017 08:39:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 66DF5283FF for ; Mon, 3 Apr 2017 08:39:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbdDCIjC (ORCPT ); Mon, 3 Apr 2017 04:39:02 -0400 Received: from mail-he1eur01on0104.outbound.protection.outlook.com ([104.47.0.104]:28716 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752224AbdDCIhe (ORCPT ); Mon, 3 Apr 2017 04:37:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LVPAddWEK00tjYdS0e8U45EkIdBKOnascP9yjYMpXW0=; b=hCAIy7+6In8mlfdBhIq6kQ2yP7MZS4thJupgCB4XGMZSERWlPznRdkUi3fHVG73wzuetKFePs4CjUowJEPh8lA5WiSzuiwy2Ua9Ii47APRQSCPaAwvpatEIhaibE/iW9Nr87Nw9Ql51Oe6vwReTei42Z20VtjCyxhAGhAtYrmNI= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=axentia.se; Received: from localhost.localdomain (81.224.171.159) by VI1PR0202MB2559.eurprd02.prod.outlook.com (10.173.79.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Mon, 3 Apr 2017 08:37:26 +0000 From: Peter Rosin To: CC: Peter Rosin , Wolfram Sang , Peter Korsgaard , Guenter Roeck , Linus Walleij , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mauro Carvalho Chehab , , , Subject: [PATCH 5/9] i2c: mux: pca954x: stop double error reporting Date: Mon, 3 Apr 2017 10:38:34 +0200 Message-ID: <1491208718-32068-6-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1491208718-32068-1-git-send-email-peda@axentia.se> References: <1491208718-32068-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: AM3PR07CA0091.eurprd07.prod.outlook.com (10.165.222.25) To VI1PR0202MB2559.eurprd02.prod.outlook.com (10.173.79.138) X-MS-Office365-Filtering-Correlation-Id: 55c16724-773f-4d77-f0f1-08d47a6ca95b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075); SRVR:VI1PR0202MB2559; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 3:DNF2mQwqCr+A8REW6JhmLMqVDGWQaOWSTc9gKBvhiTt2KiF/2MrIfyCZJDN3kIgqcx9YcaX+k7Y4B5mDBy9CnENLJyOV7cYitptkfPpbk0ENXITdM2JCxHVcEb2x3nF0ZdxOrknwBDrUpzbIyCaQaANq+G+MRFT7adw+uX5a+V2GAjedcQ8DVcxtrlo3/98T3S2riHSvOpTDALl8tr0LNXNUZJ1+kd4QnVso3CjmoOY9ibvf5HXTdT7excg3RNdnBWGlhpXV3N88jAZp8eiUhYBTiQQIScrT1ly7XvVUc+RQsxxSfVsvOOq4jLs6/S7Y; 25:qKMqfQNT4QYAkNcgyqJp8cv8GKC87YK4P1MjoCJJGf0LJ10fkCbYtvaohB6Oa3dqG7G0SAoFTZZIcgFhmyTKUY5rCF80T58VbYH/51G45iJwl795QejJ13ehdscVsQag3jNIQsXPmZ/MufKsIaSU83ffacl70qIm1KI+dKr5c7Cg7un0Jx5BPw0zWo3PcMLnCQqzCQfWZrG2aRycaaO0Tir13wkV8d+114rBb71smxvgQPXmA/wSfpUz3LSVvUVFg5/0+TBj4Itmg8VPlXJK8p8nxftcMm+6ablD2JMP0cFCVZqlMil6BasIPskjDMf5W6s9KEO+t+BNI9fQ5pd/wXg8c8Ipz8X+WZ7dfcIi4e1dmFMSwwwKzzLY9YVybNZLHspUnVBQkBMsvSkENph5iyXUeNu+xQNa4uFwkiKxwkjyl5wDe5t8BvrZh3UIK4R7iLlD8+ptZxAxY9eyQ70M5g== X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 31:RdqTuDFMOAhlcqPhkH7BhBKugTMM2wot7T4nrXXk/daEbQoDS1yI4QT11U87ceRrRYRnAQpcD1OjIdHTdoBlqpBUnXlpu6looAB4F7+l78fBsAySrnPQo+d9NgRzsEToZVcciQhXNf0/aBTvbZxAXKLQQ0AQezE0yuAvpdkUXvIdXl/Z5rmN4kqLrgStyXTaLDJRtaQCcJ+KD763pUu670DL/FivQY1fbNTa25CaCR/MnaOMQrGJQrJfaRe6+OOr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(211171220733660); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(2016111802025)(6043046)(6072148); SRVR:VI1PR0202MB2559; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0202MB2559; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 4:N3Xb3Psv+YT07Zg2qE3tvUX118wCI4rrBsLVOoj5EGPMdDJqgun5OyemKFSXvZb6D1vpRkFNdaNiH1sk1wNmM0bnw2ZrZ8aIhL3B7ikoAuV6p71tD5DDT2iI+EOfEIOUIj4NHXtmuQanPcdvlP1Jg9QdL3OCQ8a0SGQtetiXcsBqfG9/LKtWLsmbgmmqzyY31NJ09ToujQaR0bYOy2J50ml9twtCrso3KNyyfqkITWhqH3Nz8we3/P/O+uwW9QVjhDP74sL9bAT/E5taRbLHIrttfIxh3M5I6OWg7VClGUgJUqMwovOdsoS3XwZHRaZCfgEVE/kNy/mlwkdB8jL32vYBuvgskSU0Wofo9/p+5PizTdHdQOIsa7i7uazyOTDWOL17+FzPlyFeGLWQkf1SjcOul0jFWTVW1AO4cNkfd93sCBYxZ1RHnVOSMfuBUM0EYe64el0tejDruaDGrx9vQ/NupZxCKGSzTB3Mpp3KnoY7dmV0l7SvRmv0jOkpLvjDg49TBirHCWrJNkRPyhPVCcEy73jDHbuwKM49tYdKMa0vQJy9SKYhrwt/6bhFRxy+QKUrsBRoIeoUfX+/XIKoI0KO+DueV8haiwWyXv7ogNVnNRHuxGut3Nl56pMAYnlZ4o0nLIU4RAudP71GQK/dNGZ5rdmHG6rd3st8i29I33+Ol+QoXhn4TmJEOFET4vGGo4vmzCXoRuPqHl9q9ya2DQq+E5laEhGf3x38RgAA7QJ6NlW4VmoJIneELe744z/GpFpgOCwQaigaYuBxAKh2f2RRBboLGwKQxGomK/n690ueFSDWETd3ewH4dI5D0XAH X-Forefront-PRVS: 0266491E90 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(39400400002)(39410400002)(39450400003)(39830400002)(74482002)(6916009)(81166006)(6512007)(54906002)(7416002)(86362001)(25786009)(2950100002)(53936002)(8676002)(5660300001)(6666003)(8666007)(48376002)(2351001)(5003940100001)(33646002)(42186005)(3846002)(6116002)(305945005)(6486002)(7736002)(50226002)(2906002)(50986999)(4326008)(189998001)(36756003)(38730400002)(110136004)(66066001)(76176999)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0202MB2559; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0202MB2559; 23:3+EaDlIGLTddArYq7MsAgyU1u1m3eC51FIPHOEf?= =?us-ascii?Q?/avMQBxkE5fw7bmq9fJYJhgSn408XU6q5O2ooauvp9v8//3wXmaWHcgSH5t3?= =?us-ascii?Q?Axarj/kqV++AEjjZ4mLHbCJtHjGp/qIKDiIHYCAR5s69R2OOnrDypEgQNBZC?= =?us-ascii?Q?2CtIDqEQ+QbNSS4gZO9oB3SXrWkg7sV4la0rUXN8PsBzFDaMXZAHXncekMKX?= =?us-ascii?Q?X7ghs3MP+HP9B4Azv/SmsWinbXYzsW5J/fIqS7Q/jEu8imlScAzr0F+KA3OF?= =?us-ascii?Q?GGrp4gKxilw+tp2LugxRx/HISKMi6U2BUOCy20ens2ButNrzc/AEILQixVJC?= =?us-ascii?Q?PpFBrnJPeUaDMS3wygdOneZ8+cgVFRmFzvVkJVsqqw7F7kZOrDSlMqLtyxm6?= =?us-ascii?Q?7lfQdPYG8z82zbCj1dH7XQT4H302ITtqmEkLaS8FZV+E1coQ8zVT4GKZtdqG?= =?us-ascii?Q?qsHyoiS0PsY379NNQJWClrtf5B4KGgQkSY/BUrU7xUU+Mzo8pVqYSmraYzhu?= =?us-ascii?Q?LFJIiTJn7KNG31Iv36m9vaOQeQ3oX99WzZO+tkiXem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v0Y8w==; 5:gVwzwvq3ncHuU4JyQLuFHpKNnXgr3rLWG3Tb/yrWFmL7W8/JyAM1igiXHbQtzWYSO4P4CLN/0rSyaTS36FT+u1uwyRbNgoqEPj23hiaVYPONnC1diNyJsIWtV/FDKmCdO5lA6YbsEGqWs7kFY51D/A==; 24:ZggKBWuAAzxz7Zx+6pIGxT5iHzsz64pq3TCVBFZLm3CuL9y9OhMgocP7ptx0oLOH82Ov/5CCZQLZREu25MicvggBp1Z+8qZSkn93XooABt8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0202MB2559; 7:ePu82GRjZvwLwS5zrOBn/XwqBMNUaTVJX4KsuUZmfqp7AEXiIa7QNxGieA9acRw6xdDx9ejnWwwdvpsf5i0dw6wt8Xaqq9qMaX3IFF79fV0AfEmG0hNHNS356d06RdbEmN9xAS3KZrlZHUTM+W8E5LjIugKf/eHaQ6TWVdC8XziCC2HGnhF7y+ceagG+/luNuZe7UE5cO6+JfEvpL9ZiBiYTtToWUHBCS9VH9rgJo1CizypQRd9aQ3D3tpHDlE/Rs8Fez7ts9r0/DF/9DPoNbDvdqusIJJFvgN95N6OTi3N+wEuPsXMzMt+Y6Z3p6g0akgsPfrZVNhxngcNhJQBVUg== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 08:37:26.9553 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2559 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP i2c_mux_add_adapter already logs a message on failure. Signed-off-by: Peter Rosin --- drivers/i2c/muxes/i2c-mux-pca954x.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c index 15dfc1648716..b2a85a2d00f7 100644 --- a/drivers/i2c/muxes/i2c-mux-pca954x.c +++ b/drivers/i2c/muxes/i2c-mux-pca954x.c @@ -434,13 +434,8 @@ static int pca954x_probe(struct i2c_client *client, idle_disconnect_dt) << num; ret = i2c_mux_add_adapter(muxc, force, num, class); - - if (ret) { - dev_err(&client->dev, - "failed to register multiplexed adapter" - " %d as bus %d\n", num, force); + if (ret) goto fail_del_adapters; - } } dev_info(&client->dev,