Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp115047lqp; Sun, 9 Jun 2024 20:00:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUp6mEHj8aHcuItGQUUGZR2P/17jFF/oXv2Wdc+bLHiGV2Szs/JNMnTAKy+tFbhR18O+5q9u5v0xWwW7Rts76349/NtuW/WVQDi/cv7nQ== X-Google-Smtp-Source: AGHT+IEp1/YB9LW+IGjPM4mC9/VF+kFxPtmkGgXfbj0ZxlSFZlVpdYOTI5nFcf2VxWsewjiCa8oi X-Received: by 2002:a50:d6dd:0:b0:57c:6a02:276a with SMTP id 4fb4d7f45d1cf-57c6a022c11mr2989574a12.7.1717988424256; Sun, 09 Jun 2024 20:00:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717988424; cv=pass; d=google.com; s=arc-20160816; b=1HZlhZ1QXKkA75ddQcdU9T5FEQ0udk26NyEFhAQxzK0VS2J3IHg8Bv0q/tMB/qXcRd iAw5WgMQ7PKEoNEiRz3hlXuw1osQNXeAsZmS8T1mben+KSAhFGaTSAnFhoNXLt/hNRac 9/cEGqySs5oz2Tgnoo29c8kMEiG26JnkTOx+vTkluMmBY2v60VBiPt34aGSLcspp7cng W1Zbz9ZqjN5U3BYg8vDCaMMX3SJV5eyPO8e9eZOtui6AU3dR1sa7ET4D//RDYOuCto7M BWM2OoeYWmuDGDqB2SjglCvc1sJ1sOkYHQEWpbcIhKSFPCCYyClxY9tz4Lj9nTUCinKl 2SWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=JM7nSchUZd8IhXjFoFFdNjTVu9PbDOsZKx/1TlY2wkQ=; fh=Fy5P9EDITDu9vXApEYzrgBNhabMGpOtmjVrL9/kGPIY=; b=enkzxz1R8I90Qir1wiYvzpuEuqu/Rg1OYBioeNWwyJdgw13s80DRps5mo3ahcZcbeX 41+f7GSb3jXkR7CRFb1Xewdkmviz3JQvTwbBHM9R79onpCCxd4Bbv0PoMqD3MYa4re55 pJEwCJJY+ZzfvQDepX+YezzbgpQ2giYoyiFx28T1FPZGmWhzJmqsyNS7EhjTRB9C7sVA Kt3xwMNQUik7DATwDcdrQHJ3K9Gov3QXsyDmscr3K7RP7eThcjtvui36l5AaEjRBMBpV WmwGlmLqxsGbo0zk9XRti08NRMt3G2y7yF5EN1+19jBLjvg8cu9TKXsgeVft9gn+26Cr JzBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=2WSZzKYn; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-207596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c5fcca0c2si2898302a12.37.2024.06.09.20.00.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jun 2024 20:00:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=2WSZzKYn; arc=pass (i=1 spf=pass spfdomain=alliedtelesis.co.nz dkim=pass dkdomain=alliedtelesis.co.nz dmarc=pass fromdomain=alliedtelesis.co.nz); spf=pass (google.com: domain of linux-kernel+bounces-207596-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207596-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id EF7441F21B4A for ; Mon, 10 Jun 2024 03:00:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0DE86FC7; Mon, 10 Jun 2024 03:00:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="2WSZzKYn" Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (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 36B80524F for ; Mon, 10 Jun 2024 03:00:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717988417; cv=none; b=LFHVODom1ecTjED6aX1dEShvXTnJla/2cuz48YC5+fLJE9HPJGvJ98orhlvzW9GnISAS+AC5X58eb4oe+jDMW3h6MpjeLLevb9+oUH/rmwrbZuDm2/+M58L3mvaETSrcjr4KXfTT5Q97HjY1u3Me/oHw0jERATYqAGdtT4JdDh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717988417; c=relaxed/simple; bh=JBE8Qvx2tLc2VESDiLHFiRm2/e6IstkwnJOuvSA3CgQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k9BSZ/GnsOt7uCliSpUc5pzwFoZ1KpqCl7Nb052wodF1QhwBMR+bI4LUPxMgT0FVh7Hf4r6AwE2v9WfpI23OXaut9oPR2UIZ+CnrIqDuN7yNwy0y4gV10UoAuV2sGiYH3iIpJw7cWKVPre811zpi6h/AjNL1KWmbT3w6Yp+JRLI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=2WSZzKYn; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id B99312C04C9; Mon, 10 Jun 2024 15:00:12 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1717988412; bh=JM7nSchUZd8IhXjFoFFdNjTVu9PbDOsZKx/1TlY2wkQ=; h=From:To:Cc:Subject:Date:From; b=2WSZzKYn4hADUPmXujSoDw6RBBTD02ZxbnBy/SsAs73hPjScDvG8P0xlZpOuifI7a 7SruHZJWKQJFlYrsp7jOH6BWNywTyyD3Ibc4Rw53q50aPExYNxcY7ve1EfuAS3uwNe A2NQ993/Q5DBs4OSViJCvnn8n0Monmy6Hzx1xKkJSX1p62FbKvp4dRTKwtInBuXDcf 9hLnzBo600w4wlzPnF47ceGeqIZrwvLC70eQ1wQplUCZbbNJm2bGjGyDaYCiT6cku/ QHq7ig7N3jTlaK+k2dIxFk2ZratYKyzA5ouK2yg5Uw8ynB+IH3f2gXVH/2IfSwBTa7 CMfYEuCT8bQjg== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Mon, 10 Jun 2024 15:00:12 +1200 Received: from aryans-dl.ws.atlnz.lc (aryans-dl.ws.atlnz.lc [10.33.22.38]) by pat.atlnz.lc (Postfix) with ESMTP id 979C913EE2B; Mon, 10 Jun 2024 15:00:12 +1200 (NZST) Received: by aryans-dl.ws.atlnz.lc (Postfix, from userid 1844) id 938682A2270; Mon, 10 Jun 2024 15:00:12 +1200 (NZST) From: Aryan Srivastava To: andi.shyti@kernel.org Cc: aryan.srivastava@alliedtelesis.co.nz, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/2] i2c: octeon: Add block-mode r/w Date: Mon, 10 Jun 2024 14:59:53 +1200 Message-ID: <20240610025955.2308688-1-aryan.srivastava@alliedtelesis.co.nz> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.4 cv=F9L0dbhN c=1 sm=1 tr=0 ts=66666c3c a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=T1WGqf2p2xoA:10 a=O12zeXYUUaeBghiSclwA:9 a=3ZKOabzyN94A:10 a=zgiPjhLxNE0A:10 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Add support for block mode read/write operations on Thunderx chips. -Refactor common code for i2c transactions. -Add block mode transaction functionality. Signed-off-by: Aryan Srivastava --- Changes in v2: - comment style and formatting. Changes in v3: - comment style and formatting. Changes in v4: - Refactoring common code. - Additional comments. Changes in v5: - Further refactoring. - Split refactoring into separate patch in series. - Add more comments + details to comments. Aryan Srivastava (2): i2c: octeon: refactor hlc r/w operations i2c: octeon: Add block-mode r/w operations drivers/i2c/busses/i2c-octeon-core.c | 232 ++++++++++++++++++----- drivers/i2c/busses/i2c-octeon-core.h | 14 ++ drivers/i2c/busses/i2c-thunderx-pcidrv.c | 4 + 3 files changed, 207 insertions(+), 43 deletions(-) --=20 2.43.2