Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753545AbcDURva (ORCPT ); Thu, 21 Apr 2016 13:51:30 -0400 Received: from mail-bn1on0096.outbound.protection.outlook.com ([157.56.110.96]:2149 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751611AbcDURv2 (ORCPT ); Thu, 21 Apr 2016 13:51:28 -0400 Authentication-Results: the-dreams.de; dkim=none (message not signed) header.d=none;the-dreams.de; dmarc=none action=none header.from=caviumnetworks.com; Date: Thu, 21 Apr 2016 19:51:10 +0200 From: Jan Glauber To: Wolfram Sang CC: , , David Daney Subject: Re: [PATCH v6 07/19] i2c: octeon: Use i2c recovery framework Message-ID: <20160421175110.GA2710@hardcore> References: <20160420213121.GC1546@katana> <20160421130835.GA2623@hardcore> <20160421135450.GA5566@katana> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20160421135450.GA5566@katana> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [109.193.41.164] X-ClientProxiedBy: VI1PR04CA0033.eurprd04.prod.outlook.com (10.163.3.43) To CO2PR07MB2582.namprd07.prod.outlook.com (10.166.201.21) X-MS-Office365-Filtering-Correlation-Id: 712e9b40-2f4f-44a6-d44c-08d36a0d8e71 X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2582;2:uKZRa/e86lbLWvHbcFVnY3XE3zU9a0+is39qUIwY0miRxXzARi9Dt0a6pphMZqXn3yJb6svD6gv1oAFhkqn0whFF7FQ3mOOqNF1+DQZwPkJJdbJaAXk4JGPtAS/Ixe6BlS7CSFiYb5Mx2bAJANOKqM3FIcBblHuE0cc0gzs5xk26l4r+WKfbPBrIdZrsv4FX;3:k72ykv0IVs1XclL4QI2MvzLaHuMDBso/Q6qKK0glSq+IpJ9IhtFIOMzeapZz7fUJ8ChZAaVTTMiiZ3N5ZO7WQys6adzIORXT4iVj28BBLSc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PwW29lHJaeS0vJWw= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:CO2PR07MB2582;BCL:0;PCL:0;RULEID:;SRVR:CO2PR07MB2582; X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2582;4:VZN+QXmX6eMUhLNMg3L7tdsHmeurYNygF8XlBojYUyBgo6CCHKYST/WxSkUuxTcpB6xvft1s0lAxs0g/MkolcY4uLn9kfn1TTOGQLk2z/PM65qWwFxdanTJ73krU4Qg8cr23T7g4jfmhUWMwopIYLJKM6DiYAY+48tmYRrwBd88EEJTpWbnQtC9Z+x/sHFuFY7aZkKLoWZcxqwU800tvoCzMij94icpUKekteKhtfWc+wut+89Xr0A7bRYAuMdzT0uWa9iZtwpiPNLMlqVCMVNpkF4yizZnb4bFzyhwqFJz30JukjOgQFH6QwuSo5mKyJF/dkwX993r9CEc50ft6DinesY9PqVyIBbAljkye1z30gP2fN69QqHBj/m31DTaLIGgewq38BcLsl4y8iLgsug== X-Forefront-PRVS: 091949432C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(24454002)(76176999)(50986999)(33716001)(93886004)(86362001)(4001430100002)(42186005)(83506001)(54356999)(5008740100001)(9686002)(4326007)(189998001)(5004730100002)(33656002)(107886002)(46406003)(4001350100001)(23726003)(92566002)(1076002)(66066001)(47776003)(81166005)(1096002)(3846002)(586003)(77096005)(2906002)(6116002)(50466002)(97756001)(2950100001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR07MB2582;H:hardcore;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR07MB2582;23:ecTOe12bTlvex5I7Nxmz8+tjKLAf/olYUAs4ZeLt5?= =?us-ascii?Q?azpiSc7pQQmaOOLA+MQKO5w0XH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us-ascii?Q?59tISCY8Cd/lsmoJW/Oqht+lTA5hOHtK8tczn8QAA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;CO2PR07MB2582;5:6AGFXt3JlYwf5EXn/S20J8ljuqNIXVwYpmXoEtHth0gAhFEmBcuPvQA60WSrC/3PH2scqVOjDDOkYQqkosej9tU7a628yY4YfYvl/+bOooHX1KFrRG8SgtcMjzVpJbUGu2Jni5f0ZEPo6PeFOdZ6cas68UFvMPrDhZtvWcKgKi4SkFqvWICquVG0ZlIdYFJ8;24:ymBVWaVpENC7sb8tHtx6PvAsaQbZLqhhS2HBPPDcsivNfox9l+Pt/kpAd3MDV3CXbrksHoOrL/B04WYYcxpq96k6wBJ0xUBrA2vn0Vhr1y0=;7:sdxZCh3VFLE2Xjd4TUY3DwRtNYd89C3QhHHFTn0pNxb29bIm+2paJ26lmYjjbTFB8HDG+pJpLADzmj2/KIX81HufuLkMn8+GydlQrDPB0BOuOAJ/b5H8+PBV1KNLUzMPIL49UAwMvl9GyDtT7ZXgHgGsGTDwbyy2jDagmEksVCFsDNcxik5Xm1szT2yDAv+3j8H4UPpJL5dqTqewiYt9VzFbnlPFRlQvimRpIL6m4gQ= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2016 17:51:23.4909 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2582 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 22 On Thu, Apr 21, 2016 at 03:54:50PM +0200, Wolfram Sang wrote: > > > I assumed this check was bogus and there are no valid 0-length > > messages... > > They are valid (check SMBUS_QUICK), but not every controller can handle > them correctly. Your driver has SMBUS_QUICK enabled, so this is a > contradiction to the check above where it rejects it. Oops, this mismatch dates back to the inital driver code. From the documentation I would say SMBUS_QUICK is not supported, although nothing terrible happens in the write case. > So, it looks like it needs to be tested again (and documented this > time). If the HW can't do it, the FUNC bit for QUICK needs to be masked > out. If it can do SMBUS_QUICK, the check can probably go away. > I would like to disable SMBUS_QUICK. It never worked for the read case. Could we break something by disabling the quick-write case or is the quick-write emulated by a larger write if the feature bit is not set?