Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753425AbcKTJPI (ORCPT ); Sun, 20 Nov 2016 04:15:08 -0500 Received: from mail-ve1eur01on0074.outbound.protection.outlook.com ([104.47.1.74]:3301 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753121AbcKTJPE (ORCPT ); Sun, 20 Nov 2016 04:15:04 -0500 From: Vadim Pasternak To: Wolfram Sang CC: "wsa@the-dreams.de" , "linux-i2c@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jiri@resnulli.us" , Michael Shych Subject: RE: [patch v8 1/1] i2c: add master driver for mellanox systems Thread-Topic: [patch v8 1/1] i2c: add master driver for mellanox systems Thread-Index: AQHSQWAQrGMtvj7Pp0+i/bgUDg5qPqDgzloAgACFXLCAAEMZAIAAAbZw Date: Sun, 20 Nov 2016 09:15:00 +0000 Message-ID: References: <1479455458-157627-1-git-send-email-vadimp@mellanox.com> <20161119210444.GB2856@katana> <20161120090212.GA1554@katana> In-Reply-To: <20161120090212.GA1554@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=vadimp@mellanox.com; x-originating-ip: [193.47.165.251] x-microsoft-exchange-diagnostics: 1;VI1PR05MB1278;7:98Gz9U2JICySScavzZoh+gMNyGhiK83geXSI1mFQ/ZF/SSmJ72/MafbL4nFAXuaGU8iqRuQbnGWlCHyPQTbN5N1EUk9NJFoMlATUoDBJ+SrjYZd0I4xXJi6RxPuDONMUyCbT3ATT/NY4P9ID+mMgFr2qP/ev7A9TDT4fBaXrdxOLZrWCv0DtEkt16NT5k4RVk20LuoJL2E3Rlxjnncm/nrzHJGBPJpBY/4AwJdBQreiRjrfduDyXnOFYLyIR7aL0H14z+K+Uo9ZZnYnYd8y6NvbybSjyjbLITusF7KhQyPXko/fxuj3OLEZycT80V3PVgGYfPeBsPsnj2o7zWfk+VQDPXQ1TII/k3VF2S3cIhxc= x-forefront-antispam-report: SFV:SKI;SCL:-1SFV:NSPM;SFS:(10009020)(6009001)(7916002)(377454003)(189002)(199003)(13464003)(9686002)(3660700001)(3280700002)(2900100001)(101416001)(8936002)(229853002)(81166006)(76176999)(50986999)(54356999)(8676002)(68736007)(86362001)(81156014)(77096005)(5660300001)(7696004)(110136003)(122556002)(107886002)(4001430100002)(33656002)(2950100002)(106356001)(6916009)(189998001)(105586002)(106116001)(3846002)(305945005)(2906002)(7736002)(4326007)(102836003)(6116002)(7846002)(74316002)(6506003)(38730400001)(92566002)(76576001)(93886004)(97736004)(66066001)(87936001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR05MB1278;H:AM5PR0501MB2097.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; x-ms-office365-filtering-correlation-id: a80d5b76-39f5-485a-c648-08d41125b46b x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:VI1PR05MB1278; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040307)(6060326)(6045199)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(6061324);SRVR:VI1PR05MB1278;BCL:0;PCL:0;RULEID:;SRVR:VI1PR05MB1278; x-forefront-prvs: 0132C558ED spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Nov 2016 09:15:00.2354 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1278 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uAK9FDdr027152 Content-Length: 667 Lines: 29 > -----Original Message----- > From: Wolfram Sang [mailto:wsa-dev@sang-engineering.com] > Sent: Sunday, November 20, 2016 11:02 AM > To: Vadim Pasternak > Cc: wsa@the-dreams.de; linux-i2c@vger.kernel.org; linux- > kernel@vger.kernel.org; jiri@resnulli.us; Michael Shych > > Subject: Re: [patch v8 1/1] i2c: add master driver for mellanox systems > > > > Possibly I should add validation for "num" parameter at the beginning of > mlxcpld_i2c_xfer? > > There is 'max_num_msgs' in the quirk structure. Yes, I see it. So I should just set max_num_msgs to 1, right? Thanks you, Vadim. / > > Thanks, > > Wolfram