Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2889611pxb; Tue, 24 Aug 2021 09:57:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyk9hP5VWn/YYbd1dFP+6HSK1trwNYNfWcAs8dsg94xZBn2230EdUfz6UZqZSjzx7M0zM5c X-Received: by 2002:a5e:d712:: with SMTP id v18mr31606264iom.65.1629824237215; Tue, 24 Aug 2021 09:57:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629824237; cv=none; d=google.com; s=arc-20160816; b=KF8+P1RN6KTFBceyXNcMU7nNn0R8vYzJrJq/EXNSiTY7MhdR3CpUwfC+EdyKpVnnUL SR3zQAZAata2O7VApsl0P/vTJQtvkyEArwmpTeT4mKR9YT1awNDraB+oY+++SHRvSYc9 ocafltP/3n0NAipmciDk3jk4tKb+PGZJGgEfPj9JXhwQSqBW5uz/iQh2+uV70T/l/Lf4 tiVwfLCypsc2XOYzY6FvOv7XtvBUyhZ08TclLGA+z+8pIrizgrzMlWpxA5ayeiTvuUqX oDJAi0UpUr4OG1r/V1gL+mjYWopGNIsTm/iJ4YqPFCEJ6YUMt8fbY2Q5k7oqmgehlpVI qlWw== 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=mNu1or7el6vB1dgYxqvGM1XP8P83OJ8S8Yn0tg2MVPY=; b=Qj1sEO0jT6ACAXVYRKRR3KFDdVJ2bSL5e+uzLQcFF2BlnGncCE3oDwT7vLPEhheJpp 1JvRGD4a5PPnMuJvThgwC+ExtWxd5pzViqjLPprk8btEW2XkRTM7h64/PdB5/mwTrHUE g6WvlhL9E3dsHLRKqLiCG2i8f0VUnUp7E+hubLLY7w9jjUoN2VzRuanwEt/Qhl70NSlx WUMwTbbKV0UjOeWq01IqfrXlVVnZ6xhdumbgxbhN66JLZxGaQWOTxklvs4dpKZYqPMEO a6Y8p1iPq/o9rBm7SXTKmtahRw2mYnAp5lUGDHWTVen0ymv579/7Oiya7XHKq88lDnGj M5Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SnE/VPqS"; 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 q23si4608036jav.89.2021.08.24.09.57.05; Tue, 24 Aug 2021 09:57:17 -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="SnE/VPqS"; 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 S232949AbhHXQzy (ORCPT + 99 others); Tue, 24 Aug 2021 12:55:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:38282 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbhHXQzy (ORCPT ); Tue, 24 Aug 2021 12:55:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 141F861183; Tue, 24 Aug 2021 16:54:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824109; bh=S3loidLLlu1xrh4xk6ck0Wtc3n7jz085PzeWqCBUG04=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=SnE/VPqSsIHaRPvZjktlP2kD2wgG+k5z1bfxXHcdHzy2xHM/ZuEsJw546F7NTebsC 5E2WN+E4yXDFZpA1LWaevIGcmM/M7liCmBqwqbtmUkFyQvFBxqx1s39QVH7Wjv6fvN OHmd/6mVqjwFuwCJ2jITtTgNvhmVR7oTqORL6eAWYcl6MnKSxdssCU2j9Vc2La84m7 v1eeTwgw5Q1nqIEFCTsIMX9OuzH8fhjtj4Hhe0iMr4NMc6sLy3XJRqpfkF+PVJu/Iw f8uzUz86x3DIk/cLHi7tXBL50BNHR5DtUZg9rmSjqFbMa0XZfLciFO/Xzfn4TB+3wP sSiTzVPo34gAA== 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> <87czq27r5w.fsf@kernel.org> <05c17f61-30db-6d10-d980-d3973dedfa5e@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:54:34 +0300 In-reply-to: <05c17f61-30db-6d10-d980-d3973dedfa5e@amd.com> Message-ID: <878s0q7pgp.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, "Shah, Nehal-bakulchandra" writes: > On 8/24/2021 9:47 PM, Felipe Balbi wrote: >> "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. >> > Sure i will resubmit this patch with this description should be ok? yup, sounds good. Thank you -- balbi