Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2543383pxb; Tue, 24 Aug 2021 01:23:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYh0s72gtXcnjMRHumIOPNZx72FpJdhq6u3JsLLJe9NJkngCEGZJrpscUmeL27lxAkvLT6 X-Received: by 2002:a05:6402:4311:: with SMTP id m17mr41431408edc.374.1629793411863; Tue, 24 Aug 2021 01:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629793411; cv=none; d=google.com; s=arc-20160816; b=U3eRqFD3v7PVw1+G1oMxGg1110gHaqht9wcAptM4Q5MXo0Ve+y+TtLkWDJ+HFN4Ftj pTpV45Qh+W3GXonfvBLsWQm5EknEgDlzlKAXvtfm9YVNwg6IkT7HVs2sIB7cFYk/4Ock K+V/axZSxlKpXsHRA6IyTuJl2+/Y6X6g4xdyzGiXhQu+1XBvt9Yt89iRNCOi3RUYoWG6 0s3712q4aKzXhHtKEe24D3nUQ6rQnOcGua+g+5x72kPDq4PHgFHFOQbCet+IOuwaV6Mt wQ0LslnVvfm5gRLlho+xtHKBCdQ3gJCDtywr2ifMmII4syLJx7yzObg2nkiOoLxRFCCt U67w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=eqUscBfIUDo9mNhNGr/sWc43arfJRN5gxI+Bd/kCR/U=; b=D9EGjVWRpkqXXPQeVDuwKBCFOJg71uW1HL1hoq5UFNjf/KK/Ht+SIn/s3Ke4HseHaR qCNO1qTDnTcZmE+7PJWsvhOmazwt4mZ6JBu/jJ0H/LWMyvfquI1Zge809rQCfBdPdFlm H8z3DRQvGiK+iBcxvbQjOzl8oi9TMLr+eSVcUpPiop1rEi3Jwrovmt5uhoZoX08z2EtB KFkqJuqgYfbqNIXOktqLp2y+oTN5Tqwcxl9RG1m8ugrnz4iNY4hIdvxjOTgZAB83fM9m K2LLA+ul8GEFMNK6QSw8dJuPnyS3sEtXH4GZUXjD3LgZC5Mfvqb5urthC+bUL+569kAP lkzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ui2GWGuC; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si17229580ejt.369.2021.08.24.01.23.07; Tue, 24 Aug 2021 01:23:31 -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=@kernel.org header.s=k20201202 header.b=ui2GWGuC; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235246AbhHXIVL (ORCPT + 99 others); Tue, 24 Aug 2021 04:21:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:55220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233692AbhHXIVF (ORCPT ); Tue, 24 Aug 2021 04:21:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA3A361181; Tue, 24 Aug 2021 08:20:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629793222; bh=wNRVT1QUCM5Sxjs8CxoaMMrgUbP2yeQycelOS4+LxNc=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=ui2GWGuC1GtuowMbqjq6xZE5qpHNkxGHbHuM73spf4XvYyAERHCIdCcaIG2oHAMmG 8NXNgJ96XJHn1ruFI1qWfxWF60uzNW96scXHmuK62sVv7N1ZgWnD7Wd56pYcMV36x3 bwuG7wWqfQALsRZJV1wbCSW5DJPj6TCWtQW8ZBBGWSWaxlRhEGz8t1BYswgy/1+Xjf +TpQeEYzlyKlTgj1obpgEQZEtmrKYyGH7zlYjotMMtusoOTC5Jbnb3mQNd8DO7TVBY ZKiuOz7iTppMrNLe7B+zttugJo9Am9n16O8Trq/3/wcMPOQjTFftCleY5G5hzM2rMc 3X2WO/auGDJMA== References: <20210823184449.2796184-1-Nehal-Bakulchandra.shah@amd.com> <20210823184449.2796184-3-Nehal-Bakulchandra.shah@amd.com> User-agent: mu4e 1.6.4; emacs 27.2 From: Felipe Balbi To: Nehal Bakulchandra Shah Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kun.liu2@amd.com, alexander.deucher@amd.com Subject: Re: [PATCH 2/2] usb: dwc3: pci add property to allow user space role switch Date: Tue, 24 Aug 2021 11:19:40 +0300 In-reply-to: <20210823184449.2796184-3-Nehal-Bakulchandra.shah@amd.com> Message-ID: <87pmu36ypp.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Nehal Bakulchandra Shah writes: > For AMD platform there is a requirement to enable user space role > switch from host to device and device to host by means of running > following commands. > > HOST: echo host > /sys/class/usb_role/dwc3.0.auto-role-switch/role > DEVICE: echo device > /sys/class/usb_role/dwc3.0.auto-role-switch/role A more important question that needs to be answered: why? -- balbi