Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2863131pxb; Tue, 24 Aug 2021 09:19:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdi5U8coYE4xU8bFQ0CeStshaFt63WQp3Dw1ws78Gsurx+U6bhOLsxcMBdtHiFGVox9Sd1 X-Received: by 2002:a92:c212:: with SMTP id j18mr26281782ilo.77.1629821945901; Tue, 24 Aug 2021 09:19:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629821945; cv=none; d=google.com; s=arc-20160816; b=0jr4J2FpNvDdJ7gdEbeLx9hodwDds3/mDUbMHu04iKXORPBL8RFOXvYPa4muBdNZte nFgXVen6GU0jwlugAyPBz8J+NZ8QS5mLgbC7CSyG/8z/N1HRrZldHp0mzDOP8uqh6Gk5 yQ30FbYKmvA0+Juzn1aoMN6jZd0shQU7QHBgcQEkuTmr4T4NOLF5S0PLhHNsq9JlwQGV v3k8SRzx/UNgdUALiO9/3BdlS4I2zmtCyHsE1Gd1MW0WptzyByRebz1jjojV6u6Mgnou DNY3ILoZ4Am8q/xcBuK4ezBrwUtKU6YVFOOsCig2OEvW20+f80lj2FAVofWmjf0NMzPT G/lA== 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=CNW+CDIPecklawv9i6wZE7uvEotUPsGx8QmpMJjlt64=; b=XQEJWUMbIvL9f8DS4ocH1Pw12mdVO8Rrc0hBNBLqHqBeE1j8YtZAYM8lrJn+8ZLVRH SAD2TgzeIYOuvZu2cK08FOi6essSCNkUKqQHn5bASFmcSHe3u9l6LyvbG5BNxvCFs6Fy 6VCUPxEPy4ofbbcI6qwox8uP6q1ayZDJYTKlOLCOVpzRjScQ5PjgCjccI0d97dxyY4Ra h6lAU6aou2FISTN7h552B8iEnGbSIx2SX8iNeQzSJBFg7Em0n51wBuEU/2YsvhMr1ofI 25sgpyyfxjGyxkWxDtjh1EauiLABhL3v3Cl7O3dzi8A9q61CiFtKd2FdsuwXl4xrNh2S sGxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Xf2/5TI3"; 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 h13si17981042ilc.131.2021.08.24.09.18.53; Tue, 24 Aug 2021 09:19:05 -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="Xf2/5TI3"; 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 S231296AbhHXQSw (ORCPT + 99 others); Tue, 24 Aug 2021 12:18:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:53756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230465AbhHXQSv (ORCPT ); Tue, 24 Aug 2021 12:18:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 43756610A3; Tue, 24 Aug 2021 16:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629821887; bh=BDlMQu45ZqDbJNs8wpBo7h9vi71+LyNyrpawT/E6PIY=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=Xf2/5TI3Njr4zvViw5ydr4E55iYT1FHPGYtCCAPxYhjAws82Cr8Sf4YDd/s+NY/Bh tKHi2V4+QO5VZiDkIi47l3gJT1WyDX0OHknJqc/S+pOqECz/udMdNUJNgJz3UZGCAW lvFVPPw21rFotw/dUG3Zs3ym18o75DHIpwSw+sxhJATBUnlJtfCLjWWFFQU7iLG9WB 8vPm3bIIohODS3Fw9kPK+Tv8hYDpAfzuzhIjn8ltUOoU5AD+jppSxGNweJROjHdXG/ BhtfNbJu9rMu77LvT2ss12hJK60Tqe1IZ3br+ib6MGsC9/xuYxh4tdwfViXtTW3ceN UGJRZe0H2hqdQ== References: <20210823184449.2796184-1-Nehal-Bakulchandra.shah@amd.com> <20210823184449.2796184-3-Nehal-Bakulchandra.shah@amd.com> <87pmu36ypp.fsf@kernel.org> <1d9ecba4-d180-2193-66a3-3812759e1916@amd.com> User-agent: mu4e 1.6.4; emacs 27.2 From: Felipe Balbi To: "Shah, Nehal-bakulchandra" 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 19:17:46 +0300 In-reply-to: <1d9ecba4-d180-2193-66a3-3812759e1916@amd.com> Message-ID: <87czq27r5w.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "Shah, Nehal-bakulchandra" writes: > Hi > On 8/24/2021 1:49 PM, Felipe Balbi wrote: >> 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? >> > Our customer platform is not completely capable of OTG i.e with type C > controller it does not have PD to support role switching. Hence, they > have script which triggers the role switch based on ACPI/EC interrupt. sounds like some generalized version of this text should be added to commit log. -- balbi