Received: by 10.223.148.5 with SMTP id 5csp6916755wrq; Wed, 17 Jan 2018 21:40:48 -0800 (PST) X-Google-Smtp-Source: ACJfBotjYkvC6o+9kypBjZkARDQvRylL8Ih7FvHN2FQeFMLyYBpgXnwoRajTevPaMg6LrSrpx14h X-Received: by 10.98.234.4 with SMTP id t4mr40967610pfh.74.1516254048773; Wed, 17 Jan 2018 21:40:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516254048; cv=none; d=google.com; s=arc-20160816; b=y1pY0uFQEjK8dYHJYOsqKmIrYfpqBimcUJ7O46glkrGh+SwtfoAOfKfKLNpOIihAWr qNoWylPtKLL/9Z69hLd3upKzxXQMb1QXxwwrGMo1zcCsTk4/sjpVCB+xKVnXFJl7S8GX nU1TrVuPlSxyL3bA25mS1cZHOUOl/V+uyyLyOCp0Q/Ff9S8TtCys38m1NHFDagm+n2Rl 5Csqaq52BE+XVnj1ekkFzoLlzvb5Pj/1mYi/P5cc03Wk6JzddsllOACYf0zLwsY3GdaO rN7NyTKNg2xqLKFH4aWBBdJlXajDV+lM5NNWtghXIrPOyFbJbIRKz6TwsBBpiJQrc4iG 3ymw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=0bkEGU6lGehlMm7LJ56UPh6uiUPFaC39DXOdFFwXKwE=; b=QxaANQ9JI9hJyBAEq/VJGVaG9jwySS/sjSbMFoMUaqVVXiiJsdCeXV6G7mKkUFozHE bnWa0eHHcvHI5gc6zmdhqicUxWCX8sAd+1mdkCCfkyksVqWJjVaeqhQDEpwjYcQGU/BR yXNj5En36NcnBk5ZMFuxiCzr6TlvhEtBDy3JZTSgYiMIe7q05BhrGufR2mRSYsU+CxTo 9wMsEREv36doc21ja/d6PfkLcncjHnSBJwLJJN3dwapt8XEfgzllioexhZz3T9SNd1nt JpvTW/YU53IVxHPfLpyUjolLf5Hf3fvMp8zJb5AQ6vN5qmFYW3iKCNGtpeOv2bhcx+C7 C/xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=MRBnwiox; 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 k132si2220981pgc.18.2018.01.17.21.40.33; Wed, 17 Jan 2018 21:40:48 -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=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=MRBnwiox; 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 S1754575AbeARFkD (ORCPT + 99 others); Thu, 18 Jan 2018 00:40:03 -0500 Received: from mail-by2nam03on0086.outbound.protection.outlook.com ([104.47.42.86]:14608 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752184AbeARFj7 (ORCPT ); Thu, 18 Jan 2018 00:39:59 -0500 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; bh=0bkEGU6lGehlMm7LJ56UPh6uiUPFaC39DXOdFFwXKwE=; b=MRBnwioxsQj/lvAdLuYcNPhOojhCnydd02B2IHQBwfHkpOas1vOgfyvUAuq/87VKMHRDLIomk+9aXFZhNcuuUJVvo0aQ5KDUUxEaF30dfhGVCymOwiZHw6FZPrLJ37J0kEB32eqSRU3H/T09lxyrGeOBXfPqi8B9cqIvD2QUcLw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=George.Cherian@cavium.com; Received: from ubuntu.caveonetworks.com (111.93.218.67) by BN3PR0701MB1703.namprd07.prod.outlook.com (10.163.39.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Thu, 18 Jan 2018 05:39:56 +0000 From: George Cherian To: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org Cc: wsa@the-dreams.de, Dmitry Bazhenov Subject: [PATCH 3/4] i2c: xlp9xx: report SMBus block read functionality Date: Thu, 18 Jan 2018 05:39:23 +0000 Message-Id: <1516253964-4615-3-git-send-email-george.cherian@cavium.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1516253964-4615-1-git-send-email-george.cherian@cavium.com> References: <1516253964-4615-1-git-send-email-george.cherian@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR0101CA0047.INDPRD01.PROD.OUTLOOK.COM (10.174.221.33) To BN3PR0701MB1703.namprd07.prod.outlook.com (10.163.39.157) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e175e215-7e42-41c1-ee29-08d55e35e905 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020);SRVR:BN3PR0701MB1703; X-Microsoft-Exchange-Diagnostics: 1;BN3PR0701MB1703;3:N+sfcwnOol6YrHE3L00Wbw8jDlg337YyFrCM27JYH0YdmQqNsKQ4BnqmMOY74i/FHSFS4XLILIdcLtruGbRFE6aB3pKbBrv85F4wbaWNKobmETI3C7WTFjqlbHBH5lfJH6gTqOA0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Eo9R4MqcZaFdHe3/tUqCnW5ak23v9RG/Q7Ur3SRSDAftMfOysQ4W4NTfwSnmUqScFTYnVDZ6v/GWUZBfme/o/HJhLes0M9gZFMfZxMVH6ucWHFeejxvctWBjSMqymM4JHDVl6KVjFsRPhDNCePwg92a/FehnwYFhfXRPSCq81b/DB8AghOtbZwhp8gyMyFUblbdvqM9o9sJYbUZEvgeullKq;4:43tKF6BdbLGHMz7XfcDBoIgRzNUgP18GT1gbElCrIOx/oz7vzMam74p0UpdGH6Eaow0+Q+JomEVF2z8pmvnMleYpG4XVo38VCiW4xs0ymnAfGKPmFWSjJ9M+g5QLMf9b4Qus+iIcKChJfEAQwLtJt+6+xYEkWRzjOI705oEPi0p2V6t3IGDBKOEx+l5nCUyFQ6IjI5jMCZJeGu17tJn09d7LRyS+oC/fZGI9Sn7yRy+BVvvZfevteQGmHLlmeDNp5P5mRm4yoxcuQNpsj9MJXg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231023)(2400056)(944501161)(10201501046)(6041268)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:BN3PR0701MB1703;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:BN3PR0701MB1703; X-Forefront-PRVS: 05568D1FF7 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(39380400002)(396003)(346002)(376002)(39860400002)(199004)(189003)(6512007)(316002)(48376002)(53936002)(97736004)(69596002)(25786009)(86362001)(26005)(7736002)(478600001)(16586007)(6486002)(72206003)(6666003)(2950100002)(106356001)(3846002)(53416004)(8676002)(81156014)(81166006)(105586002)(5660300001)(305945005)(36756003)(6116002)(51416003)(50226002)(6506007)(386003)(47776003)(52116002)(68736007)(50466002)(5009440100003)(66066001)(8936002)(4326008)(2906002)(16526018)(76176011);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR0701MB1703;H:ubuntu.caveonetworks.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR0701MB1703;23:VAYwVOrIR4zpDHyhmDzGoSdrbsaW0S2f6i1oGxu?= =?us-ascii?Q?sCzJhEygKQxWapXukFCuGQkLYr1h/1lFFMFyQoCCbOoE6IfMxZMhQaoDR52k?= =?us-ascii?Q?gMQU+fcotc6eKYryJKalkynpm1/gdSep32QHZVaO5T7cUtOC78B1sBOFlGEb?= =?us-ascii?Q?TlAD2/d4DpIZZvqh37LYhBrDZ+dJNM5wnt3SERvZ5FqReUfykEkWHcLD5JNB?= =?us-ascii?Q?wniDHDDNi1KAZcC6tzxuWYBRL8TpQf9TimuRkspw8Cj0purOu+GpeGSzLF15?= =?us-ascii?Q?rpafWM0NRXKcRp4KNpd2k7ThO5xr8OlGuWYjEIfVTFoiVWKy3Fbb2hgGLsNB?= =?us-ascii?Q?uPQrntYW9/Zbc1XGdqwJKY5Qe6lRlTeqLbW07ff2/amFeHiVkk36EcBakvC7?= =?us-ascii?Q?PD6qgftiGqMwsGh7ZRxeRmlNdewjToA2fykwO4xdAViJOROCO0V8y5VsSrP/?= =?us-ascii?Q?CjTahaSCz4WoHfPydWjxrh20grQMbB7kmtAONYxzUAACTpdGUNNGZSVuIGDe?= =?us-ascii?Q?NmWISbWUw3g/8Z+DLnO0nXKN4pZfvinqgUiwWDvjk6lsMSM5LzkRc/8iXnfo?= =?us-ascii?Q?mAwuCQfauAftWf+Ek7wTAwCL5MCCgMYbLOVwMYVod8AVYK6hG48FMbnglZlN?= =?us-ascii?Q?Q0Tof1pkgfX/BH523Fl8l3PGJ7YtnZ3/3YuDTIpVVBmKwtok7HLxZTBK1LOl?= =?us-asc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b2M7d/p5Yb5VxoqwWqwln+59eCC1vyGx2hiZJ0fgnzUHMEVBo1kCakcbifSw5bLkueo7CLP1VTIn7MR90IyBb9bt8D/331+HCF4FvoJhgqJQ9IygxBpI=;24:y3hwfitNjnGm4jM/Z3U4yHk176JBkMFqsgIQTlLRcLn/dlv7J9SO9AoVzL31lL+hkUc9KAoRIyAtntSBBKfsbIjOSJXyXikZMtaWxikvmSU=;7:yDrB2op5hla9CNL342yPCx6HZepAEauEU+miHCy3gAH6h9xYh7/0rwgaYDv1zak8Kl91PE+Te5FSsHAq1A+LnV6wSQaYgx+9wFOh7OqmLHDMTZLUMRExXAHMRVfsmm6mRfdby9S75vakSedserotG9nS6194npri+xJxO2HTAorljfbzZdusDebvZ3tFKHZyoIa57RJNZTvMbvBKWE4bNCBnjdrsKwOI8v2n8iebhw5jD+5u/8llSd7eSemrBFtj SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 05:39:56.5112 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e175e215-7e42-41c1-ee29-08d55e35e905 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1703 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dmitry Bazhenov Report SMBus block read functionality which is actually supported. Signed-off-by: Dmitry Bazhenov --- drivers/i2c/busses/i2c-xlp9xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-xlp9xx.c b/drivers/i2c/busses/i2c-xlp9xx.c index b5b224e..1f6d780 100644 --- a/drivers/i2c/busses/i2c-xlp9xx.c +++ b/drivers/i2c/busses/i2c-xlp9xx.c @@ -374,8 +374,8 @@ static int xlp9xx_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, static u32 xlp9xx_i2c_functionality(struct i2c_adapter *adapter) { - return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_I2C | - I2C_FUNC_10BIT_ADDR; + return I2C_FUNC_SMBUS_EMUL | I2C_FUNC_SMBUS_READ_BLOCK_DATA | + I2C_FUNC_I2C | I2C_FUNC_10BIT_ADDR; } static const struct i2c_algorithm xlp9xx_i2c_algo = { -- 2.1.4