From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 078BCCCD1A5 for ; Fri, 24 Oct 2025 07:43:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WR0SOV4XId6raXPykokpQQIZ4GFYYRZj0AvHdkMWVCc=; b=ZWua+Itl4NsWxE XuxY65dfAUpCpV4+o0KRa+OHqDtgY/n44V1cxY5IfKeHRN1PT9LoyipU4qtEP5MnQfZMVhR3YHlaS ob49kIFdRhmJfR6xan9SvkSVfofCSWL8hYsGDDfQI1IvhP8QipFsR+B9bxbMu27teHzGLSNnvxy2N 9iOpN1HWUFwFI8+moNHoiEkrNxApAzLWF+kwoecRbtZwNb/y98/76cA5Z78IP6iCLH8v6MCojk0ii XkHe3S62S8U2ifXPhDsoPVvHHCZ4f+Xwp3No9QFjiVtw7/2ePY8lwX7VQFN5YW+iYfdzeazzYNe24 kCTAiF9HVOdRpes3q9aw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vCCSp-00000008YLn-3DSW; Fri, 24 Oct 2025 07:43:55 +0000 Received: from mgamail.intel.com ([192.198.163.17]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vCCSn-00000008YKc-0F4W; Fri, 24 Oct 2025 07:43:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1761291833; x=1792827833; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=7zI+yHusBy8iTPtjWgljU0yIp25yZuoATyi6HBS0Rz0=; b=PwZYx6WAWv2V5Ky8UJl6ZGJlBkjEYMMzfJAI6F1cuBBzvNxY/uMBsYYE lSFcyKtKQ9tbzDc07HZ+lvi0eDLv3+znzBCFEublDoKoI64VaMxGDoIFX zWJz+wJE/QCmyC5YlL3QX1nciCvSgStiBqw5Pt4DjwyRn7OlGbA9YQFnJ L9DIwpC0VKEbZqmWQuFHVgWeqVMFXsePTXenqtIby3yZ6LqHzYwQfhThn UuCs6gBlNcVEhYW4UdVpMYrYdAQ3Fy/E/9C+Tc8TGAJnI6PXvBxPeAc67 Y+fhOXGwuBxjDbGqjCvIFa7JzdfG4xoqOIsOxhurpP9QWAVIxckdhtvaf g==; X-CSE-ConnectionGUID: bfcgVjO5Tvie/G8VNPj6Hg== X-CSE-MsgGUID: 8xSoo/C7Q6COyen5fqM5jg== X-IronPort-AV: E=McAfee;i="6800,10657,11586"; a="63376645" X-IronPort-AV: E=Sophos;i="6.19,251,1754982000"; d="scan'208";a="63376645" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2025 00:43:52 -0700 X-CSE-ConnectionGUID: u3ao3ZWfTCKvdTwCgNOZbQ== X-CSE-MsgGUID: i6w9uVJtSDy1AqasQ83mFQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.19,251,1754982000"; d="scan'208";a="188756837" Received: from mjruhl-desk.amr.corp.intel.com (HELO kuha.fi.intel.com) ([10.124.221.255]) by fmviesa005.fm.intel.com with SMTP; 24 Oct 2025 00:43:42 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Fri, 24 Oct 2025 10:43:41 +0300 Date: Fri, 24 Oct 2025 10:43:41 +0300 From: Heikki Krogerus To: Chaoyi Chen Cc: Chaoyi Chen , Greg Kroah-Hartman , Dmitry Baryshkov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Heiko Stuebner , Sandy Huang , Andy Yan , Yubing Zhang , Frank Wang , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Amit Sunil Dhamne , Dragan Simic , Johan Jonker , Diederik de Haas , Peter Robinson , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v7 1/9] usb: typec: Add notifier functions Message-ID: References: <20251023033009.90-1-kernel@airkyi.com> <20251023033009.90-2-kernel@airkyi.com> <3a24bd7f-c247-4541-8cf5-c1e66e2af5a0@rock-chips.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3a24bd7f-c247-4541-8cf5-c1e66e2af5a0@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251024_004353_125943_0052E8BA X-CRM114-Status: GOOD ( 13.30 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org > I noticed the following statement in typec_register_altmode(): > = > ``` > = > =A0 =A0 /* The partners are bind to drivers */ > =A0 =A0 if (is_typec_partner(parent)) > =A0 =A0 =A0 =A0 alt->adev.dev.bus =3D &typec_bus; > = > ``` > = > If the condition is not met, the bus will not be set, which means bus_not= ify() > won't be able to take effect. Did I miss something? Right, that would be the condition that I was talking about. Only partner altmodes are used in the bus. Hold on! Do you need the port altmode instead of the partner altmode? If that's the case, then we can't use the bus notifier. So we'll need the separate notifier chain after all. Let me take a closer look at patch 2/9. Sorry about the hassle. -- = heikki -- = linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy