Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp97700rwp; Wed, 12 Jul 2023 10:12:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlHOlHx5BiWr8J0YM/kjYfCeYvntyvA4I8zUtnpFerAt4wiFCygbXfPeO5q5PLLY2NlM2YTZ X-Received: by 2002:a17:902:daca:b0:1b8:902c:f8e8 with SMTP id q10-20020a170902daca00b001b8902cf8e8mr19608998plx.60.1689181928040; Wed, 12 Jul 2023 10:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689181928; cv=none; d=google.com; s=arc-20160816; b=Cg5F2QQsx9e6gzBAxSLfU96rJHH8g59JKYILtDz8cfHu6fe8LmKffBgpfMbUY5YBrL mlR8r0eWfF0TTqRBcvhirV1RYfQF9vtXjSd0idaSrUy2IaurLd7bD1cIDkASsHiwyK7Y oBwSfhFRNNdE8ktxvToVURVIdd2SB6j55WUNqROC9F0rcPYySc7iEQXjxI1QyUy6gb+a nCWsEJeOpZNKT0MGsx9JARM3tQfA+8zrNV7GMS+/1kDhdKKtsshJzraif7sWefHrpRxq occnsAho1MITkqmuhUzOrPXMvJOF4vjcTwDYmnghcD2ijwZbei29mV1cIFVuzcrXySUm x2Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QYAccNmKIk1s0GKvQUl9TaP4Ov+x7TShNPHlxrLoQnc=; fh=vNo5eb2XJdbGIc8xtodGfEVvGVlUgYOWVBeDNjZxCNY=; b=y2159Urn4z5EEOdjU8IfOfKUUe6CoUgGTCYF4nV0N+l9Slq0tJDpyX5MxjvF+ZFn9z txtKpCs4UR/vOv0vR3LAvakk2Lr2DD5zC6VVTA8dbICukQAybn33Aj1V9eG7jlQQ2tpS U0VbQjJPwNphl1hwDfBivMhg9iD/DyToUV4XbAjGGFZH/P+XkxN8Tnil2swXq26PjL/t g5XuN/5WlCBwROpPVrPbcU1nA34JPcvnMJfSi+O36GigmfUKCvI+nYBESnREICxiUZfh hlOzzhau7YEk0dc/cIXDVHRtTJxOuXozv903r84RzeMB8pNf2q7lfid8RfIf1nS3KYvw x/GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mFzSIXgB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf7-20020a170902b90700b001b9e9fa3a38si3549177plb.646.2023.07.12.10.11.55; Wed, 12 Jul 2023 10:12:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mFzSIXgB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232766AbjGLQlO (ORCPT + 99 others); Wed, 12 Jul 2023 12:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232759AbjGLQlM (ORCPT ); Wed, 12 Jul 2023 12:41:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FF1E139; Wed, 12 Jul 2023 09:41:11 -0700 (PDT) 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 B8E086182F; 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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.