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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CE318C4338F for ; Wed, 25 Aug 2021 00:00:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A81EC61262 for ; Wed, 25 Aug 2021 00:00:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235508AbhHYABM (ORCPT ); Tue, 24 Aug 2021 20:01:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231552AbhHYABM (ORCPT ); Tue, 24 Aug 2021 20:01:12 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E917C061757 for ; Tue, 24 Aug 2021 17:00:27 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id y14-20020a0568302a0e00b0051acbdb2869so44040724otu.2 for ; Tue, 24 Aug 2021 17:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=FI8NiXnuGqDVseyiJbu1jXqT5J4NBI4KNPS74JgzbAo=; b=Of/8gJWHaTSU6OQkxgFl1tgl1ZgAotxyWHt/y2PijzEqwCyJnFltRUn76qcTI9l0TW da9YiTDWKBt0OquUc1UdMWvYkCgoxNxeml2UP5a5gjK4lHy7gUYOM3ClHjHepNxHEVkg qmjJwnm33j5fdv6JhYrgbUUWNQ34c451xz2VOetHG6edo4Ve58/17/1l/PYBTvg1CYhT /vt9A68mxMj7Cd7GFpVDLGw3adSFoI3zx52c5uYawVztxvqGKijUZJovUBLV642nPnxJ m0s9D28ZvnYK05UGuJ6TQ7mWs47KzPDFyfTHc3UygdzGOD9zi0xkBrQDZM90DukRuzoh vHHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=FI8NiXnuGqDVseyiJbu1jXqT5J4NBI4KNPS74JgzbAo=; b=l+/aopfTa2IbKDg6LC8cHmDLw4dWRb6Z5uSoeEq7tNv1qEQYDoXEKEyldE8qxcLHKa xpUtgrv6pmmBBksRZ+KkNcFekvSvmp41Z2zBFgy1/JnUqmZLcF4vARc5KPwFvAXjs5Pn gkDj3b9rbWDSv5oyiZtizP03IElFw8CdDpF/bySA2US+nAHtCK+hVlRY9m+2fjU45r1Y CWWAhErmUICAosM52GxWe0M7r1SSPB7+JOg0VwJ1qFfS8ZJC6ISbbJWywJttuLGGKiYI INAmN+zufkDOFa5ydga9q3bROVHVmf/2ZR1DFhMu+dZ0OFgDHG0KlZTeUnZUBDO5olNs Eggg== X-Gm-Message-State: AOAM530Hf4CjI/s1JgR5P8wEGnGLv2Aqz4dv0DVDuACMrd0BFdN9KKnT qMghyakv5W89oqKlNsYVGBTONA== X-Google-Smtp-Source: ABdhPJwZjsW0SoWUogdTPaGK9LKAJ6I8nEJ2K6kDpad5UMff3+9ZOaqf+Ke+7G1IDUei2wkkvUjm6A== X-Received: by 2002:a05:6830:411f:: with SMTP id w31mr35123188ott.338.1629849626769; Tue, 24 Aug 2021 17:00:26 -0700 (PDT) Received: from ripper (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id g16sm4884932otr.20.2021.08.24.17.00.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Aug 2021 17:00:26 -0700 (PDT) Date: Tue, 24 Aug 2021 17:01:43 -0700 From: Bjorn Andersson To: Bryan O'Donoghue Cc: Peter Chen , balbi@kernel.org, agross@kernel.org, gregkh@linuxfoundation.org, jackp@codeaurora.org, wcheng@codeaurora.org, linux-usb@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH 0/3] Implement role-switch notifications from dwc3-drd to dwc3-qcom Message-ID: References: <20210704013314.200951-1-bryan.odonoghue@linaro.org> <20210707015704.GA28125@nchen> <20210708030631.GA22420@nchen> <593dc3f5-268d-580f-76fa-0be00505ac37@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <593dc3f5-268d-580f-76fa-0be00505ac37@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On Tue 24 Aug 16:58 PDT 2021, Bryan O'Donoghue wrote: > On 25/08/2021 00:52, Bjorn Andersson wrote: > > But isn't this role switching interaction (both B and C) already part of > > the core/drd, so if we can just get the drd to invoke > > dwc3_qcom_vbus_overrride_enable() we're done (and can remove all the > > extcon code from the qcom glue as well)? > > Provided we have an acceptable way of triggering when a role-switch happens > - then USB role switching itself is a NOP here, its really just a > convenience to invoke the callback. > Thanks for confirming. Then let's come up with an acceptable way, rather than duplicating yet another feature already implemented in the core. Regards, Bjorn