Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1615852imm; Wed, 16 May 2018 00:02:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrj6zcdzwKEkqFQ5OiWBGhpq8+aNI4FY50DlAu9jIIWV9DswQoSVP6cmTiRnsfKvJEEOYCA X-Received: by 2002:a62:6402:: with SMTP id y2-v6mr18181350pfb.71.1526454149038; Wed, 16 May 2018 00:02:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526454149; cv=none; d=google.com; s=arc-20160816; b=Opz6257ECf8Av60cXGkCuag1jrlB6f77BqWZjy1gibXtOXPGpdmoGMfbMVodaX+0fU lEaFXN047muY1QadX7fDOSiyhBT1f2zqaiEKjlhfQdvdIK5nBQtY4Twx2AcfP75dgjjH wYtrJcG7Kb77DyhhYZrhWNtpD/kpCmhBoB/fkwFj5AyRoOj2Unae1/ffzvovdcfzt+dd xaKXfH07tim/NM3qS77l4ot3Qym5cDyPqwAsfXVNdCcsT+qY7fvQvpN291YwpNFWcfPE cQqdCevKti2kdhbMSLE8Vdz/NfT/nNBa7j6pzvcdKeC0bPdN53LHxczPxj/+C0uBsrFk 6Vog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=ZL1/jyfRbSI0tueyZiUKDzqfwjZ2yxx61ZQCCKXqjfE=; b=zRc/itj6Pjc8oO5aAS2oX4CwJA/XFnGzHO5VQHlD4yfGVTt13UvjQThMvL5RScBXVD 8Umcq5FWRFwmxh59YQqdhALcVYu08t3SGf73HcHBtpSWKTQL27u1aSi7pFJeOrd24jZ4 9yPVLVFbyRhSEt+iA9dqzI9+QVoKOtCsW8EZwffbVUNVDJ+99IqnYb98fRT2WMh5AZSx IQHut5AFlpjebOchqBLVhvYbhl9N2XQqnhDlVUCebGAR7A1n9RMt7N8O/3c4pfyuth80 868A8UcfOgwH0B7wRB8td5Zz2l918T6cLnhKg0mdVG4L4ykyrqy7sJxN1umA2il7tDGo 8DVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=lQ9J6XTl; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c74-v6si2161511pfc.224.2018.05.16.00.02.14; Wed, 16 May 2018 00:02:29 -0700 (PDT) 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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=lQ9J6XTl; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752179AbeEPHAi (ORCPT + 99 others); Wed, 16 May 2018 03:00:38 -0400 Received: from mail-bl2nam02on0063.outbound.protection.outlook.com ([104.47.38.63]:34273 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750995AbeEPHAg (ORCPT ); Wed, 16 May 2018 03:00:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZL1/jyfRbSI0tueyZiUKDzqfwjZ2yxx61ZQCCKXqjfE=; b=lQ9J6XTlJ8n7ZcobWiMIKMUch17CoovG2Img7RzmnXXHJh5raxsxJcs1fZ4ozrdivgDtR4NWV9rlH+jdPDl2d6NS0zP2bwKKXh/KTElqQd2fQXYgfU57Qwd2cBWqm1ipuGM1KQMM0GX76gwkJtWgSpKPh9C9/FaHWeQmko0Li8E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=George.Cherian@cavium.com; Received: from sbr2s-28.caveonetworks.com (50.233.148.156) by SN6PR07MB4926.namprd07.prod.outlook.com (2603:10b6:805:a5::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.755.16; Wed, 16 May 2018 07:00:32 +0000 From: George Cherian To: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: wsa@the-dreams.de, jglauber@cavium.com, kamlakant.patel@cavium.com, mchehab+samsung@kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, akpm@linux-foundation.org, linus.walleij@linaro.org, rdunlap@infradead.org, george.cherian@cavium.com Subject: [PATCH 0/4] i2c-xlp9xx Add support for SMBAlert and minor fixes Date: Wed, 16 May 2018 00:00:15 -0700 Message-Id: <1526454019-32714-1-git-send-email-george.cherian@cavium.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: BYAPR01CA0033.prod.exchangelabs.com (2603:10b6:a02:80::46) To SN6PR07MB4926.namprd07.prod.outlook.com (2603:10b6:805:a5::27) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:SN6PR07MB4926; X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4926;3:iLMvYBnPhlePg1LPV+61EyaNPazpxmFWOOcIjALcZH3OMKPFq/VwICIZQI5HL8AKhb2O9LOzh/J5DrO5e8V4jFeMA1c53fBuOfX4JgFoa7LsjCpahMGP94Mpx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2qbWbPmhBDtYDKUklVoK6YCy4oKwhjh85gcB30Vjtglnx974lC/86sN2Ah7EU5Pg1Tms82L7eSIJgazCR5uGdXd1AC79Hp5j1Ch7mB99XJPWp2DRKZUXDploCYUhW5ryJUxpYZBMBUPHZzK6k9ihDDNrRtT0NyRbmtrEYKojHI8UISq1lUb68913iNhk96Dpetlg8aMllI6lnZOBixlnI4nlU/Q4I+QtZy;4:yEMEs6LeDOLGKB6YTqNPihrKdp7xYZPvnRHgGbkNF3vfWSMFkzMnFnO8/LLSW1LCsJFi0xGyZZYgRXbxabjGzRXGUBMHdgXxXXwLlaD4hEGsRq8YcSJPSv/3CuK0eZ+nTrbwVOJS7Qo3iqPALHh6+G3gT/scZuYaYiFvV+R0qn47jSYlTXqvJR+RtKjPuI6FSvMVRB5HYmILNZc/7p5ordGFaLooMVMySCY23he5/O/R3lwcOlWp5+mNzV9m6vlExrkdLihNBg4q/VzkK4BW5Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:SN6PR07MB4926;BCL:0;PCL:0;RULEID:;SRVR:SN6PR07MB4926; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(376002)(39860400002)(396003)(366004)(39380400002)(189003)(199004)(44832011)(50226002)(7736002)(50466002)(105586002)(486006)(53416004)(36756003)(8936002)(106356001)(5660300001)(186003)(48376002)(316002)(6486002)(25786009)(16526019)(16586007)(305945005)(4720700003)(68736007)(6666003)(72206003)(478600001)(476003)(2616005)(3846002)(6116002)(956004)(97736004)(4326008)(59450400001)(52116002)(51416003)(2906002)(26005)(66066001)(47776003)(6512007)(81166006)(81156014)(6506007)(386003)(69596002)(53936002)(86362001)(107886003)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN6PR07MB4926;H:sbr2s-28.caveonetworks.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN6PR07MB4926;23:izapKfV7Wrn1iYs0VOz1JcWFo6yJpmOw6Nnb7ql1o?= =?us-ascii?Q?dFJ4sNfvBj8jMFMOIc0WTwJgyXX3Aw7Y2CSqzjBtck25+Q2vXTid+m3McQks?= =?us-ascii?Q?CFpz4U+V2+Zc3cAoLC5V5H1TROIHt2H9RNv68M23HvYAVNUMWMPFSgN7L6g3?= =?us-ascii?Q?iA5P6piMZl09/dRgBYPH/A9KKaIPtSO4usmHszsMpO9Gjd4IAlcW/k5cnTzN?= =?us-ascii?Q?JmBobFnUi6gPgHqhoDzGkFvKEIBSUt62dm55Sgb6vmB7atuh1G2Yi97nODb6?= =?us-ascii?Q?sQcONOHZNJEH4QhtzqGzJL7qlyk34VMlpZvO3b7p1QK0sAi6qi67I7G/eOmA?= =?us-ascii?Q?uL6xlj5f1XP4LP6f6lCMqhu8yPTm2IQHT12sVAK6cw4bV3eR5uOmLs23JGfd?= =?us-ascii?Q?OaZqedLap+hhSdI884OnXQHr6VrKPJs/DGtMfc5lBmpEu1yC0qMnSteXQwDf?= =?us-ascii?Q?F2+GsQ4UlP8DcBIo0VZL4rPAXmmoo29hiAyIg4g9HgF2pRO3vm3tpP6PuXRN?= =?us-ascii?Q?1QYtA6ukDqIaxYOmy3eQPrjLDArzgARD29sNf1fsWcp3tBNieVoOl2eYtKJu?= =?us-ascii?Q?a+Gj9fIIKlLxPTueoujLW02gExjlQQK6Wyjcn4K3A6qJLLI90xiBvHXCHgQ6?= =?us-ascii?Q?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M0k7OjPpoqOA5o3axbGnb3UbbbdiYTGsnkehvKpiPqoWvyWHExGm/pCfbvA7Gg0AWdmqFKgUgM77IwR01JOAVZQg+qtEWUnRaPbkptM+bX8QdUt6XTySHWj4SlZdhDKzg89zcNDd7cyvB7dKg9WrJINC6yRYm8muIud36lr6v6ZOdQ65KmD+vptBLGQMUda79ySXX+BvHQBjqIN6Wd40IyoEsRi9CU+3W4Ug4JnArrFOir63OPEBA81pdG8feEISWECBjbUjn+v1QTKyLqA0RL/ZV3XCwwdfGv5+VEdXFAmDrsE4PsvlzEPOQAnIB1JGN+hwLuhlKLdB6cvtWdGZ1o8hmfx52Fh2hUOSO4AmHGg/ZiMXpetbTFtKPdDItelDdFnJnXZ0dxpvMfvsmaY8d9ngEDmko3KWkZt5B5SC/VD3W4jGw==;5:43SxG1Q4dsES5RhMQkiT5RorxPrn+ydlCmnXmalhxwv6Sn0J9+yyrhUroU5QR5ebTrk2J4WgPlEsw9mrYh5TFUpWj8hicj43ciT2DFnagMwOX8u74fAfbb89yp4vzuJMJjLln9oqucVKROHM1EmwvSngHQS6HZ3s9qsAC1STfZ0=;24:/gtRbKC+Gj0O4Wd0i19llvaecs4wJXSOQZuqoXIA043cPITQLkppCtuI5d3+ZJf6URzqnoQWrj1WvK0rniMSr6pcPNjeV4ymVvKHkbXMOxI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN6PR07MB4926;7:6kv8sbMg4NV5sRlhZcbwlnW6yeKw7oWangXRsRsBm2jTF3biUBKSP8OS95RmU+cTdd2Uz7lPOYnoSLhLbdGSWr9tOLAZGJT7XbK/viOMu30TiLVFiFqedfItxnQyPRmIRDqlhLAjT4ZvnR+jBIyqIMItoUyKkoFFcMKiYHbqNUtBMeqjzWnUQxFDtUyhwP919lT9Jfcu1yhDIdmE681J0SPWtFGDfpbTPqzxoOmj0gXVDagJNiRDKUCPE2RqmyF5 X-MS-Office365-Filtering-Correlation-Id: 31e393fd-dffb-4ea1-155e-08d5bafab803 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 07:00:32.9519 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 31e393fd-dffb-4ea1-155e-08d5bafab803 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4926 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds the SMBAlert support for i2c-xlp9xx driver and the following fixes. Patch 2: Make sure we update the transfer length to a future length. Patch 3: Restrict the transfer size to I2C_SMBUS_BLOCK_SIZE for transfers with I2C_M_RECV_LEN is set. Patch 4: While at that update the MAINATINERS file to reflect the current maintainers of the driver. George Cherian (4): i2c: xlp9xx: Add support for SMBAlert i2c: xlp9xx: Fix issue seen when updating receive length i2c: xlp9xx: Make sure the transfer size is not more than I2C_SMBUS_BLOCK_SIZE i2c: xlp9xx: Add MAINTAINERS entry MAINTAINERS | 8 ++++ drivers/i2c/busses/i2c-xlp9xx.c | 89 +++++++++++++++++++++++++++++++---------- 2 files changed, 76 insertions(+), 21 deletions(-) -- 1.8.3.1