Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp1031839rdb; Fri, 20 Oct 2023 06:46:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBavcTri7X5Q9DsN7eJ7GyhMkhyy6qVQQQIYI0qFiVTXm1Yx+XiD9AU/Xf8inbsFRyBEf/ X-Received: by 2002:a05:6a20:a110:b0:16b:b900:2d6d with SMTP id q16-20020a056a20a11000b0016bb9002d6dmr1769193pzk.60.1697809559998; Fri, 20 Oct 2023 06:45:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697809559; cv=none; d=google.com; s=arc-20160816; b=vooZHjusfoCBvFWGi7UWH0wikeUfBJvjputg06psDa7lLfR/kJoT8ln45pxtYxiam7 cpl1Jq7pA5aPgj3at82r+9oy2a4z4aEMd6i/28v3nzVhzbXf6KBueexMqg8fV52Aqt/9 +u+qrbkdwblzReHWVjlWYpqS0zKqGxTh08S1mnhc23rW27fRfD9ZBJq8Fm+tEtgFZx6l jypQg0DTTd2ZsFU4yLIV8ApSU2whBZqfWWuwzEovO8SqDBZ0wCBlHtkaufMZoKtMcnlG dSsFnWbXAcLA7/1CLa/Vmzn8nJdIWPFiseg6VXIiUYiYVzlgXOE1t6pqNx/xCfNCsyuj eZsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=lr/z7uihQprUld3MCX8m2TxbGzxLF1jBcFQtsJ1q8Lc=; fh=rHEpon9pAcWnyeepVvny5hm2nqR9WElFbq2El4k/UYs=; b=DotNgQ6IxcReFAuPKGR8d36v9S+MGF8ugGixBcfDnXZARhlxsIFOBU4PVLOainluwb fGc1URw8dJ+Ja4NF3A3ObyyKNhKLR4uh4y4DnO+j3y+R+wCGu3zKnT1GL08RmIQGsraG 3maAamMP6wtfIambBbEtCczBXqdrsJ8yaACzlflP76Iiq71ZoXi9/BVXzPv7lcxfbhAl kVESMAAf3fTLDQgI4zZwNWhFBiD9EyT9AOQFTFZ08DgbpvFRZ07hYWXCu7YWQkfMePSK ms/N09rWKQT2oRat6PIpkJoq+fiTZi6Za+sCqIfbp5Ej3ZPIYn7jO/6+d0JueojQnSzZ JllA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=biU7ESoH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id j4-20020a170903028400b001c3323ff53asi2004622plr.139.2023.10.20.06.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 06:45:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=biU7ESoH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 53EC6825CD05; Fri, 20 Oct 2023 06:45:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377376AbjJTNpj (ORCPT + 99 others); Fri, 20 Oct 2023 09:45:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377222AbjJTNpi (ORCPT ); Fri, 20 Oct 2023 09:45:38 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAEF0A3 for ; Fri, 20 Oct 2023 06:45:33 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id C67564000F; Fri, 20 Oct 2023 13:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1697809531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lr/z7uihQprUld3MCX8m2TxbGzxLF1jBcFQtsJ1q8Lc=; b=biU7ESoHpgUw+DDQz7V86GfiGC9KtHEliOGtPOBH2lqU8v9/dKa7TpQRy/qtWhw8nFH2iv SPRudRRN8PXjnJSt1sep9Vyoc2uvua23p4NRnADvgbOFKXF9mYrqgSa2XYkuvqGRMkXqih 2Djs7z08wehMsdbDIskMWYzd2tv3SX+rYNAMX16zDcP03I1XMldDNv98b8aUIcFRx3QMyx L58Kusya/Twsickg6kRU0wnTpc5bksBZaWwlRxkmITvRWxHFGXzc/hIhcgXO5l8bd5FHp4 9vTzCJC9Nr0T8VqOiewC15HTEuoOlfOBaNkbhdeIfHIBRzw7WnBR4SGJnvgOnQ== Date: Fri, 20 Oct 2023 15:45:28 +0200 From: Miquel Raynal To: "Zbigniew, Lukwinski" Cc: Frank Li , alexandre.belloni@bootlin.com, conor.culhane@silvaco.com, imx@lists.linux.dev, joe@perches.com, linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/6] i3c: master: add enable(disable) hot join in sys entry Message-ID: <20231020154528.2f5f68f5@xps-13> In-Reply-To: <57efe6de-cf65-32ed-fd1e-a388e1676c70@linux.intel.com> References: <20231018205929.3435110-1-Frank.Li@nxp.com> <20231018205929.3435110-2-Frank.Li@nxp.com> <57efe6de-cf65-32ed-fd1e-a388e1676c70@linux.intel.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 20 Oct 2023 06:45:48 -0700 (PDT) Hi Lukwinski, zbigniew.lukwinski@linux.intel.com wrote on Fri, 20 Oct 2023 10:55:27 +0200: > On 10/18/2023 10:59 PM, Frank Li wrote: > > Add hotjoin entry in sys file system allow user enable/disable hotjoin > > feature. > > > > Add (*enable(disable)_hotjoin)() to i3c_master_controller_ops. > > Add api i3c_master_enable(disable)_hotjoin(); =20 >=20 > What is the use case for having HJ enable knob in sysfs available for use= r space other than for debug stuff? In other words, does user space really = need to enable/disable HJ in runtime for other reason but debug? If it is o= nly for debug maybe it=C2=A0 could be move to debugFS? I don't think hotjoin should be considered as a debug feature. The problem here is the power consumption which is higher if you enable this feature (you need to keep everything clocked and ready to handle an IBI) whereas if your design is "fixed" (more like an I2C bus) you may save power by disabling this feature. A module parameter does not fit here because it's a per-bus configuration. Thanks, Miqu=C3=A8l