Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2330151imj; Mon, 11 Feb 2019 00:35:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IY+aCZw5tAukMFh7y+H5xQYSqELL5dqKYIp5gRAiL3/xDIZ9kTbpF7OQEG6NfiKQdDofNLh X-Received: by 2002:a63:b447:: with SMTP id n7mr5632131pgu.401.1549874105397; Mon, 11 Feb 2019 00:35:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549874105; cv=none; d=google.com; s=arc-20160816; b=UJ+T3HS3Px8Jc1/COWDd2nhVUOvJ7TEwt3XkqWWypWPuyg09NOTwpowqbbcGak8wik AZdEKLCCTE1saUdjSW64YrWt1DoPvWrI9i5KYarcUJHBZgTySkHIt4fip7nDlDLn+FD5 TH1zwRcvao5DWIcQ5efMufR6AxCYbyrtMj3KcXcVblMyTiYjLKHoyVP5MDMQly+iqh+v lOI6I/VrenfNsGlXYAznIkIh6gk7k3M3NQV3Gd3x5F1No9PHg5f5G+6cQPR/KyK3JJmm tP5RAugTNIYpq3V+Ah9I0JU2EP8ubmhm+IEduv3plefWpjVFeLkq9GouZZB00dyrb45j c9Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=kOiVASn7By808IbsH1zcM/yTRBWMUb/wqE5l7dgcxXU=; b=jcBXGKIRRD6KXcoy+hH4KLffnmCa89+4TejJbJd1jS+z588Sql0fiGNH5vfvCmciwX m/22V3r/xCOqQWXMSL5jiL9nSsFRQCzJExGDbHEK/jqUIfPnWanyxC0xOgWs8I5j39xy aMV7LrIFkwCH+8A/+sFnXNhoI8JF/0vjdROOTkLewEahm+bUVCV4QFwdYv263ITPID3L vFLyCA6/4nUZuT85uJ/3r7sClAnVRCgNIKGea+rq0zXA08VafTtHCi/Uk1EeTc8qKd1b VH4nXFQDU/h7yY4Eju/n2jgBO4wWnFwdc9Y4ytvwTAgjXGAmdq9SP2wGjCBvL85tTv7q e4WQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cern.onmicrosoft.com header.s=selector1-cern-ch header.b=gwdxIWla; 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 h16si8808711pgj.203.2019.02.11.00.34.44; Mon, 11 Feb 2019 00:35:05 -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=@cern.onmicrosoft.com header.s=selector1-cern-ch header.b=gwdxIWla; 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 S1727194AbfBKIcb (ORCPT + 99 others); Mon, 11 Feb 2019 03:32:31 -0500 Received: from mail-eopbgr120089.outbound.protection.outlook.com ([40.107.12.89]:11200 "EHLO FRA01-PR2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726663AbfBKIca (ORCPT ); Mon, 11 Feb 2019 03:32:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cern.onmicrosoft.com; s=selector1-cern-ch; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kOiVASn7By808IbsH1zcM/yTRBWMUb/wqE5l7dgcxXU=; b=gwdxIWlaGLtlj+LYqw6i5P39bLq6Go4FGlkaeV3+a8NwCekjfupjrTyZlUBtgZBUelx2ShxKt3hlPPQe+R6BSnmcwIT2tHZLiA4BLSOdqrQSbpvPo5lPsq/pzvJ0GnNArSqxDDVjif17Th1JOH8F5c7SQJWdKKe86m0JhdUWHwo= Received: from VI1PR06CA0145.eurprd06.prod.outlook.com (2603:10a6:803:a0::38) by PR1PR06MB4730.eurprd06.prod.outlook.com (2603:10a6:102:f::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.22; Mon, 11 Feb 2019 08:31:48 +0000 Received: from AM5EUR02FT051.eop-EUR02.prod.protection.outlook.com (2a01:111:f400:7e1e::208) by VI1PR06CA0145.outlook.office365.com (2603:10a6:803:a0::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.17 via Frontend Transport; Mon, 11 Feb 2019 08:31:47 +0000 Authentication-Results: spf=pass (sender IP is 188.184.36.48) smtp.mailfrom=cern.ch; korsgaard.com; dkim=none (message not signed) header.d=none;korsgaard.com; dmarc=bestguesspass action=none header.from=cern.ch; Received-SPF: Pass (protection.outlook.com: domain of cern.ch designates 188.184.36.48 as permitted sender) receiver=protection.outlook.com; client-ip=188.184.36.48; helo=cernmxgwlb4.cern.ch; Received: from cernmxgwlb4.cern.ch (188.184.36.48) by AM5EUR02FT051.mail.protection.outlook.com (10.152.9.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.10 via Frontend Transport; Mon, 11 Feb 2019 08:31:47 +0000 Received: from cernfe03.cern.ch (188.184.36.39) by cernmxgwlb4.cern.ch (188.184.36.48) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 11 Feb 2019 09:31:32 +0100 Received: from cwe-513-vol689.cern.ch (188.185.69.206) by smtp.cern.ch (188.184.36.52) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 11 Feb 2019 09:31:31 +0100 From: Federico Vaga To: Peter Korsgaard , Andrew Lunn CC: , Subject: [PATCH v4 0/5] i2c:ocores: improvements Date: Mon, 11 Feb 2019 09:31:17 +0100 Message-ID: <20190211083122.32485-1-federico.vaga@cern.ch> X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [188.185.69.206] X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:188.184.36.48;IPV:NLI;CTRY:CH;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(346002)(39860400002)(396003)(136003)(2980300002)(199004)(189003)(53416004)(2906002)(6666004)(3846002)(356004)(6116002)(966005)(14444005)(50226002)(8936002)(1076003)(7736002)(246002)(7636002)(478600001)(4326008)(8676002)(86362001)(110136005)(16586007)(6306002)(54906003)(106002)(786003)(316002)(2616005)(956004)(126002)(44832011)(36756003)(74482002)(476003)(106466001)(486006)(47776003)(305945005)(26005)(51416003)(7696005)(16526019)(186003)(336012)(426003)(50466002)(4744005)(66066001)(48376002);DIR:OUT;SFP:1101;SCL:1;SRVR:PR1PR06MB4730;H:cernmxgwlb4.cern.ch;FPR:;SPF:Pass;LANG:en;PTR:cernmx12.cern.ch;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0d952c31-80a3-4e3e-6c10-08d68ffb5ca6 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605077)(4608076)(4709027)(2017052603328)(7153060)(7193020);SRVR:PR1PR06MB4730; X-MS-TrafficTypeDiagnostic: PR1PR06MB4730: X-MS-Exchange-PUrlCount: 1 X-Microsoft-Exchange-Diagnostics: 1;PR1PR06MB4730;20:6uPT6dWd31buDJRo+uTsipZUdmKBJL1C2eRXdU5Z/J5aEgAStZbdRiABZ/FQVGtG2FpuDKo/J2UXnX8uWEQtGoZKho6RNShmKgNIliKxXsDAvQQNg7V66V2zfUGC1jWgFmuuxjFtoGGz/VTMcgNRkJSUo5PYKKh3X7ouL5wp/xQt8XmX1N3VwO58si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2Ju7aNFO0oRof1Dm0lGJyD3XhpIXHL9oPFrvm3CEPv1+d8XucmQ2WNLAFeud5hWqby5MudvIzCJVCumXIzW+JuKqpcR8kZWKtfiWDXIZcQiWQAjeXKlbyqP8qXngmTHJ/Yu3w7Wqir4tC0jFSG0tLnmrJyg3t7lEosaCxSMH1PxR4AQKxQ8+VCaOxThn2D8g+Nj0ryQ==;7:/MXivIiQsyojnFz/Hpoq0204pxl2jgZaLPZ+cXJSvuQTf2qZaefjUQk13vTACRJnJ1nIFmgWftqXw0NYMpnLfn8evtFbuAH+1413uab/3jy3c4bmzouOcE0acTk4Nc5vRzj1vOd17NFxjLv0m5ppXA== X-OriginatorOrg: cern.ch X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2019 08:31:47.1095 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d952c31-80a3-4e3e-6c10-08d68ffb5ca6 X-MS-Exchange-CrossTenant-Id: c80d3499-4a40-4a8c-986e-abce017d6b19 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=c80d3499-4a40-4a8c-986e-abce017d6b19;Ip=[188.184.36.48];Helo=[cernmxgwlb4.cern.ch] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR1PR06MB4730 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set provides improvements to the i2c-ocore driver. [V3 -> V4] - add reviews-by/tested-by - add comment to justify the formula in udelay((8 * 1000) / i2c->bus_clock_khz); [V2 -> V3] - fix particular error condition on platform_get_irq(). Copied from https://patchwork.ozlabs.org/patch/1038409/ [V1 -> V2] - replaced usleep_range() with udelay() so that the polling version can be used in atomic context. - added dedicated patch for minor style issues - fixed delay computation - use spin_lock_irqsave(), instead of spin_trylock_irqsave(). IACK is always necessary and a trylock would generate an extra interrupt for nothing - make the driver ready for an eventual master_xfer_irqless()