Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp483246lqs; Thu, 13 Jun 2024 16:55:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUT+89/V/NaSN/RwxljJNiK7ounoa8CLze8URh92zKT9PS3vPhOjKrJ11Y5gzCVVoUZRVK66YYui6uL/JExSHbPgeZ5jazU2nn62QDPGQ== X-Google-Smtp-Source: AGHT+IHrpcZPhtpXaMZ4pbadbnF2DVd4WQJlvYGVzXU82NEkn9b7DBb0XpkDUT3YSkjAYsXpb7Pg X-Received: by 2002:a05:620a:4416:b0:790:edd8:ac18 with SMTP id af79cd13be357-798101b407cmr670201185a.35.1718322947031; Thu, 13 Jun 2024 16:55:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718322947; cv=pass; d=google.com; s=arc-20160816; b=GvJM7JNTMgb8xWuF84qb3PcuH2ybvh2wnPsZgMFrXyhIf2ovJv5fz6vPWbXir1Rsp5 NCTS7dt27efhHKtsM2OatBsyjS55lSX3lrWBmJnaxEbrrPA6SohfVbU3JRNRe/1EcXtC j7AODy9a0TdLfrx9AG6gXkKwxNKJjEhV0Re0EznTWhGyDatLaBPWD/vay+7XZbY2llzb Mjx637dtNq+oMVP7tJ5IyjLnRXqau/BnAbWFX4/Hr3iWk51gVFs9X9pnn+Pfqa/LFEKa 5lpp7Fvh1cgoZXr40/bdHg5qMKYLHvESmvfWQiTAkYwu/KEMjLNbYSokzKSHJTklfjDb YMWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kD3dawkCIpgAGl2EkTLFoVVyDPVt4OR7Acl7/pTCPj0=; fh=6vB06KdpwiS55OpdkxNpMognZ8dfeaJcRag312jBwYw=; b=NCtu8lPkN2mq1p5Fm12b+2Bx2hi8uUrkpvv2tuXAeWG5YquzrSBMt1Pln66MfSB1fi fsS4IYo10DsZkVpu/BS0sc9VSB+btVmC8dZ7o6kZQYdm+w8obvTimiWd0xkCpZMma5ae huI8tfTRU6Fd+QnOb58n1JQrBZnyRCalUmjXJh/e351SYy+GLLLWYBytHeoIVVgG9088 /rWTahYx34RPpoDFlx1n9MBeZ1zdPpnoS60soXZ3/wEhFxX6FqlGzO/Zbm2Bh6MSUXU/ m3zraF+YDEBdBEvQHleo01pGRR0gq12w7Qwf1rp2zZ8fUgvj5pyUx38u9hAkc8+Sa5A6 6nJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CEcDfSl2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798abe5c14esi247435385a.659.2024.06.13.16.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 16:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CEcDfSl2; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214129-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214129-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B5F0A1C21830 for ; Thu, 13 Jun 2024 23:55:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82E1D14F134; Thu, 13 Jun 2024 23:55:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CEcDfSl2" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A6D82139D04; Thu, 13 Jun 2024 23:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718322938; cv=none; b=subisvm9yMx8evFqd2QdPjJnngaCPmLN88KSeDXO1DtcjISzTWwO6a7PX5eraWlw45H1U0JWktit7/aGtTPUzefBMy5OgZDZ+ttiLazvAgZZA3/9GFr0Ji7JpKo0fEHcDK/saKMmwSGdbUq6g6qNp8wJKY8yAvuGWCA6hVRP85E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718322938; c=relaxed/simple; bh=eqePGDayfWp7FPSRufOIkB+/WyCJz0Trx1EWkkzz/iI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aiOTDtVadRVrIM1nQGiot4zrdwreHUMWfVfNVPrUm2aeQTGGGD0K2OU4rTjGGlRoGoFNHQrJUTtLCVcnJIT0dOZG5anoE9NKS2m4hLUODQ5yz6rY6tpomzegQYWMQy0sS8lka5FAcZRW4OB5yvfueCLOm5NPTn0/yz/7mmZ2ybM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CEcDfSl2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC851C2BBFC; Thu, 13 Jun 2024 23:55:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718322938; bh=eqePGDayfWp7FPSRufOIkB+/WyCJz0Trx1EWkkzz/iI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CEcDfSl2U5KNFpkBg09FreU2iA3V72xfryij8oOcNRdHwLaIrWUPHznVjC9erB5kO 246oI/xJsIJZ183/wheIZvpXwOSWioWP/XfrRIZPGjysdAJFIVqEWgzmEtk0c6tdqD VKeUT0zUp2N5/p+zKSKsDSuEqGBc9F5ekgKQwms7uSuww9ds3HF7BTg6f+ZB9sotOS 91c9C66pUITn5ZtCYGj2nGbFuaLgqiOfpsm7ciUOhI/2BvfJy7+gVCUdpck5TCu8VG aJ/Yi6pp0Qko0KLhYTB6CXKVJPdrS26yufJnrrSYq1486aC45nRf3NSokpFAzTl+NA JhRB9D80hSnhA== Date: Fri, 14 Jun 2024 00:55:34 +0100 From: Andi Shyti To: Aryan Srivastava Cc: Markus Elfring , Robert Richter , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/2] i2c: octeon: refactor hlc r/w operations Message-ID: References: <20240613025412.3848629-1-aryan.srivastava@alliedtelesis.co.nz> <20240613025412.3848629-2-aryan.srivastava@alliedtelesis.co.nz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240613025412.3848629-2-aryan.srivastava@alliedtelesis.co.nz> Hi Aryan, > +/* Construct and send i2c transaction core cmd for read ops */ > +static int octeon_i2c_hlc_read_cmd(struct octeon_i2c *i2c, struct i2c_msg msg, u64 cmd) > +{ > + u64 ext = 0; > + > + if (octeon_i2c_hlc_ext(i2c, msg, &cmd, &ext)) > + octeon_i2c_writeq_flush(ext, i2c->twsi_base + SW_TWSI_EXT(i2c)); I think this check here is the only logical change I see. Right? If so, can you please describe in the log why you made this change? Thanks, Andi > + return octeon_i2c_hlc_cmd_send(i2c, cmd); > +}