Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp588960pxb; Wed, 18 Aug 2021 09:15:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVFN49SidIP5aSslvBKgND2g8FoHGnCAKDskqGOkLSD6B/wEVfXvzUYgY+ct9orgFqp8Ej X-Received: by 2002:a05:6402:22b0:: with SMTP id cx16mr11049035edb.185.1629303339725; Wed, 18 Aug 2021 09:15:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629303339; cv=none; d=google.com; s=arc-20160816; b=oE4Y6v+AJIVrzfbMKIXlh28M/ls0tCtGc/iA+g5cC33bCgjyHfRUkO8lsR3xG96PUH 5MFopwd3jrieEdkqY8wgEKWUZTvVSF44Di5Q0GnPLXXml1HrE1zb+KNjWoSIqJDkrjc9 lTDSdrFtnNAv8sgpOZV7JM6oXj3oUdjQRFwNNR6TRz0HenytYYiJJ4JT/LLJmlaQty+W RvfDlrE477SkWcxapUm4htsjRmS0doeDYAS6R9fYwWdxrPDyK+RezEmnE2elZkah1eHe EnScKtH44Gza5hPTAJ9hZwIXwI/uwci3aXE1BNXUjwGSw7Uw6aUzTFRalFDLMD0433BO m6Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ucSXPveGZfGZujRFzGNWdZuGQzT8wdbpdWwozLwL7y4=; b=MAetxCoBKDkZ1VA+Rkis2pncIRCp8Pz6Ii8T3Ah1ebEE2KjEnOaIOQmbOpp0c5bojQ vNCNeUkuYswcA4yXz6/LYluxBleCnQs6ARi+hgYm+9yIVuAp/IE+JiCdTbXQvF1AX0wu 615Ss4bsPT/VP5TvaZjnqapIWsHTC4wsAvwr1SeuHQZlCSLzw5kYyzzqr8sRkjKZZmax 5flB5H+kuO0ZX1qWxYUMWCqxPhxZ0UF9Btq2t8yrnLgW4/8J2FZd5sDraaVSosZnDJEE /oLXwWIBViXvG7fOSu5YhJEgCsyMNxP7xzIeX+GPKfZ96Uh1vH1EogAje6AecfipKEtK AFyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CNIuGp3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd14si364670ejc.282.2021.08.18.09.15.12; Wed, 18 Aug 2021 09:15:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CNIuGp3+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbhHRQOJ (ORCPT + 99 others); Wed, 18 Aug 2021 12:14:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbhHRQOH (ORCPT ); Wed, 18 Aug 2021 12:14:07 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6312C0613CF for ; Wed, 18 Aug 2021 09:13:32 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id b200so3508888iof.13 for ; Wed, 18 Aug 2021 09:13:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ucSXPveGZfGZujRFzGNWdZuGQzT8wdbpdWwozLwL7y4=; b=CNIuGp3+mMZmcPeBKYjYA/B3uSrpZlmWUBctSheQHbSUwNM+DkUx+PwRX17DSL73vY XUwARE/vMF4BP8U2DD68FxdBcG26qzurbm6SUsgnRRV758mDFISoh/d9FobIeSGHxA0s nzOt/jC4jAdlKXckfsUaSVUNO9QIADfeCnF1Azlc4qrpXw/6YuKOTrDX0Nzrruey+YxC HRX6zixnfuhbm4B4A139UIerHbTu4lnVCIPN36CfZse0N+LX2y8yHJ87Rt2meNeDY/K9 92dsPk3SK4OpfF6mj3WWA3FN0IQ4wZ2x8e6tuoHttdRxP0YGgNS2shEcMbBFxPaAapJe Yf3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ucSXPveGZfGZujRFzGNWdZuGQzT8wdbpdWwozLwL7y4=; b=hL6YSfpnRE6jXW6LawbHz1so0eSBi27O+qyef0vbx6NKqRzTEJfyUzZ4kb5yAwuADp cEiJfH8/hgLkCLkR1q+orwpwAaNf2SijJZdt+WebfAGzR3bxdVmvD1HVqhJLA8jFMku+ MZsvBGiDdSm+ct7pRAOU7HRJ3c7eKv7tWVvnDSwFQMpdXhJYjV5wBIk/138yDX+gEBD9 QQ5JjMsej6kKu2H9Ubzr8UTH+xxqSNprAnmIwAJMxO9QHHQ49kLMBJsJ4aZDiSzHPiZ7 OiKM7V9C+uzQCgQhuyq9YhTfiIVsjuoCICVNmhK6ZpD3H7fZGQQrQxR/WEIKkUBqrcx2 zh4w== X-Gm-Message-State: AOAM530iM1V8fj11J8vcrCVlqd+IWrfuR9kRadvBmF5mpOeWGO9djXii 74sKEuhV9sv0SLVtO0zC5/PVS3R6/33tWB6Lk/YQYQ== X-Received: by 2002:a6b:6a14:: with SMTP id x20mr8029277iog.177.1629303211993; Wed, 18 Aug 2021 09:13:31 -0700 (PDT) MIME-Version: 1.0 References: <20210813043131.833006-1-icenowy@aosc.io> In-Reply-To: From: Kyle Tso Date: Thu, 19 Aug 2021 00:13:15 +0800 Message-ID: Subject: Re: [PATCH] usb: typec: tcpm: always rediscover when swapping DR To: Greg Kroah-Hartman Cc: Icenowy Zheng , Heikki Krogerus , Guenter Roeck , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 18, 2021 at 10:40 PM Greg Kroah-Hartman wrote: > > On Wed, Aug 18, 2021 at 10:02:24PM +0800, Icenowy Zheng wrote: > > > > > > =E4=BA=8E 2021=E5=B9=B48=E6=9C=8818=E6=97=A5 GMT+08:00 =E4=B8=8B=E5=8D= =889:56:38, Greg Kroah-Hartman =E5=86=99=E5=88= =B0: > > >On Tue, Aug 17, 2021 at 02:00:33PM +0300, Heikki Krogerus wrote: > > >> > >Why is it necessary to do discovery with data role swap in genera= l? > > >> > > > >> > I think it could be possible for devices to expose different altmo= de > > >> > with different role. > > >> > > >> OK. FWIW: > > >> > > >> Acked-by: Heikki Krogerus > > > > > >Is this conflicting with https://lore.kernel.org/r/20210816075449.2236= 547-1-kyletso@google.com ? > > > > > >Which of these two should I take, both? Neither? > > > > Don't take this, it's against spec. > > Ok, now dropped. What about the linked patch above? Does that work for > you instead? > > thanks, > > greg k-h Hi Icenowy, Could you revisit the patch for the tcpm_unregister_altmodes part? I think that is still a problem. thanks, Kyle