From patchwork Fri Oct 11 10:41:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Guntupalli X-Patchwork-Id: 834739 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2083.outbound.protection.outlook.com [40.107.100.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA16E198A3F; Fri, 11 Oct 2024 10:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.100.83 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728643305; cv=fail; b=Tq80eKK1Kh86FuJdIUXoNUjvPZvoED6FTZZYSGCEbS5nlStIHcz34qidwkOrpbw6xv363grS24FX8nK1Jax8S/gHsSIiTVvMiqPP0gR7R6W8Yp4mvQtk50OawXk8oxoElzqkrtLH5rPSYtj0KM/uYOrrUSGaHLjkIDbyX2wfoHI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728643305; c=relaxed/simple; bh=xlt6+V5NES8DbSrR/QHN0/lN3gxqk6yR2UMYoUaqAEU=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=FPPY0kBNVjX6Ma7rmSkqIjrfsIFu5MJ5Z7ZhuV6q2F8BVPySqvFXymJfN9tvw9+5j9IpRg4rO2OdSq/ePUuQYugTTzej5HXoiHN8T7DiMSWQaHfBdhJHGyRlNVXwW1cD1XWtB1gzeJMN2Iq0PvwQ+1s23mBwxV3tSksIunt33eU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=ts6TxB/V; arc=fail smtp.client-ip=40.107.100.83 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="ts6TxB/V" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ijnBh9h2/XZQ0sArow6JjvdK28KO+B/koe6uxzKHuDJNjWgrZx4GAJOI7pwikiJprImG0+s/Wuo1/DKdgGPyS5e3Vv/c6a4b2MI9cG5CTziKdjlszCZNr2WzI2/+Y3wdqMzr3EXe/uI8neeYtco4HbFfX3J8vflcYsQ4/CXGsIRsD8eFhBuNu6LZl+1MBjy3357vAKeU8scDBHuqZLZ30xnVAESRLC9b36DUhUgxTs/nfBXxTAVq+9BcoE3dDNVwXvhJHoDe9pLNSnX2l/IpJjSBzFgQ+bieWpltDDYjzEscdb7WiRFJsOyOGw68Nre02pDyae9ZCQJ7yERdl4zvtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lxz103hHjM3voLiCNEu0lk5b5E6+7AtxxqIqSpsPnsk=; b=ckuCB9HT10ONuKp3DJ/9PShiswcwyFvYhzidw9HZPWCRydwcPrRfadT6UhMt6V24WdyTuK6hFWkJ7yIFCbRd1O+O+z+1IDcd995/K/CT1OqbMMRK0weR0ewPrrSZvKmdaPPI290bdMICQbCuPJh6rJMTnypIbqozI+WWuSlyQ5I9AeMhBHhn1kU04fd9FfRqgsuALBPsjkcygyw5nPXgGx9weYcDcX8TiqItslUAd10kDehcSQ1cQdAzlB4nIe3sCMcW7A0AQPRYZTMli5p18uK6ql6pKTdEKAtfzEJJYh3RitPHRO4ikQQjiizF5CnS0kqRFMq4n9WWUg090/RUIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lxz103hHjM3voLiCNEu0lk5b5E6+7AtxxqIqSpsPnsk=; b=ts6TxB/VJucGj9wjd4HTqvO3I5uEhbpH3tZY+LeS3kcACFuDRIBLJED/2lKoyO06B7WlWXbjTI4UfiF3e81u66zkXAh77SZsubj2D/HhjsLML4ohdmTLxnHWuFa4YMJ9XhI5wxszJlV/ZnX+0n42IpS/K9nJoaJML0YHuQrgC0c= Received: from BN8PR12CA0018.namprd12.prod.outlook.com (2603:10b6:408:60::31) by MN2PR12MB4389.namprd12.prod.outlook.com (2603:10b6:208:262::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.18; Fri, 11 Oct 2024 10:41:39 +0000 Received: from BL02EPF00021F68.namprd02.prod.outlook.com (2603:10b6:408:60:cafe::98) by BN8PR12CA0018.outlook.office365.com (2603:10b6:408:60::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.20 via Frontend Transport; Fri, 11 Oct 2024 10:41:39 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by BL02EPF00021F68.mail.protection.outlook.com (10.167.249.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8048.13 via Frontend Transport; Fri, 11 Oct 2024 10:41:39 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 11 Oct 2024 05:41:38 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Fri, 11 Oct 2024 05:41:37 -0500 Received: from xhdsneeli40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Fri, 11 Oct 2024 05:41:34 -0500 From: Manikanta Guntupalli To: , , , , , CC: , , , , Manikanta Guntupalli Subject: [PATCH 0/2] Add atomic transfer support to i2c-xiic Date: Fri, 11 Oct 2024 16:11:29 +0530 Message-ID: <20241011104131.733736-1-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF00021F68:EE_|MN2PR12MB4389:EE_ X-MS-Office365-Filtering-Correlation-Id: 11482177-b7e8-4be9-16cd-08dce9e149b5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: /5qlnygx3YnaCkxx9cZBg/n0D/jrSKcp8En6an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OUnEhAoCnYrh7pWZ6D6PvrJSSLkSZH1Iu8wyLl6TOSA5VOHT1fxh4LGkjZqsstHKs5wiAp/bM1801bNvKjVd8SyoQ+xStwCLYAQFmpFfvSPHuqOnH6pHcrwKnt59voZBUB1XXtbUtmtV2Hgqz8ldwrVEDyCVxWThMPWl3OPHyJwmAiAS3roY67jbgAargUTqU6ZEzbdfcUfIA5oE22n5VwwWVJQEIJ9yQfvkI8Q14fs4vNB7pNLgreXVX9omFm3d09qex3+0EW1u92lsKGxYsItiiog9JKbayzlcq X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(376014)(36860700013)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2024 10:41:39.2660 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 11482177-b7e8-4be9-16cd-08dce9e149b5 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF00021F68.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4389 This patch series adds atomic transfer support to the i2c-xiic controller. Manikanta Guntupalli (2): i2c: xiic: Relocate xiic_i2c_runtime_suspend and xiic_i2c_runtime_resume to facilitate atomic mode i2c: xiic: Add atomic transfer support drivers/i2c/busses/i2c-xiic.c | 287 +++++++++++++++++++++++++++------- 1 file changed, 233 insertions(+), 54 deletions(-) Acked-by: Michal Simek