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=-8.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 6AA3BC4338F for ; Tue, 24 Aug 2021 23:56:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3EF64610E6 for ; Tue, 24 Aug 2021 23:56:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233909AbhHXX5I (ORCPT ); Tue, 24 Aug 2021 19:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233431AbhHXX5I (ORCPT ); Tue, 24 Aug 2021 19:57:08 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C6B1C061764 for ; Tue, 24 Aug 2021 16:56:22 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id i6so9934241wrv.2 for ; Tue, 24 Aug 2021 16:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=0eKTm+iFtZEDsKPuRONh+K02yrNa1c6g9glq9hhcmRs=; b=kQTp2neDLaDghFPp9wLFdToduiKEwO76rLK8La3uwLCJ2oS0h+2JjdF46K5GIv88Gp WKRl2IcaG/tdH1SXf+X4J6eF60deUdenLCI5GoS+Po5iv6wlTvb7AZWra82xnmNVEvR0 JujntWFJTt45VfA7cyRPGK5AcdC6LpHhGDnTP5zMzlk7xT5YsAnYPl0qg3+VXpW4mMLS LtVIEWAFO4x1wyKQpwr4SL+aG1SFdts3n48UdgB5pXj3PMm5Gx9+lh2nSvXkA/QO6ygE /CmrZpwWa6wAXLi7udPs24PrHF4bR57DpA/6IvwXKbdidpcVQVOlrb1YLdlIfU8GrzWv ID/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=0eKTm+iFtZEDsKPuRONh+K02yrNa1c6g9glq9hhcmRs=; b=Ue1GsQLtTYXa6iCxCrAmHvS3a8WNJ/LTyLrgcIdgSwsSuIvkk/7O/GC7mVL0qmC8Eb AdcS4E8+8eym3hLu9MrcEFpKMmXAWgkvrGrQE6nZQFsyPWjM9Wcdu1vK3ytP3/oiAMZq ooy2+qUS5eTfseKkJY8YwzzaqP+wmDNSMjPaXpblxoxYe+yYDILZL2PWW3zd8Gum5c9Y QhIvfgHGYsYUeDuLm9x45Utyypd/2IEBTLqxUMIKYvCyH6YVT7B78hoxX3NrqP3lu4oJ sF6DMn496hGi0a80OnLqHXQsyPASwk/Qzl2lxyf9Bruci0hsGYRngZ0TpARG3qNonPmI W2Ng== X-Gm-Message-State: AOAM5307gp3pgGBlk3/8WFnvLyaHJvTvuYtTNiq0FdbiBpMA0NK7UtrP CS9AXzi84H9oX5xi75NBxUWH6/kCb5Dm6K5x X-Google-Smtp-Source: ABdhPJyFv4nVa8h6XWO6cg+uTTs4IIoWIcMyWXcEXxF4Tx0E0NVrYwzy8LulZGqVCYhx3ngIS7fNYQ== X-Received: by 2002:a5d:4b01:: with SMTP id v1mr21408683wrq.377.1629849379912; Tue, 24 Aug 2021 16:56:19 -0700 (PDT) Received: from [192.168.0.162] (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id z6sm3549612wmp.1.2021.08.24.16.56.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Aug 2021 16:56:19 -0700 (PDT) Subject: Re: [PATCH 0/3] Implement role-switch notifications from dwc3-drd to dwc3-qcom To: Bjorn Andersson 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 References: <20210704013314.200951-1-bryan.odonoghue@linaro.org> <20210707015704.GA28125@nchen> <20210708030631.GA22420@nchen> From: Bryan O'Donoghue Message-ID: <593dc3f5-268d-580f-76fa-0be00505ac37@linaro.org> Date: Wed, 25 Aug 2021 00:58:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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. --- bod