Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1216397lqh; Sun, 5 May 2024 23:58:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVjbpIwB5SJShV7jvQdHSFAKeD/ceRKuCxWB8CG6JjHZb/WLo1+uA9yiVXJaBcE96d6SWPhPxHuEb88CSAr6VJCfSFn8V1jhEuPjNkfNQ== X-Google-Smtp-Source: AGHT+IGZMA3qHI7NaaOzg6gwttjXQmVolyIQCVIF4Jrk41WEcBVspFufg7mArp7Nn+wQebwSuQGH X-Received: by 2002:a17:906:aad7:b0:a59:a8a4:a59d with SMTP id kt23-20020a170906aad700b00a59a8a4a59dmr3023679ejb.62.1714978698935; Sun, 05 May 2024 23:58:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714978698; cv=pass; d=google.com; s=arc-20160816; b=WiHtSUmZ5DUV253l9cGISmrz7ecXyKJVFMc69Llx0BBteJS/lkj69arRzgthSQo0HD zVdgMu5mvUN3sdilzQaYzANeGKOyI+Yycoq9n0fF3GKU2IRwDYXWMq4Z9MZ2PdYcmue9 4nRqwpOu0QfyxUhZB5Er9Mz6SfTRBLtsLlj6V4cb85g63F20vmSGv/svTqFr69czj9/o eLAsMGZtWY2EVe7wDPuPBerf1ILst7tgb8nxLXwWer7mcpnPO0WXw3BH6yBa0wBHGmkY mq80n6keFNKcZDkNXP+ftJ9v1pr6gzMSvlowCnQPTBCHkl0r7E1rcgn60tdhrc3RNV8K 6cTQ== 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=KTosghxQNHVYhSKYObdt0iokXKH5I5YpZAT4NGfcuWY=; fh=zEGw1kFZnSvustqIMzPOnZ0z5Iv7/f3aOxY1avyxE84=; b=OstJBlvpQSWCBlqj3YEyDgPYa8TtSkf57w6O7ZkSF3Ftj4Cw2njjxnCezm68z/a01s H9VbYhABts8AjP//QX71u7wRwFmperiSDeXBC0EwMuu6NnugcEuLVdLH1AVf2zu8c5lX i4SRnV9BpFl6h9+0bAZyEufwuOISGT1FCqvx4TwntQIsv/ZDxIIqbuFIC+KhzHsyr5V3 5c/bBnuvJJXb6dWOHUpxEesu6FqilHTQ0OquB9aFoNXOMqJPkHj220IbtSJPa6WuJBHb +T9gh6rC7z9SHgU+xQ2u2qFApv9KgxT4tHPLhLBe7XmQ5XVnqUe6gL9MA5bOuAlO0v0t FE/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=DR9HM8+v; 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-169385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169385-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 am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ae14-20020a17090725ce00b00a46e35a410fsi4935703ejc.917.2024.05.05.23.58.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 23:58:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169385-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=@codeconstruct.com.au header.s=2022a header.b=DR9HM8+v; 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-169385-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169385-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A79171F22124 for ; Mon, 6 May 2024 06:58:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1874F4F20E; Mon, 6 May 2024 06:58:13 +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="DR9HM8+v" 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 7941E64B for ; Mon, 6 May 2024 06:58:10 +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=1714978692; cv=none; b=WXWGM7RjwX7uaeClYA0FPcCMGkEkPg55m/U/Jw4Ed8fCgKQgyAZxdvIZnyG21z9mzILDt39V26fsZ1ZxH42dSEV8YVW3VCd/cY2QnprOxCkHFxrN4rUGU3u3u/cPolsnjg72wCj65p7VhZhiD969MCwiDWseSHW/HeV9Nwy122s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714978692; c=relaxed/simple; bh=KTosghxQNHVYhSKYObdt0iokXKH5I5YpZAT4NGfcuWY=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=MK9HI+YO+vH11WHjHHa7b8TKtHWfgPHsup8hztWqjyinft4kwNzxmsViFJ8Q6KzgpOXdzEDvOUYPtbJhAox5sEEV8VzW2K8BvnkeaFJpfhTaYHKb8Kkidip2pSsLZuJJIR1eviy7mGhox8+FEvVxpma42u8OnZ3FeRpt6/Zyjtk= 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=DR9HM8+v; 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 [192.168.2.60] (210-10-213-150.per.static-ipl.aapt.com.au [210.10.213.150]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 7529F2009E; Mon, 6 May 2024 14:58:06 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1714978688; bh=KTosghxQNHVYhSKYObdt0iokXKH5I5YpZAT4NGfcuWY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=DR9HM8+v92MNauFrWh1860sTlDoPGOkJWnpTDMu4sq42e+tk0qS2L+XPrY6sO1WpW s3InFERLo9hW6gzaAWD8uHnGpED+SvDGbSe2zVmy8NXrit/EdClZjqMfPG7OtxdZIl Okepnll63+ceOd885C8G2Mm3YUVYjr+9og64HqAl0pNnQkkMPxW/eu5TEcp5HoPk44 X/QExCqrHcHm3/jTP5Au7gdkYGB9nmZFYynAp4cVCSRp1vFV7LlPKjAHplg7yGTRnV y598eml+Y8afzY92VGj6vyluKBoEENuK/9K3uPQm2hIUudlUpMgyG9Aec+ZdzrfzF6 i3EM9qU4PWn+A== Message-ID: <52f4e4afef87c336f054ca1c43eec58d2e44a5b1.camel@codeconstruct.com.au> Subject: Re: [PATCH] i3c: dw: Disable IBI IRQ depends on hot-join and SIR enabling From: Jeremy Kerr To: Dylan Hung , "alexandre.belloni@bootlin.com" , "joel@jms.id.au" , "u.kleine-koenig@pengutronix.de" , "gustavoars@kernel.org" , "krzysztof.kozlowski@linaro.org" , "zenghuchen@google.com" , "matt@codeconstruct.com.au" , "linux-i3c@lists.infradead.org" , "linux-kernel@vger.kernel.org" Cc: BMC-SW Date: Mon, 06 May 2024 14:58:06 +0800 In-Reply-To: References: <20240119054547.983693-1-dylan_hung@aspeedtech.com> <563ad5613e9c5f0671e1f49f2d9ba71d8735799b.camel@codeconstruct.com.au> <645d4f645b1296d54573c4fe734768adab160035.camel@codeconstruct.com.au> 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 Dylan, > > The initial state would be to have all SIRs masked. > >=20 >=20 > Yes, indeed. The "global" variable is also true because "reg =3D=3D > 0xffffffff" is true. > Therefore, the INTR_IBI_THLD_STAT bit will be set in the following > code. That's mainly my point - none of this code is ever run unless the ->enable_ibi or ->disable_ibi controller callback is invoked. So we'll end up with the HJ interrupt only being enabled if some i3c device driver enables IBIs, which is a bit of a weird side-effect. It probably makes more sense when the rest of the HJ code is added, but not so much as a standalone patch. Cheers, Jeremy