Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp867464lqt; Fri, 7 Jun 2024 00:29:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXk2fweoOa03frZIQEnVW1plMDt9831Ylq5jP/dQUK70sAWdiUwEywg/qy0kG5oWh2Ny6lfwN2xrY8P4yHGzPf+F/SZTn2p0+SB84JHQ== X-Google-Smtp-Source: AGHT+IFm54eeurHpHTu5p6xXkjhqXaBHVjPHAQoZC1CDZKE7827YOwCH+2MePW7gfjaFPjtldPbm X-Received: by 2002:a05:620a:1728:b0:795:1f7c:c6fa with SMTP id af79cd13be357-7952f0b88e8mr935200085a.4.1717745347931; Fri, 07 Jun 2024 00:29:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717745347; cv=pass; d=google.com; s=arc-20160816; b=RMJ9KRkCw/Bf80YgK6SRznRJm7i6vNdcdjaBynaiWd87ANFtogJCFipoQZXn77dNCV BM8PGOuhtKPqxyQ9Nuwjxnd6MsYxn40waI1EooJ8gS81PxNWf3ZtpG0C3zKvB40214UT 0xGqD+6OjaAiuT8r7feQNQKXIl08eM/6x0vkrc2rWhW52uz6sB+3+D6bDbTHxpbbLe8S OaA8K+1PvO5uYUBjNWxdeJW1lY9+NFfVenVeR7pAUwURB7v9rT34zP5ojIA3962fStPS kJD5OE8nrsIkklQY+FTykZOKzLPXMRlc4igJcIiW5rMNAqtgTpL6oNupW/oiKD3lnHWj /NRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=swrYQEjyK5kYwE+Ufbh6uLcnvJpDBZncNNf7rt1zomQ=; fh=ZElHt6FVraQBK5yUALuldOhb/DbjXwE0zuMw1ZDgUKc=; b=a2jYA/BLF2F1JnlEifZOz/htzbzrQMjtNCjBzES/1kpfF5RIIiuf5+TONjy5YA0CoJ u0nToYeh2gZ/zVBSS7pLhkWqdhLowd4fs7EB4FmTDLOVKRSXNExDDhH4MjD7xxUOHHev yWuHKDx4hnTmL3D3ELN5UIdGEMb4CwlTPxwIsh7UWo9Pkky03OrLXe7XdbblV41koDiV jgH9Dv1BL+xnoEFLGgdQKd0lLMoyKWHGaTXccX7CLyopkvAIekVYVOj9pKiWOig/ukOB yAWDyopivPA24v9rNyxDhrQHnf2xrXJW6n7txBIZuLJVA47HNZAynGUdUnIWL2t9faEI mmWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=Zydq7R3N; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-205526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7953333a833si210897785a.583.2024.06.07.00.29.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 00:29:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-205526-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=@codeconstruct.com.au header.s=2022a header.b=Zydq7R3N; arc=pass (i=1 spf=pass spfdomain=codeconstruct.com.au dkim=pass dkdomain=codeconstruct.com.au dmarc=pass fromdomain=codeconstruct.com.au); spf=pass (google.com: domain of linux-kernel+bounces-205526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-205526-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au 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 8FB2F1C21DAB for ; Fri, 7 Jun 2024 07:28:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A3CB15380D; Fri, 7 Jun 2024 07:28:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b="Zydq7R3N" Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) (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 9D4B11C2BE for ; Fri, 7 Jun 2024 07:28:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.29.241.158 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717745303; cv=none; b=KGKDRbvzqzt6+ORhcspigBOXPiXv8f6/5LcXgXyNx+YJp2OdDIe4al8QKCKw0MSLdD6m6w9NBMNb9983F+HaPkvJ49f0OtKeFkQHPU2XMoN6AVDeLiKA/YAi3YqV2+nhrrBspdQ7jVx3MD8yDM9o+fJz1aydcggXgmcjdM7JrG0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717745303; c=relaxed/simple; bh=swrYQEjyK5kYwE+Ufbh6uLcnvJpDBZncNNf7rt1zomQ=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=p0YbYh0WnMGJhY0NWCy6kXhF5eAlPnrQRcrBY8fFZULvkApoS3WvVqo9M5TC6EI1gKOC6RSi+krfSsNNXFe1qRjcf3HwDQVrgNgqkJ8whN9q0X+OPvF1yanPipD9pWqLjVoo4FKv8T1OeVLcqT4UlecMqzDqzhqzTBEYAVSNkGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au; spf=pass smtp.mailfrom=codeconstruct.com.au; dkim=pass (2048-bit key) header.d=codeconstruct.com.au header.i=@codeconstruct.com.au header.b=Zydq7R3N; arc=none smtp.client-ip=203.29.241.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=codeconstruct.com.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=codeconstruct.com.au Received: from pecola.lan (unknown [159.196.93.152]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 90A6620075; Fri, 7 Jun 2024 15:28:17 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1717745299; bh=swrYQEjyK5kYwE+Ufbh6uLcnvJpDBZncNNf7rt1zomQ=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Zydq7R3Npt8pIWMv3xfBIn4ZsguMHAoWuT4jGKZtTpavz3y6niIC7xs6jgYar1yyH WKX+dA8jDzgpHXeg1yFvqF1QOl1reUWcqObxToxTmcNx3ryUOHkVJOnTJJDN92nyfd w+z9yo9C/U52GswCH9DQehGVHu53IXi+OoFrKDfmzP5E5/WuVXZsBeWGPK/1VVqJvD OXJetvyWxy5FCnFF7VW/xb8tN7/ZeAtYEUA5LthppT7+0JfEda4zfx9QZtouYV/USL ZRzmBiBJ2jRcLbfaKo1bDEaOF62/1E8ZaOTpXc5S6glFISUk3IBcill0fde4QOyP37 ywmV18aJ9Z/bw== Message-ID: Subject: Re: [PATCH v2] i3c: dw: Fix IBI intr programming From: Jeremy Kerr To: Aniket , Alexandre Belloni , Joel Stanley , Billy Tsai Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Date: Fri, 07 Jun 2024 15:28:17 +0800 In-Reply-To: <20240607072030.2618428-1-aniketmaurya@google.com> References: <20240607072030.2618428-1-aniketmaurya@google.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Aniket, > IBI_SIR_REQ_REJECT register is not present if the IP has > IC_HAS_IBI_DATA =3D 1 set. So don't rely on doing read- > modify-write op on this register. > Instead maintain a variable to store the sir reject mask > and use it to set IBI_SIR_REQ_REJECT. Looks good, thanks! Reviewed-by: Jeremy Kerr Cheers, Jeremy