Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3485804imd; Mon, 29 Oct 2018 07:51:55 -0700 (PDT) X-Google-Smtp-Source: AJdET5c+fhdA58SSSarNNbxdFLLBrCUVG6xo1PRLYC3RZDpT4l5yNbGPeV+Fahhr6iJDHhVAyuWk X-Received: by 2002:a17:902:930b:: with SMTP id bc11-v6mr14943430plb.101.1540824715640; Mon, 29 Oct 2018 07:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540824715; cv=none; d=google.com; s=arc-20160816; b=NxKcPGS4w/mxxW7zQMExRjg/HZqWpkYxetbpZ5zjnuvoWFoKMiUrioAEL3LkqY5wzw cbS/Zwlsr0C4AG6+eCM4zCfdrQBK4XO0KCak3t0SFKC31t51y1PXFsIVqsAbU8bPNRlC Jr2q/4FINrPVzlYRKFqGzrWro0dPxlgyJVl++M5uME8g+lTc/cZQ0TbiGOPCofwZ1IGU rEr1rjwZ7nM2FhLuO07MuSH6na+DsxNKLGZr6bLyHwOySNvmMAem4jPqez2uMU5vlmqh dRAqV87XcypEDdPJIOatIpKlBxn7u9QteZljJV+hOpPZAyA4YFerdLlF8NynGG3zM+9Q zNiw== 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; bh=0cvbw9Mt6mUksJL8SaPsQFhX5NuUs0IZOrAoBKshVCQ=; b=GaBWerxtWG8tINPY7zjZIRLW6VB9YR24bs7XS8f2QqYdhzOJdxMZGgWmiBqaIJqaKq 94RSsIw0aHWKtZxJXJHD34x/iUR8iW2lb2Og7OmeXwmM6PdVdY1HItGcfu1NvvKOcX/J NoXjfzXL6YWT6/ZnAtqwFbp8AViX+rPfm1aj6A1a3Y82XGhhVrGPwc888xPQuxhGq7Hy jiYTwbj1lYUs90cM8V2of5xCDVnTffu1vrKi9/d78U0RoRRchtqCw5Du70+iXzG/gJd6 vwF1Letq3ZHU2Ym4yh0W1ViJhWGAuYyWmDF8O0SCrz3f4kKylAEQgKVnpCUa5b/Uzg/1 LCxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cern.onmicrosoft.com header.s=selector1-cern-ch header.b=EwBK7AOz; 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 h184-v6si22468395pfb.146.2018.10.29.07.51.39; Mon, 29 Oct 2018 07:51:55 -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=@cern.onmicrosoft.com header.s=selector1-cern-ch header.b=EwBK7AOz; 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 S1727207AbeJ2XkL (ORCPT + 99 others); Mon, 29 Oct 2018 19:40:11 -0400 Received: from mail-eopbgr20073.outbound.protection.outlook.com ([40.107.2.73]:28576 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726451AbeJ2XkK (ORCPT ); Mon, 29 Oct 2018 19:40:10 -0400 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=0cvbw9Mt6mUksJL8SaPsQFhX5NuUs0IZOrAoBKshVCQ=; b=EwBK7AOzvcSxBzHyfzKkMmUMtYiT9DSQrKiDKnBuFCvjGCCKn8fMoH2IeD4U7edQE8aQaLKbZkwU2na6jU6uDR2RVjGoQR7E2f60u9JXibeH36L42l7z6FoMBlbTWh7K7IRgRj3FdC/LGIlh2iD8o2bctxQHYm3dbFrr3KHdsNc= Received: from AM6PR06CA0022.eurprd06.prod.outlook.com (2603:10a6:20b:14::35) by AMSPR06MB519.eurprd06.prod.outlook.com (2a01:111:e400:8033::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.22; Mon, 29 Oct 2018 14:51:09 +0000 Received: from AM5EUR02FT053.eop-EUR02.prod.protection.outlook.com (2a01:111:f400:7e1e::203) by AM6PR06CA0022.outlook.office365.com (2603:10a6:20b:14::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1273.21 via Frontend Transport; Mon, 29 Oct 2018 14:51:09 +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 AM5EUR02FT053.mail.protection.outlook.com (10.152.9.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1294.14 via Frontend Transport; Mon, 29 Oct 2018 14:51:07 +0000 Received: from cernfe06.cern.ch (188.184.36.49) by cernmxgwlb4.cern.ch (188.184.36.48) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 29 Oct 2018 15:51:07 +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, 29 Oct 2018 15:51:07 +0100 From: Federico Vaga To: Peter Korsgaard , CC: , Subject: [PATCH V2 0/5] i2c:ocores: improvements Date: Mon, 29 Oct 2018 15:50:46 +0100 Message-ID: <20181029145051.31984-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)(136003)(346002)(396003)(39860400002)(2980300002)(438002)(189003)(199004)(50466002)(14444005)(5660300001)(478600001)(53416004)(7736002)(51416003)(106466001)(106002)(74482002)(8936002)(305945005)(110136005)(7636002)(7696005)(6666004)(54906003)(356004)(86362001)(2616005)(336012)(786003)(44832011)(8676002)(66066001)(1076002)(4326008)(316002)(107886003)(48376002)(3846002)(2906002)(50226002)(186003)(36756003)(486006)(126002)(426003)(6116002)(16586007)(47776003)(26005)(16526019)(246002)(476003)(956004);DIR:OUT;SFP:1101;SCL:1;SRVR:AMSPR06MB519;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: bf73d528-3c2a-422c-8fb2-08d63dadf583 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060)(7193020);SRVR:AMSPR06MB519; X-MS-TrafficTypeDiagnostic: AMSPR06MB519: X-Microsoft-Exchange-Diagnostics: 1;AMSPR06MB519;20:6MRVEB3lxW6tft2zkEu4VMUXAH1MQOEjHWURVb4aEhNHAh9BI4p7ve3s/Ar7GGR45AjQS6IgTpwqaj24kfl6eWeUnq4C2SpfKpBfAyz4Jnn1MZOWsHih+U4YZC6SvOhbQM67NEHMChKjN093wnUxT8wC1TQdKzrIUG2MGpR5UKkdPfqhY+195KH7+iPMUH99nbL585SvZ55EeSDbA/T/miFS5KsdzqH8CmFqrV9ufrUGkXbljD0RrjiF+YoJEBipWyM560+zMPDgj93ZkroFNq6z9v4vDSGTiX8IvBEd63pdVbFgt66uvMOgS902esX7cXUZuU9Hfk2bmjK9fZ+S5TVMWd4MfFFelzqr2NWcs2ne2e9clPThHkmaoiamrikAGdaCcxpIycnLciZ3xF8TWbbpHr0DXRtcOFUIP8UaIqG/UC1KmIUEWAJUc0M8ZeF11NllGoFPsDoGoWodaMq8O2sSsIOOLWqHvd0w/N+yRvz1eFD6N5uSbkxzVhlO+fy+;4:/m7iG70kMIUZKIk6bUdXJiVFG/Dj60Qeuyr4q2Eq+M2W3SpzyiPprpAle3K/YdCg9+e6WgdX6tx7/C/NG2zEhyVgIepN/vY0AoYPQlSSq8bIXtS1gq7TwqXnzPpKoPW1vZfxW0pCS9DnD63QxM7li7DmLbCbotSwR7TWaqH39bZBQAIpvERb81x3wHLk2Zkb3hIA/g1NWqB0NmSYWj8kVfJZdODgeDNZ+1mdIuFsiCuhYVcO7Mi4LnHQuyskO6Llgo8KKyUu5nRml0L5PmojIQ== 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)(3231382)(944501410)(52105095)(10201501046)(93006095)(93004095)(3002001)(148016)(149066)(150057)(6041310)(201703131423095)(201702281529075)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:AMSPR06MB519;BCL:0;PCL:0;RULEID:;SRVR:AMSPR06MB519; X-Forefront-PRVS: 084080FC15 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AMSPR06MB519;23:NvWAeChOitMAkwG22lJndwjclUE/190k53KyhNAJQO?= =?us-ascii?Q?FNG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xnMgbBR4biMz4kdcUtBUztOEow/bSRq5mwIbVlDO14eUljQ/MhPvjcitYD8uP3rb7ktZM7uJaRR621aQsKEm0HFpjAbSB305d2J4etvqrFM1BvHkXQXGcTwkW5e2UXIfDlyru2cZbBGrNa2YbSmCZv7pw==;5:1bRpteZDj1Da86ZVJHBJU/39FwmPQhm/dHNbUxWfj7E7fsjbZ0lryHa+CGpRFKreA5WpS6FpQ6vZVvJVCJdTmtaQDoeqB9g4pI8kse4TrOmiFQ8UvupSe/4c6CUgnnHoyE3tvAwDT9isSOdIfpPXVZtkJsEu7LTHVNBN86kgpnA=;7:j85WZCzKVcUozY/Q7tnfGMXuR9M9hdGZSRNdNxHXmdgqE3Gu8KQUXdgVh41A7c2FCefcjoIqesbsZjLPHXEZihLk4SOA4BkeNYbjIVwR/oThmPwwljz1G/0lUT79ywX0TpMK6sDrQpOpcBNUsYrkPQ== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cern.ch X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2018 14:51:07.4055 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bf73d528-3c2a-422c-8fb2-08d63dadf583 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: AMSPR06MB519 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. [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()