Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752934AbdDCL2A (ORCPT ); Mon, 3 Apr 2017 07:28:00 -0400 Received: from mail-db5eur01on0136.outbound.protection.outlook.com ([104.47.2.136]:64472 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751342AbdDCL15 (ORCPT ); Mon, 3 Apr 2017 07:27:57 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=axentia.se; Subject: Re: [PATCH 0/9] Unify i2c_mux_add_adapter error reporting To: Wolfram Sang References: <1491208718-32068-1-git-send-email-peda@axentia.se> <20170403102722.GB2750@katana> CC: , Peter Korsgaard , Guenter Roeck , Linus Walleij , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mauro Carvalho Chehab , , , From: Peter Rosin Organization: Axentia Technologies AB Message-ID: <8022ae03-c8cc-181f-ae16-c9e6584f43b2@axentia.se> Date: Mon, 3 Apr 2017 13:27:48 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170403102722.GB2750@katana> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: AM3PR07CA0092.eurprd07.prod.outlook.com (10.165.222.26) To VI1PR0202MB2559.eurprd02.prod.outlook.com (10.173.79.138) X-MS-Office365-Filtering-Correlation-Id: 917f0932-f2e4-42ff-b730-08d47a8477b6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075);SRVR:VI1PR0202MB2559; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0202MB2559;3:RgfRb/3MdjO9Mo6Nk+C2ABc0ur4nQLUq4z+HKWbhVpds5b/fR5mQ5Dvv2HIxiPmyTWr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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:GFxBpc3ggbv1uj8UlA5UDw4LFNJ1CzFUh+XoV1Pgd1SjwdpOA7nb8abc+4sw8L1RFGAY1VwODVaCmMLEnhIAZ5PsiUAvVm1qQ8mnCCjHyfDSNWL4+GA+znEeoqSUVLfJX0bkhvSljLbf6ZTm/il2Qlr0Zap7ZdkbXZq4Ypxj/GzbV7jbEb3jEx/hvlrcRbXdUD0oqnq+J+zVvnitrig+td3+UBb9xUMXD10V1YZSfyJSPzjLbJB43xMJnx2ylZoo21IknV+DspLEYziEyLMNFDtfFD72mywd/B+qSSnUiyZt8tmCyv4lkc2N9uuGWYIOoqyGI0embU9tzHz8MGkaUvz+43f5uIbYd13cetNgTSkHK8JXNYolg44JNgRyIZT7ALB3L9NN5p6d7zr9wT21E2kCQh96OcQkMJJbQWC1/z+B68mSMo2wZM59kdnQFVj6guHfuhb0bGi0iap8/CSSCzvMiCDB35bgQ3/oCLPi4KUpQqWorR0T6dOj9KwPcRaCKmDN5rL4v99dFVh5873onQr+WgrsLZzy+gBZudN/eVNNd3Q6M05PURxGTbEAL8vllQI3Hr1unlvTMrGW/Ir9fTzAJViUmxcdEaQA+icR1efxDuHtTHkf0zgVqb9MUxNVsgjZNJ/hQ8cHgtUEfrMDEwKbRL99AHIcmRsEiqCf7OAOJNy7J+L7uTMCW6JlF6kUasG9/JAvcXmn5H5vZIMoShxH1hy0xT6uuBU2Sjo9uEg2V5swc2X085WkEiNh8i2/9rGiGG8OqMCHgN86eBwsJPpgraYtm95zgX/A5sFHJR5RlZTq+47ZDyjmiocJO2tq X-Forefront-PRVS: 0266491E90 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6049001)(6009001)(39840400002)(39450400003)(39400400002)(39410400002)(24454002)(377424004)(42186005)(31686004)(4001350100001)(7736002)(2906002)(6246003)(77096006)(3846002)(6116002)(6486002)(305945005)(33646002)(90366009)(66066001)(54356999)(38730400002)(110136004)(31696002)(76176999)(50986999)(189998001)(4326008)(36756003)(86362001)(7416002)(53546009)(25786009)(47776003)(230700001)(81166006)(6916009)(74482002)(54906002)(117156002)(5660300001)(6666003)(8676002)(8666007)(65826007)(53936002)(23746002)(2950100002)(50466002)(83506001)(229853002)(15760500002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR0202MB2559;H:[192.168.0.125];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;VI1PR0202MB2559;23:7PGVV5jZGLSvhCaYui2bh1+ie657L0AqzN/?= =?Windows-1252?Q?45ik9P+m0C25B6iLwufL2yOHmRwje1kTgVsJYr4bbqExFQKX48sqa5cr?= =?Windows-1252?Q?ycy+oJcrLKOKky+ObxD7ZqSK6757GdL3R3sVUtYydMXKJOLFzXjr59sP?= =?Windows-1252?Q?AUfHFSLIXXV43BMut1JHKbbh6XKfDSoUtuyaoDMcD3h1IloKfj8p/MII?= =?Windows-1252?Q?JWVmS+wQCq5keWWOulSX6+qx4uhEeCWmyYUuZ507mv+anibbI+2uxwzr?= =?Windows-1252?Q?VoXbOS+UwHso/NV86TBSukvKIniSgmfumvxKEkKh3hlyNYPuZOdk5mDL?= =?Windows-1252?Q?bATZI8OKnp9PVHwKaBy9OjEv1z3ImVsJNpKx0OgjXj/SdCY3vC7v02w5?= =?Windows-1252?Q?3WWKWWyQJS4SffSrqdxFy9NP4Bnx8LweNV1RltNRiI2TMdQNx1fqH5Kb?= =?Windows-1252?Q?CU2jvyN+PMKXYQvm3iOY5duA52mldjKT+ieUlbRMca/GZML5ffDFh9Vh?= =?Windows-1252?Q?GKMzhoNjSayz2paYKp8TjybvNyFMzRA/uaHe/B7jUSNGdVRd5OrkpCma?= =?Windows-1252?Q?SZAtrONUaPb9b97kgZD7BalZ7accdGA4ZptOcwJopAJBda01Grp/bRuy?= =?Windows-1252?Q?OT2sM7xqqU9MZhfhlj32YPd7ZU4iBsQ66p1oHMcwj6+9DP1NR/v6OJ3j?= =?Windows-1252?Q?CLoD36yIdvPC8PhCOx0gXPf/TakGDmJGucl4QUl33nH/ithcDMY+rtLu?= =?Windows-1252?Q?ubnSU5IFqa2EqLxqfUhXrVnMmWTAF5zCiYVSIYjJXfW/4F8Q5iBQClBH?= =?Windows-1252?Q?YeosYCWWLPGgkS/x0f9tH1L0sPur4WU3SkSY6788hOxqofTmcUC4LliO?= =?Windows-1252?Q?MQk6w+ioYXrcp4ROKlLODQB3B9nFbt6AMrO85lF5TkMW6AoVWC8KTFWP?= =?Windows-1252?Q?V8ghJSIHaaL3XKABxo0csd2qaZsPkiPeltwwLXr69naXkMJm4I/chsDH?= =?Windows-1252?Q?9dk1KFC2ZbYg5pcY8CYbh3dJkKR37T0Sa+xowcg2k+eXRAb09Vs7cnfD?= =?Windows-1252?Q?FZZXaTHO5bhGpjCaqE38IFTd8zD0UhGHrEtMVXZGF/YJU2La0r4LJreb?= =?Windows-1252?Q?uz12UXYscTy+BEzMtdfx5dCLbDDypnKdQ3eNVF2dN66LQMgDRNqWtfvO?= =?Windows-1252?Q?4+mxqBuI6n5/qBJVvmyu+M36ZNvPI/qcQbYXykq85hvwYox9IfkQmlHo?= =?Windows-1252?Q?ACks0hfX7vSpme1gsPPwLt+FZYnUnFnhogmK5utaI4HdCKQsP1IduVJQ?= =?Windows-1252?Q?CwhziHquqm9mezkbqbQEVIn29Km12+0XEH8saqniLSVrywAcBgz3OyCf?= =?Windows-1252?Q?9WIiWYvjThplg9v5YlbwRGq8lawEtYuNYvTjZO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IOW0cZwrvdSVcY3WyNLVEFzg/9ndjv0ALsEiQpYvU7YyF83/FyAcEXYAsjaPU7jSBEFlmKw+hzmv8vUTeSWVnGa6T9S2rLI982+8bXTQM94LEHuXuAEhuDg6IxeKoZFmF8Y91t1+Mm3EBNRLzarmV8OKSW8/FzNYO6ijtpqr8dQ== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2017 11:27:51.5816 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0202MB2559 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 28 On 2017-04-03 12:27, Wolfram Sang wrote: > On Mon, Apr 03, 2017 at 10:38:29AM +0200, Peter Rosin wrote: >> Hi! >> >> Many users of the i2c_mux_add_adapter interface log a message >> on failure, but the function already logs such a message. One >> or two of those users actually add more information than already >> provided by the central failure message. >> >> So, first fix the central error reporting to provide as much >> information as any current user, and then remove the surplus >> error reporting at the call sites. > > Yes, I like. > > Reviewed-by: Wolfram Sang Thanks! BTW, the improved error reporting in patch 1/9 is not needed for patches 8/9 and 9/9 to make sense, the existing central error message is already good enough. So, iio and media maintainers, feel free to just grab those two patches. Or, they can go via Wolfram and the i2c tree with the rest of the series. Either way is fine with me, just let me know. Cheers, peda