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 6834EEB64DA for ; Wed, 12 Jul 2023 16:41:39 +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=m4d6dyDGeWwQidXq25lL1EVoBa7xkm4ig+07aiHamxw=; b=dDisTFVCMZGSgB +Rm9KnLaQJFU6HYW6nAZIyft4uTO8kjRfM4MKP87jnhfFio7wcAaC2o54pim/jiQsBHsv215YN5g7 BoxWAYMCqKna799tHLzaN1zh04jp1twwhoAOagIGbW3cyjlDfMdu2/FPdB1544JLUUrVT/qWo6oZP Xm2GdsJ6LqzGwMiv7nyx0IUIk0AYzk80Pbf2oNt56GIcWD8umGF5SwkUqCoSD3LnLq0RRTtw7PCSs QKJdx2Y2Jsh0b5Awn3tcVKaZotGtUqYSVTDuEhuNVHXkT5UveSEe8yp4OvGChsuTVOjf04I/dvQ/n 5mDwE71tDjWKyVCdV77g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJctu-000d5a-2D; Wed, 12 Jul 2023 16:41:14 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJctr-000d45-0i for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 16:41:12 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B5BC261820; Wed, 12 Jul 2023 16:41:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9FE23C433C7; Wed, 12 Jul 2023 16:41:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689180070; bh=CzEOfSZpr9CSlURf6noLKDDczuEh/Yb9kBrx+k6k/KI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mFzSIXgBQdwprjB+KjUD4IN5TWV9YFyqtSB/toR7wO7nqI62FiHojknXUSYE8pzC7 7UfkyJSy+EZbQRhI1sv3RUh5L0iop3zoX14bHnUmJkf/4t9Zsc16vGmVps0m3EnGCz GzYT3m4p7e8x496G1QmmGqFWFlwg8/p1ONG1BTF8= Date: Wed, 12 Jul 2023 18:41:07 +0200 From: Greg KH To: Souradeep Chowdhury Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, Andy Gross , Konrad Dybcio , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sibi Sankar , Rajendra Nayak Subject: Re: [PATCH V1 1/3] usb: misc: Add the interface for notifier call for Embedded USB Debugger(EUD) Message-ID: <2023071259-stumbling-collected-9c59@gregkh> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230712_094111_300071_D63CCFAD X-CRM114-Status: GOOD ( 20.15 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Jul 12, 2023 at 01:52:38PM +0530, Souradeep Chowdhury wrote: > Add the interface for notifier calls that can be made to check the role > switch status of EUD. An external module can import this file and use the > wrapper functions eud_register_notify to register a notifier to the EUD > notifier chain, eud_unregister_notify to unregister the notifier from the > chain, eud_notifier_call_chain to call the notifier chain to check the > status of role-switch. These interfaces are provided to handle the case > where multiple modules might go for a role-switch on the same port in which > case EUD will be given priority over the rest. > > Signed-off-by: Souradeep Chowdhury > --- > drivers/usb/misc/qcom_eud_notifier.h | 10 ++++++++++ > 1 file changed, 10 insertions(+) > create mode 100644 drivers/usb/misc/qcom_eud_notifier.h > > diff --git a/drivers/usb/misc/qcom_eud_notifier.h b/drivers/usb/misc/qcom_eud_notifier.h > new file mode 100644 > index 000000000000..0cae42a5f6bf > --- /dev/null > +++ b/drivers/usb/misc/qcom_eud_notifier.h > @@ -0,0 +1,10 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Released under the GPLv2 only. > + */ > + > +#include > + > +extern int eud_register_notify(struct notifier_block *nb); > +extern void eud_unregister_notify(struct notifier_block *nb); > +extern void eud_notifier_call_chain(unsigned long role_switch_state); > -- > 2.17.1 > Don't add .h files that no one actually use. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel