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 3CD3ACFD313 for ; Mon, 24 Nov 2025 01:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=7neti7dpAmDFcPilq2Bt0Tzsj7xXGZOIwTb6sK9LseA=; b=daY7jUTFWuk+XNDqK/rTyd8kyN E8u382m3jnadT+1hFxA/kQRO0QPTDI1SVyQy5FdevX17Igmf1I7e/jw9qFYTC6Yf+zjho04mQqNut lo2JoNwo6KZ9oO3KjxxD3y6uFJ4V0i9fkGv/eKgjyqXhm+SfkxkvCJp1LsrJP5jxWX1GGV1V3DgXG Jq1RUmdwY06AZR3SuQx1zWYo7iL3TJQ1yG3fpMeOXLTEvfdxhQtAFzi+GJ7UdvQ7t1oeu03kGsFMo PSbxjDaYsR5ClWAr4jEOCfT5imHSUiccIx6aW6leYl7VfbQfZR5yNNPLGFws9AHfil6Z/M29mT4gG kq0q8qkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vNLZ1-0000000Aw36-15HD; Mon, 24 Nov 2025 01:40:23 +0000 Received: from mail-m19731110.qiye.163.com ([220.197.31.110]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vNLYx-0000000Aw1l-3TY4; Mon, 24 Nov 2025 01:40:21 +0000 Received: from [172.16.12.51] (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTP id 2a998c2ff; Mon, 24 Nov 2025 09:40:05 +0800 (GMT+08:00) Message-ID: <462ad1bd-7eec-4f26-b383-96b049e14559@rock-chips.com> Date: Mon, 24 Nov 2025 09:40:03 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 01/11] usb: typec: Add notifier functions To: Greg Kroah-Hartman , Chaoyi Chen Cc: Heikki Krogerus , Dmitry Baryshkov , Peter Chen , Luca Ceresoli , 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: <20251120022343.250-1-kernel@airkyi.com> <20251120022343.250-2-kernel@airkyi.com> <2025112102-laurel-mulch-58e4@gregkh> Content-Language: en-US From: Chaoyi Chen In-Reply-To: <2025112102-laurel-mulch-58e4@gregkh> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Tid: 0a9ab384a1c703abkunmfa83b8ab38c240 X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1ktWUFJV1kPCRoVCBIfWUFZQ0JKGVYfGEpIS04dQkgeQhlWFRQJFh oXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0tIVUpLSEpPSE xVSktLVUpCS0tZBg++ DKIM-Signature: a=rsa-sha256; b=f4+mCPYdv+riXF8Aoj4wUW+oYifKZiJ/TjuUgPWTmNFL8Iz3GvYFWK2QMaTCMdPv2zqbWK5Zjj+81aUzEy5KEuDCOVR74l6uME4OFfDsttmHKoAszBI6HwlYyNszsCtMJETC/7YZJqFTDoTE0Ag2zR+1xxAQDZ/fwtcF0T2b1t4=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=7neti7dpAmDFcPilq2Bt0Tzsj7xXGZOIwTb6sK9LseA=; h=date:mime-version:subject:message-id:from; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251123_174020_398067_1DE66744 X-CRM114-Status: GOOD ( 11.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Greg, On 11/21/2025 10:07 PM, Greg Kroah-Hartman wrote: > On Thu, Nov 20, 2025 at 10:23:33AM +0800, Chaoyi Chen wrote: >> From: Chaoyi Chen >> >> Some other part of kernel may want to know the event of typec bus. > Be specific, WHAT part of the kernel will need to know this? For now, it is DRM. > > And why a new notifier, why not just use the existing notifiers that you > already have? And what is this going to be used for? We have discussed this before, but the current bus notifier cannot achieve the expected notification [0]. [0] https://lore.kernel.org/all/aPsuLREPS_FEV3DS@kuha.fi.intel.com/ > > Notifiers are a pain, and should almost never be added. Use real > function calls instead. In v6, I used direct function calls, but had to switch to notifiers because couldn't resolve the dependencies between DRM and Type-C [1]. Do you have any good ideas? Thank you. [1] https://lore.kernel.org/all/aPYImGmesrZWwyqh@kuha.fi.intel.com/ > > thanks, > > greg k-h > > -- Best, Chaoyi