Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2764868imj; Mon, 11 Feb 2019 08:08:21 -0800 (PST) X-Google-Smtp-Source: AHgI3IajPHDvLPuV+FTfukXUSMZsLt9p4l0KuwLDksCYV+2fVRzDXhMFNrWIwnsU4CqBNMmopbGP X-Received: by 2002:a63:515d:: with SMTP id r29mr9977153pgl.350.1549901301582; Mon, 11 Feb 2019 08:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901301; cv=none; d=google.com; s=arc-20160816; b=o+4Gok3jIthG37YO0ts4XtR7oa8gXvoYAACF8GHHN4aCfkh4MHb8gaiGbbuWqdkM3K /Q1ZiS7ZYv8SXkRvDL6Ev09qihkBDpgq3Db6xa5TrCFBp9uzNeoY56nF87Qp+0ZppiRl xIADaM+bS8KY6Ya8c6Y1XMPncJlUIeps/3+rBIsx0iboiBLVWep3TH+M6mFXZIQslrw4 Kuma5uXlSTkJWdveDm9KL89yQ737d5EGlqRYXSeaVFSrSsRrDZcuJnM7oa61AoJ1F3ix 9pNlFvM8ysLaHHlD4Xmwdd9EJ2C1fo8F9Yov5s1O0fsjrzs98l4/GlHs8I9fH/K7W4sB DOLQ== 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=Fak0eOZ1pwoLIba0cpm5cLqoFaXlLjegdda1mc2BLwE=; b=hlCJ6+nk0rkEufNI01lp/jQ4TZxOekBZtC+RjZZIZMAOhjYy87I4N0i+KmcpAlCqNJ F+w63UOvxT31gkUtPidMbWx42sKY0iLrPZbKItcF20fx343+HFOumVedxLNTOCeDiEyh LDM10sgE8rkPWySxZYbRR9ZWWABEUYuYoYGB7r7KLYdN2tRBmp9uQrvpylbJkgYza+cH e/QA/OnW5LiELqowgVh920Ogwm92+CJ3XzVO1JhyoOOhDaOe0ozVcXbr5HX5yNuWK6a8 V1Aj8cCjuLErxrJ29nIdZeobibDPK+xEerJF7H8u/95uZgJM5J8tx18LWmeu31op7Edx fsaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cern.onmicrosoft.com header.s=selector1-cern-ch header.b=HkAzSu6g; 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 g128si9591792pgc.352.2019.02.11.08.08.01; Mon, 11 Feb 2019 08:08:21 -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=HkAzSu6g; 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 S1733028AbfBKQGX (ORCPT + 99 others); Mon, 11 Feb 2019 11:06:23 -0500 Received: from mail-eopbgr140080.outbound.protection.outlook.com ([40.107.14.80]:59269 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729451AbfBKQF7 (ORCPT ); Mon, 11 Feb 2019 11:05:59 -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=Fak0eOZ1pwoLIba0cpm5cLqoFaXlLjegdda1mc2BLwE=; b=HkAzSu6g2f331F2d3ngKFw6ERIRs78/T8IREvIxruyy9COjOs3mMC0Jg90s4kkwplzDHI5p4qXDf1gUF3+8azbs9hzTAzAlRt+MkKZREee+rHsEkzfFrVH6IDuwJzjrObS75+C+eUk7T3IPkshNb1vlJN4f6X1c1r0OaZlx/i5A= Received: from AM5PR0601CA0035.eurprd06.prod.outlook.com (2603:10a6:203:68::21) by VI1PR06MB4736.eurprd06.prod.outlook.com (2603:10a6:803:91::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1601.21; Mon, 11 Feb 2019 16:05:55 +0000 Received: from VE1EUR02FT012.eop-EUR02.prod.protection.outlook.com (2a01:111:f400:7e06::205) by AM5PR0601CA0035.outlook.office365.com (2603:10a6:203:68::21) 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 16:05:55 +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 VE1EUR02FT012.mail.protection.outlook.com (10.152.12.122) 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 16:05:54 +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 17:05:37 +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 17:05:37 +0100 From: Federico Vaga To: Peter Korsgaard , Andrew Lunn CC: , Subject: [PATCH v5 0/5] i2c:ocores: improvements Date: Mon, 11 Feb 2019 17:05:24 +0100 Message-ID: <20190211160529.23858-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)(396003)(346002)(376002)(136003)(39860400002)(2980300002)(189003)(199004)(106466001)(14444005)(6666004)(74482002)(356004)(4326008)(50466002)(956004)(2616005)(486006)(126002)(476003)(1076003)(426003)(44832011)(48376002)(336012)(36756003)(53416004)(16526019)(26005)(2906002)(186003)(6306002)(966005)(7636002)(7736002)(305945005)(316002)(66066001)(106002)(4744005)(478600001)(54906003)(51416003)(7696005)(786003)(246002)(47776003)(50226002)(8936002)(8676002)(110136005)(3846002)(6116002)(16586007)(86362001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR06MB4736;H:cernmxgwlb4.cern.ch;FPR:;SPF:Pass;LANG:en;PTR:cernmx12.cern.ch;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b5845bf6-09ef-4cb1-435e-08d6903acd63 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:VI1PR06MB4736; X-MS-TrafficTypeDiagnostic: VI1PR06MB4736: X-MS-Exchange-PUrlCount: 1 X-Microsoft-Exchange-Diagnostics: 1;VI1PR06MB4736;20:vM5CTwoqDDZwkdoKxNCe79SjOxT8JBTrK7x0bJWUfhaAei/kxDee4EQBoT0oBZF6Zz1i4ozdiZ+mIcv/EPhFRXRGUYiAR0VDpgGZz1QqEuWqVcg+ldYxnxloNlC9XP6WmlU/z+hlEpXzn7RsoUw1pT1OQe8bvHn6pkTT8xNratDQPMPu2LO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zoGsTvvfkYC8Mc+hhEjnUBMJ3uy63sztBOTglh5hoOcMB1DtTrrvLP5bzAqQAsy6g2elSyqHAf3oz7lM/vc1skofGeLeY1jTmcbAMa30aF/CYuds5Izx+IlsTbUwSnaLgAWa8qDVbJwb2RM57vdHcYJ4MCRAW5LD8eB1Ry2Kl7yDYSQnr6RHz4NrOk1qmSMxxGQzQ==;7:rHi8eIyePutfz3VGnGJo2VJk/hhX4f3Xkacl+yUvj2f++ofYEm/VXtiAqwfDCxgBsHClp/SbODgqdJ/SCqQh/T84NhZUKP0UW2VkgsW4Sd5dco2s6mfF4Ek4GQflDR2zocWU1eGBBJspvV0tlXYubg== X-OriginatorOrg: cern.ch X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2019 16:05:54.5259 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b5845bf6-09ef-4cb1-435e-08d6903acd63 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: VI1PR06MB4736 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. [V4 -> V5] - deterministic status of IEN bit in register "CONTROL" at the end of ocores_init() - more style fixes [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()