Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp200584pxb; Wed, 25 Aug 2021 00:45:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbmbcDtCv1zblxwZk3bqbyrh0jNuE1wgzFMIqYufU7VJGaTn92EnOms19dVQC+gUM4JCWR X-Received: by 2002:a05:6402:d73:: with SMTP id ec51mr46738739edb.286.1629877556522; Wed, 25 Aug 2021 00:45:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629877556; cv=none; d=google.com; s=arc-20160816; b=ECTapGjNwj2og2UcjgO7umqalBYWon+NERL1MYA+Wtozk7BgI3ztaWUdPkkcP/O7Iq ZnD65e7HJ5RLN1nW5f4xokouW+MNwrxeq8VlgacSNUQl7C4xP35TMytcow+EewQ0SVYP yypgESCqpAT7HR/0prcrL714a6bdBgNt0dNlO6RcLAptt8BQ9Wiu2miaHIKqAsekEa2U vDaeI0QnTFTo4EYzo3cpvjpuJl2ryW0kwus0+/QUVGQ85wuwODIr7takBlVv5akm+a6q RAXay1kAuFvQaa9HS6geJ7dPJ4J4Yrfd5DuClnzi5KioeH5AnCYoTeQ33QlcHV5lFczo OsaA== 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=SMvPvxqN25/VHkFfagWqIFGxUUT7zeswCRxaeqL02XY=; b=SRexzbFD/wd31/XBSyGLSnNDSIwHaqGP2WU1mJiYTgSkT8j2fdPUvrOwlEv5tGKH4O 9+sU/UfzUCvjhDvA9CuuCOgAHloE5wdwLLBfsQ5p7giHhsSDytQnMErlWc2DYD/bKbNI YjzXk8MXth23qCuk7uGT2m+CshINS2GnaJMyPT7k3jANZqx999jy6DEZpxOTiDNMP50h 0ri9VamCoiOfNndyVcDN5dtD3k7/g4I6j1GgWhdvxDpVOzJyFp3NRSPyB1wsKpYGJt6v 2VB3HzG543C29Pesi/64NifER6xF0cwFTCEswLesAj574iLMgIxIVU+QJ7uTKHJrNReO qThA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NGpKUNQ6; 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 j15si20172991ejn.232.2021.08.25.00.45.32; Wed, 25 Aug 2021 00:45:56 -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=NGpKUNQ6; 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 S238703AbhHYHow (ORCPT + 99 others); Wed, 25 Aug 2021 03:44:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:40960 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235922AbhHYHou (ORCPT ); Wed, 25 Aug 2021 03:44:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 146596127B; Wed, 25 Aug 2021 07:44:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629877444; bh=wVU9GLKhq2p6ukezJvevgnRgWmpzPM5Lh6hx13awvCo=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=NGpKUNQ6oSgrgb1v2TMRw9Ddobcwpjz7nUAx0YJwoBAdEZQqgINe8XsKIN6JPXeVB ZdYqzG0qoTTpuBWB30J6+YfgPOwhhLXamWWF6HY96Oujq0UBhyBcNyRj2RyzAUOrnw VlYL7CarRbFVY/spLXsR3e1LY7fHHGA7rwicDIPcelou1HQmj1zIz0dLtJ42pnEGu9 ua36zxbo3e6Npz4ggYU6LZ7Uikp5oI5mZxCzgd2v05X4eR+ZJw8OlNW+X5W02hT47W 1WKOJTPfSr0C+WIxGTA5bXjVJoX0r6Wms2rFbHXhljFKW3viStjbdgNUQBrv5o8zCx cbafdrsD/jojA== References: <20210824192337.3100288-1-Nehal-Bakulchandra.shah@amd.com> <87ilzu5ap0.fsf@kernel.org> User-agent: mu4e 1.6.4; emacs 27.2 From: Felipe Balbi To: Heikki Krogerus Cc: Nehal Bakulchandra Shah , gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kun.liu2@amd.com, alexander.deucher@amd.com Subject: Re: [RESEND PATCH 2/2] usb: dwc3: pci add property to allow user space role switch Date: Wed, 25 Aug 2021 10:43:38 +0300 In-reply-to: Message-ID: <87zgt69dfj.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Heikki Krogerus writes: > On Wed, Aug 25, 2021 at 08:55:41AM +0300, Felipe Balbi wrote: >> >> Hi, >> >> 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 as customer platform is not >> > completely capable of OTG i.e. with type C controller it does not have PD >> > to support role switching. Hence, based ACPI/EC interrupt role switch is >> > triggered by the usemode script running in background. >> usermode ? > > Couldn't you capture that ACPI/EC interrupt in kernel? > >> > Signed-off-by: Nehal Bakulchandra Shah >> >> I'm okay with this, just wondering if we need to Document the property >> somewhere. >> >> @Heikki, is there a place to document these private properties that's >> not on DT binding document? > > The build-in properties are not documented separately. I've always > tried to supply DT bindings for all new properties I've proposed. > > In this case though, do we need the new property at all? Why not just > register a normal USB role switch on this platform? It can be either a > dummy role switch that only passes the user space input to dwc3, or, > perhaps ideally, it would also be a driver that captures that ACPI/EC > event/notification and then passes the information from it to dwc3. I like the actual driver responding to EC IRQ idea. -- balbi