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 3743DCCFA00 for ; Mon, 3 Nov 2025 01:12:16 +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-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f+a9khd3zHdgru3Tewjn8Z9Gbw9eoFkjma2MM2HFBT0=; b=qqvuh0igd/8xDe 7A8Iij0L/jLVuzTp6YMcN/nrSLcKK/Gbnx8mx8XJis1ou7xDDh/HxICuIUGbKjWOeBgLjdoqVqUNv /h7h071zxsFboKK49OybU45hlapIkRRPAtEpQpmUUqQjyB0VEjp1XvSxPfh3TbGiY5bvX4SwQs6ma Lr6ZZNcwN2Vtaopx7VuUdLKFMvwi2oY0GYN99332A3ae6169xFWry0uEnqCF+9tXHvqEWTpNxY4rA gJYlys9F6Hwv0KkCYBvAADaiKrAjV0Vip5sBXp9t/r/TPcosH+y664Zr+ed2k3xJPS5sHky7mOPf5 Dyhc3Jcz6MwfVVilxRWg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vFj7H-00000008zvc-2NkT; Mon, 03 Nov 2025 01:12:15 +0000 Received: from mail-m12889.netease.com ([103.209.128.89]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vFj7D-00000008zux-1zS5; Mon, 03 Nov 2025 01:12:13 +0000 Received: from [172.16.12.149] (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTP id 2818c2243; Mon, 3 Nov 2025 09:11:59 +0800 (GMT+08:00) Message-ID: <39c21e9f-4958-4007-bb09-3ef40ff30d2a@rock-chips.com> Date: Mon, 3 Nov 2025 09:11:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v8 01/10] usb: typec: Add notifier functions To: Heikki Krogerus , Chaoyi Chen Cc: 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 References: <20251029071435.88-1-kernel@airkyi.com> <20251029071435.88-2-kernel@airkyi.com> Content-Language: en-US From: Chaoyi Chen In-Reply-To: X-HM-Tid: 0a9a47455e0103abkunm8b2c313f943871 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZGR5MTVYYQk0YGR1KQ0kfTx1WFRQJFh oXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSEpPSE xVSktLVUpCS0tZBg++ DKIM-Signature: a=rsa-sha256; b=Xf2GCOogE5JU9VFai8bfqqPO4EwB1WJ7U798BYDMShF5yADbVIRdoEeXupnhnUlWCWamERfBB8hOvuY9KC55ljPx2XdO0aSSZ4aN/YVRrfNdwUmKid0Rkhyi8liJDc6hPFcv+WVwWCoRwFPiFILAWI0NSARBI9pcgXmLDxUm+VA=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=kGpL6uycvY2W1UtRJCq/id+/GMXz5vHEcP9JtnFabFA=; h=date:mime-version:subject:message-id:from; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251102_171212_057277_67CED759 X-CRM114-Status: GOOD ( 10.47 ) 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On 10/31/2025 9:39 PM, Heikki Krogerus wrote: > Hi, > >> diff --git a/include/linux/usb/typec_notify.h b/include/linux/usb/typec_notify.h >> new file mode 100644 >> index 000000000000..f3a7b5f5b05b >> --- /dev/null >> +++ b/include/linux/usb/typec_notify.h >> @@ -0,0 +1,16 @@ >> +/* SPDX-License-Identifier: GPL-2.0 */ >> + >> +#ifndef __USB_TYPEC_NOTIFY >> +#define __USB_TYPEC_NOTIFY >> + >> +#include > Replace that include with a forward declaration: > > struct notifier_block; > >> +enum usb_typec_event { >> + TYPEC_ALTMODE_REGISTERED, >> + TYPEC_ALTMODE_UNREGISTERED, >> +}; >> + >> +int typec_altmode_register_notify(struct notifier_block *nb); >> +int typec_altmode_unregister_notify(struct notifier_block *nb); >> + >> +#endif /* __USB_TYPEC_NOTIFY */ > I don't see any need for a separate header file for this. Intoduce > those in typec_altmode.h. Will fix these in v9. Thank you. > > thanks, > -- Best, Chaoyi -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy