Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1149211rwp; Thu, 13 Jul 2023 06:56:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhQImAT4BFyvgrmLY7PCCYVekETZXa0Bp3HEn3K1Qe57r8kMm9FCB79SarC2FSTxScEoD3 X-Received: by 2002:a17:907:d0d:b0:988:9b29:5653 with SMTP id gn13-20020a1709070d0d00b009889b295653mr1625734ejc.77.1689256570383; Thu, 13 Jul 2023 06:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689256570; cv=none; d=google.com; s=arc-20160816; b=nLYz+64v65cFUlC+i4Gx0K8cGgOJi4RIsXGm6LUaK03pQgscqei0B9ZnFWVfX0b+aS HEcGruql5VTL8o32peAsmH0jZUMLsH4vkiChezincu3vOUlQ7D0uzKWO69b5uuP2R51y CBnxj65mW/vpddIz1BydHdQQy8V9uJPzVRKKbLKdtsWIOj87KK63leShtCMt9sjxC1lg ABYCziE1svf/IgfGd1qsIJIzr2LKg4ai+QNMzdmaGsAbbXdTdobFdi3TKRujIIymfYAF 20DASCBh8Gmu43YR91qXz1aoODNo0re1QlRXCg9QTniNEsXvjZPdXLogllCQd3ojuFqk 4P3Q== 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=8THliIhRmZbgmjIlvnEtKeBw5VbVfUVOU01YMVMbqQk=; fh=vNo5eb2XJdbGIc8xtodGfEVvGVlUgYOWVBeDNjZxCNY=; b=zYmZSgnu2eaf1QyI97o4Oi7+uH3h7aAQtpyBkTeSB2b1OGbXAl8ZdEGiqukuJb2FCP r1sR2AXnb0fnfAbjFPuSsju9TPCzKmg697h8GtiIrAHRmTNr6OlCbZPIJSbqmkA9i34p KNQOJHDBw+IOeA5N75Wal5tl0Fhm2pIbnxn96b4L/x2rchPFB4uMUpAWNye6y2hTfuyM Zhe9AvjIFrtMQhhihOVU4WPLTgwKyqK4k4hy/Av+Pa5mF0EvWcCjsh5pXhHYesyEF/bC RciBkRmAd8nGFqABHTW1UPKGQqUJ2ShzrtQ25C5ru46N5ToPBW7Mk+XvXCF4bO/4r3pj 9xSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Mt/jU90K"; 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 va28-20020a17090711dc00b00991fcf4687dsi18608ejb.186.2023.07.13.06.55.46; Thu, 13 Jul 2023 06:56:10 -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="Mt/jU90K"; 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 S230497AbjGMNxI (ORCPT + 99 others); Thu, 13 Jul 2023 09:53:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjGMNxF (ORCPT ); Thu, 13 Jul 2023 09:53:05 -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 1CD401BB; Thu, 13 Jul 2023 06:53:04 -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 A70A76153C; Thu, 13 Jul 2023 13:53:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3EC08C433C8; Thu, 13 Jul 2023 13:53:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1689256383; bh=w5LLgIZiA/btIJxLrU1uFBOOrNr8csz5UTI65mS9fq0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mt/jU90KgCZ+fRV/Z6tu1bSY3p4Amf7wsK4qQwPlj2t2+F4Y/puWkPD+K1WweHZh2 hhwWo2HgFZwd7Usob9eVzCCuh1B1CBJzjDmo0rOxhhgMxNvuCCcQGm3uGw+2sEbvUQ wHMhwMzn2RIho40hg6LdEGAm9dUW1lvVXLeCwyQw= Date: Thu, 13 Jul 2023 15:52:58 +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 0/3] Add notifier call chain to Embedded USB Debug(EUD) driver Message-ID: <2023071328-siamese-brethren-0174@gregkh> References: <2023071218-woven-oversleep-444f@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Thu, Jul 13, 2023 at 01:55:34PM +0530, Souradeep Chowdhury wrote: > > > On 7/12/2023 10:10 PM, Greg KH wrote: > > On Wed, Jul 12, 2023 at 01:52:37PM +0530, Souradeep Chowdhury wrote: > > > This patch series adds the notifier chain to the Embedded USB Debug(EUD) driver. > > > The notifier chain is used to check the role switch status of EUD. Since EUD can > > > function only in device mode, other modules trying to do role-switch on the same > > > port have to first check the EUD status by calling this notifier chain and based > > > on the status proceed or block their role-switching step. The modules can call > > > the notifier through the call eud_notifier_call_chain and pass their own > > > role switch state as the argument. This chain will also be able to handle the > > > scenario of multiple modules switching roles on the same port since this can > > > create a priority and ordering among them for conflict resolution. > > > > You are adding a new api that no one is actually using, so why would we > > accept this at all? > > > > And how can we actually review it without any real users? > > Ack. The next version of this will be posted along with the usage > of these apis for ordering the role-switch. Also note that I hate notifier call chains, so you better have a very good reason for why they are required and can't be done in any other normal way instead :) good luck! greg k-h