Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751840AbbLMMRU (ORCPT ); Sun, 13 Dec 2015 07:17:20 -0500 Received: from mail-bl2on0064.outbound.protection.outlook.com ([65.55.169.64]:34582 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751273AbbLMMRS convert rfc822-to-8bit (ORCPT ); Sun, 13 Dec 2015 07:17:18 -0500 From: "Yu, Xiangliang" To: Wolfram Sang CC: "andriy.shevchenko@linux.intel.com" , "jarkko.nikula@linux.intel.com" , "mika.westerberg@linux.intel.com" , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , SPG_Linux_Kernel Subject: RE: [PATCH v2] I2C: designware: fix IO timeout issue for AMD controller Thread-Topic: [PATCH v2] I2C: designware: fix IO timeout issue for AMD controller Thread-Index: AQHRM+IqpXEe8sUw6km5cDAkNVXdN57Hlj8AgAE9aqA= Date: Sun, 13 Dec 2015 12:01:57 +0000 Message-ID: References: <1449835373-4669-1-git-send-email-Xiangliang.Yu@amd.com> <20151212170322.GB1530@katana> In-Reply-To: <20151212170322.GB1530@katana> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Xiangliang.Yu@amd.com; x-originating-ip: [180.171.179.98] x-microsoft-exchange-diagnostics: 1;BLUPR12MB0419;5:PVZSrEJX7HggfVn1EP+HUT/tKFAXTEWk7bCddqTQfsz4Tp3nJ2darVPCQVPW0G0QY+9INLrNBfr7l8qiighFtirrxQHI2Nn2zQ/3PjXtB9YQSL0EvScwDtkTn5+X7tMm7634CMQD5EWANTI1k5sDdQ==;24:da6Yi8DcO/O2fR5iMw9Qbcm4s/zHU730TLtOX9FbMXhE82VMdVv4ZjbL9MFK5YKfkfT/ny6uSC9LbpT+UZ7Gf0vjOxEh/YIaB6Aw4KQ5U+4=;20:K7MH2LyUSLiCZDt0dTJX9A2iwpndXapn/J/SyhjsCF1RLy7iJ0GcBnlaWwqpI2Up10tZ6zoMCBywgPcM3uM1evqYZmf/SFEoW0xKXLJSfCX/pT/4l3luNpKPCD6bg5RRpsyBT3kEh67g5Eo3b+k3meLE3gzRGY3g2q84/amFGyhy8nBsQiV6XDchM0pfgkCcJJJ8SgnshW5FLcTLYrPelfW0Rr4SHDSQ4CFm7nlxaLyPO0bpE+aNwIBEVBhVo0CS x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0419; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(767451399110); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001)(10201501046);SRVR:BLUPR12MB0419;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0419; x-forefront-prvs: 07891BF289 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(199003)(377454003)(13464003)(45984002)(24454002)(189002)(1220700001)(76176999)(77096005)(81156007)(106116001)(5003600100002)(74316001)(97736004)(66066001)(92566002)(2950100001)(19580405001)(19580395003)(1096002)(40100003)(5008740100001)(3846002)(106356001)(86362001)(33656002)(5004730100002)(102836003)(2900100001)(5002640100001)(5001960100002)(10400500002)(87936001)(101416001)(54356999)(99286002)(50986999)(110136002)(76576001)(105586002)(6116002)(122556002)(586003)(189998001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR12MB0419;H:BLUPR12MB0420.namprd12.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2015 12:01:57.3898 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0419 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1690 Lines: 48 > -----Original Message----- > From: Wolfram Sang [mailto:wsa@the-dreams.de] > Sent: Sunday, December 13, 2015 1:03 AM > To: Yu, Xiangliang > Cc: andriy.shevchenko@linux.intel.com; jarkko.nikula@linux.intel.com; > mika.westerberg@linux.intel.com; linux-i2c@vger.kernel.org; linux- > kernel@vger.kernel.org; SPG_Linux_Kernel > Subject: Re: [PATCH v2] I2C: designware: fix IO timeout issue for AMD > controller > > On Fri, Dec 11, 2015 at 08:02:53PM +0800, Xiangliang Yu wrote: > > Because of some hardware limitation, AMD I2C controller can't trigger > > pending interrupt if interrupt status has been changed after clearing > > interrupt status bits. Then, I2C will lost interrupt and IO timeout. > > > > According to hardware design, this patch implements a workaround to > > disable i2c controller interrupt and re-enable i2c interrupt before > > exiting ISR. > > > > To reduce the performance impacts on other vendors, use unlikely > > function to check flag in ISR. > > --- > > Don't manually add "---". This breaks a lot of workflow scripts. > "Patchwork" missed your Signed-off, for example! Sorry for my mistake. > > Changes in v2: > > - pass flags with ->driver_data > > - unmask interrupt right after masking > > This paragraph... > > > > > Signed-off-by: Xiangliang Yu > > --- > > ... needs to go here. > > However, I fixed it this time and applied to for-current, thanks! Thank you very much! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/