Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp570095imu; Tue, 11 Dec 2018 04:08:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/UvjBXwNg31rvsTcYCrRsu6ZVQT2kzcdY3KM8Jzqax/0eJR3GP3+qKRXbuK0KG6eWgTvC6s X-Received: by 2002:a17:902:6b0c:: with SMTP id o12mr16075024plk.291.1544530110090; Tue, 11 Dec 2018 04:08:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544530110; cv=none; d=google.com; s=arc-20160816; b=KFfT7uhI7I1Gflvs7rB4DWZbPm4tiGVr/xT3HZMRQJYUzOD1O/C0dHM94uZ7vgQQep t7nmAX5abQ5DkgTZsa507Ty3JkMjA4FPsxmj6CV4ZRJm8jMkMyTLe9a18kD1YEKBGtZH ZTuGjWIRwLogIAGM2qpaODBawOr7GR71xsKUo018kh3DHs6MyJhv1rvyvedLy+OqUEjB 5bW0JSyKpkdhVHd6dzyUTJfTh7n0G0RuPtYRJPvnaf7uTn7GRKNCY8RmQYFOrP/6mfp4 yeLl1OIP4bw2RnRse6t0tCzOvnKdxvKUrLNmsTYXVm9962jT7aMuIZ1wOwuX2J6hLK9X pgJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput:user-agent :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=TRHGor/D/g9bLtNih4mZw7AFQvB2ThzbjyOXlJk11jY=; b=NLKjgsvtHDp5gnEihX62oAaQL/4BTxTIu62MARtPstvJknRfRIG3dmuWMUjHvCa8Lf z983Ua61fOWnnoXgi2saHEmGOI830rMtbMSgKpmlOfb3PaIhqumIqyIHwPVL+1V8Ci7i VWm1II7+f0U9PqTw3ROD0P+Pu3LkHhGtgNX0YQt3vev99KXVhyFDWrBR1hX1vKxMIWlY XPnGcMmkwNddT/0vTwnaT7VmhioISiSHTUFGPqgGp2Zd73aKR/eXdYOHeYjloCu68l8p XOEZEBP0CMbOjAnh07z0gIvjvn8A8lDB1lDCePqS8cjGNR4P7CslUZgigYDzka32OOQn 28pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=cGL20Jfh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x187si12425463pgx.241.2018.12.11.04.08.00; Tue, 11 Dec 2018 04:08:30 -0800 (PST) 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; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=cGL20Jfh; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbeLKMFb (ORCPT + 99 others); Tue, 11 Dec 2018 07:05:31 -0500 Received: from mail-eopbgr80138.outbound.protection.outlook.com ([40.107.8.138]:16754 "EHLO EUR04-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726379AbeLKMFa (ORCPT ); Tue, 11 Dec 2018 07:05:30 -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:X-MS-Exchange-SenderADCheck; bh=TRHGor/D/g9bLtNih4mZw7AFQvB2ThzbjyOXlJk11jY=; b=cGL20Jfh0DdkJO8indfin2mLTYF2zsmLhmOHQ6hVLTJOfudntyeQm57C+TSHbgmtDZx2Q5mBbl5KwJzY3BD5H6UgAyI4cmfI/jC7U2nAuzMu3NwaGU4LrQ+hjrYbr+rwW5RXZuBo95NHtkrft5KK5zh5KxKFypziaaOTx9IVHLM= Received: from VI1PR07MB5088.eurprd07.prod.outlook.com (20.177.203.160) by VI1PR07MB5679.eurprd07.prod.outlook.com (20.178.120.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1425.9; Tue, 11 Dec 2018 12:02:32 +0000 Received: from VI1PR07MB5088.eurprd07.prod.outlook.com ([fe80::c6b:1f98:e4e9:7240]) by VI1PR07MB5088.eurprd07.prod.outlook.com ([fe80::c6b:1f98:e4e9:7240%3]) with mapi id 15.20.1425.016; Tue, 11 Dec 2018 12:02:32 +0000 From: "Sverdlin, Alexander (Nokia - DE/Ulm)" To: "Adamski, Krzysztof (Nokia - PL/Wroclaw)" , Wolfram Sang CC: "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linus Walleij , Guenter Roeck , Tobias Jordan , Peter Rosin Subject: Re: [PATCH 2/3] i2c-axxia: check for error conditions first Thread-Topic: [PATCH 2/3] i2c-axxia: check for error conditions first Thread-Index: AQHUkUlly6ofdoCytkCGi3pQTiTTTw== Date: Tue, 11 Dec 2018 12:02:32 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [131.228.32.165] user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2 x-clientproxiedby: HE1PR05CA0383.eurprd05.prod.outlook.com (2603:10a6:7:94::42) To VI1PR07MB5088.eurprd07.prod.outlook.com (2603:10a6:803:9e::32) x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR07MB5679;6:Thmtj9BWjUQUjOUFSmattJPfZ+IzxxTxcvfecApmD3ky5QqF1EwKUQIceeRwNHYvl34EsfYtOZmC4zoAnj1WKxXrQxBAFpch59ExL/u4CuJ0oVO8hSVnIZh2qy/84RhpSge0Wg0uEjuwhlqF4LgdOExdS8jzOk/b/fjz6otNh7bCXMq0hJnKp5lI/3qH3snh21v3G11Pkr0u/i9SKXH5CSDsYQc+m7qxT8NbUAxe/EoMd/NRfbK+GiLAolvgFj84H7Xedoi4tv99dQTZbw+4okp3IXtka2pGsGJPjGG4BotE+bE6EbUQSJE24ObtmYVpgkNBqAmHXNdQY3pJ3TUbIpgCy9U5OkKhKMi0PfKda1KL8Oeq2tUkIPZK0doWAv74bTxg+wm10aaZons+sLYRGVNlIn3o7EJclB0J40qKo+XDfjMHYUaHAy8WUrGatRqQDmdRums/DpbyAkeRmNuegQ==;5:PO0hDC78fceq60jVfROu0f31bXEhMKR8FTN86nA9UKR0hhAGUwzSBYQ8zqG7udbfWW3DHKSkZEhpBjrIYOmw6nlM31NLQH84eFtTXqmYFjfLuxkuz2W3tONVv7QoM3Kwqgs+egtVwauy69FnJjVsVHkm5KP+t5dDUhl4SPy8m+k=;7:6/M9UVOlm7yQ9CFIiHW8Geu0Sye95Mlqr9PYcaBqLwvHCrZuRi/9pjBiW+LDdtWd2Fyb9gl/Sh5R1SKZTU3GyzDslcZvZhlJqeVFwS728H+wR16LL60hTHGlMm4HOU22mad9OFKfpp0N0I3YNAG0Kg== x-ms-office365-filtering-correlation-id: 16cfaad2-4414-4715-a042-08d65f6087b7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:VI1PR07MB5679; x-ms-traffictypediagnostic: VI1PR07MB5679: authentication-results: spf=none (sender IP is ) smtp.mailfrom=alexander.sverdlin@nokia.com; x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230017)(999002)(11241501185)(806100)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231472)(944501520)(52105112)(3002001)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201708071742011)(7699051)(76991095);SRVR:VI1PR07MB5679;BCL:0;PCL:0;RULEID:;SRVR:VI1PR07MB5679; x-forefront-prvs: 08831F51DC x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(346002)(376002)(136003)(366004)(39860400002)(189003)(199004)(76176011)(97736004)(106356001)(52116002)(71190400001)(71200400001)(5660300001)(105586002)(31686004)(486006)(54906003)(86362001)(6116002)(2906002)(6512007)(31696002)(316002)(110136005)(58126008)(68736007)(8676002)(186003)(7736002)(53546011)(6486002)(53936002)(446003)(3846002)(478600001)(102836004)(6246003)(2616005)(6436002)(81156014)(11346002)(305945005)(6506007)(386003)(64126003)(81166006)(66066001)(4326008)(14454004)(99286004)(25786009)(8936002)(229853002)(36756003)(26005)(256004)(14444005)(65806001)(65956001)(476003)(65826007);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR07MB5679;H:VI1PR07MB5088.eurprd07.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: NnlZYZLHHrM95M/jy8RQAeCNCqk614W20fRtMIz1veXGBUyc9mrUUcUQsNZWez8OsmmqDk7M/c/HYerHMFrU4BKpMSXalyoTzqkJDZMCkHEfZ4qAjHyDjD6Y9760v8z1KvA7Xymx/zzQ7rKf5LNr2Ev6ZXBX9EOnu0wkKn/MGv+LHLLHeR4FsqQNIL9qNtZv8FbVWg6076ExXErjX9mv2caAKvB3GKklDeZ3GoZpdqnELghxG4ZKTsO4TQa142JPoLPajRRfMngdhRYqMM/uk5QfDCq977KQUFQaAtQ9fWz1p4pI+bvrvjicvOQ/BRgv spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <2411DC2DB501F04FB6E5161538A5323A@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 16cfaad2-4414-4715-a042-08d65f6087b7 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Dec 2018 12:02:32.0643 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB5679 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkhDQoNCk9uIDEwLzEyLzIwMTggMTY6MDEsIEFkYW1za2ksIEtyenlzenRvZiAoTm9raWEgLSBQ TC9Xcm9jbGF3KSB3cm90ZToNCj4gSXQgd2FzIG9ic2VydmVkIHRoYXQgd2hlbiB1c2luZyBzZXFl bnRpb25hbCBtb2RlIGNvbnRyYXJ5IHRvIHRoZQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIF5eXl5eXl5eXl5eDQo+IGRvY3VtZW50YXRpb24sIHRoZSBTUyBiaXQgKHdoaWNoIGlz IHN1cHBvc2VkIHRvIG9ubHkgYmUgc2V0IGlmDQo+IGF1dG9tYXRpYy9zZXF1ZW5jZSBjb21tYW5k IGNvbXBsZXRlZCBub3JtYWxseSksIGlzIHNvbWV0aW1lcyBzZXQNCj4gdG9nZXRoZXIgd2l0aCBO QSAoTkFLIGluIGFkZHJlc3MgcGhhc2UpIGNhdXNpbmcgd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