Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1982790rwb; Sat, 24 Sep 2022 00:25:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4c9DAuaCi2jSp2SjhrAZaQ80PghUv8sGG+0wMBGLWeyDhS76Zxm5wln9VxN1EJRizISHGl X-Received: by 2002:a05:6a00:234b:b0:545:fec9:abca with SMTP id j11-20020a056a00234b00b00545fec9abcamr13031316pfj.14.1664004317540; Sat, 24 Sep 2022 00:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664004317; cv=none; d=google.com; s=arc-20160816; b=i7MY+oUt8v+nhhs02+6jUCXnnvPhId5DNTE2FCo+MQYMUkcCLHRHw6N1UwKl+Re99b QqNeJPgKnf4UgBjH8AuxptPY+1BslhO905wVwZtSnJpxa4OZV9G3ZD0LU/eEuMQKI6II rt8dM6Vp87T+EMTtPtEEy4ghL+ZGGwpYx6xPOzVEdG0xgO8JivA93Fegseo1Wc7ynEO/ MMu6hRCzGSTSdlw2sh5FiOvGPuvCEFojDM2BQqAhTzNxGMfLnsbcjysp6ILqT5mMmbKU f64tNXahT49tsurv4ghAuiGgnR/gq1te09toe6ymOZFJV7yAkEmTP5mcoyJ0Tov/15yg NU5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=1hQXfWX/iVB5VnRQE3EKtRtSRPHuVgRk1wQ4mW3xh3M=; b=g59ybQ7quOq7OlSkANF4rW1uqkJCKsCKOqJCxN6FZ8kWg6EATR85PLwh04TqMfJAiV 9QGTiXBMc521XP2U0SPENiGFFM+A5tVLT8hhkDQig8b40P+XuEckTKGIXGum6I8Ol4Mo 2RkWIKT+z1Bj1p8iFu0Y/WbuqYxVk7CZZ5InU7tHCllnNSZFSC9iY+60iqRHfGM3U+vP XZDiWlHspkwVdmkBNYDodwA3cOJcocoQk4I4z4wruu862LdeKbhKY4IAActKyqZd/igi OvBo5DsDJj7UdDL44AhuXo7aYytNSDbu5Y+rq2/13/4Nr9RY/1gijPT922tNknm5MZS/ JRRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sq9ekBFl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j13-20020a170903024d00b001781ea8914csi6015648plh.452.2022.09.24.00.24.59; Sat, 24 Sep 2022 00:25:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Sq9ekBFl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233405AbiIXHRY (ORCPT + 99 others); Sat, 24 Sep 2022 03:17:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233310AbiIXHRW (ORCPT ); Sat, 24 Sep 2022 03:17:22 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA7FE138F3D; Sat, 24 Sep 2022 00:17:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 60A76B80DAF; Sat, 24 Sep 2022 07:17:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E0ACC433C1; Sat, 24 Sep 2022 07:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664003839; bh=OofynfKNUNtBce3tQD8sgtjcGFvwIJCOJYj5t820y3k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Sq9ekBFljOM8H2FSvks7FSE9Ybg8dzRTyD3Su72fXv/5ohNZKE2txBPUbdim/DRC1 Cn1oQxKq1rgiYEufvWKgZgaZz53LJFtQtImRYfhCLz4Nqxd4TIEwb3YaWLUb3EGOKd kIPoEK0tdTfMvrMoOq+t/W09WHt4SYKr56JwHb3ixYgskmyDbmAS9ykPEYAzWoaiQ9 cBQ3yJ2hAkXX3kjL8AgrBTktujm7vqhJQlf3rlpckiEBQX+8dyxxEZo55IHL+lFcab Is/bLkVGTiaHz8mpoHBXjLvlECVPpJ5Iiq0vIAeLPKMzUWTXiPX6dwePzNsBhtgui1 0lC/kiXv50i0g== Date: Sat, 24 Sep 2022 12:47:15 +0530 From: Vinod Koul To: Haotien Hsu Cc: p.zabel@pengutronix.de, jckuo@nvidia.com, kishon@ti.com, thierry.reding@gmail.com, jonathanh@nvidia.com, linux-phy@lists.infradead.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Wayne Chang Subject: Re: [PATCH] phy: tegra: xusb: Enable usb role switch attribute Message-ID: References: <20220921112500.798282-1-haotienh@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220921112500.798282-1-haotienh@nvidia.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21-09-22, 19:25, Haotien Hsu wrote: > From: Wayne Chang > > This patch enables the usb-role-switch atrribute > to have the user-space check current device role > of otg cability ports typo cability You can use 72 chars for changelog rather than limiting at 50chars :-( > > Signed-off-by: Wayne Chang > Signed-off-by: Haotien Hsu > --- > drivers/phy/tegra/xusb.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c > index aa5237eacd29..220ab7719ade 100644 > --- a/drivers/phy/tegra/xusb.c > +++ b/drivers/phy/tegra/xusb.c > @@ -656,6 +656,7 @@ static int tegra_xusb_setup_usb_role_switch(struct tegra_xusb_port *port) > struct usb_role_switch_desc role_sx_desc = { > .fwnode = dev_fwnode(&port->dev), > .set = tegra_xusb_role_sw_set, > + .allow_userspace_control = true, > }; > int err = 0; > > -- > 2.25.1 -- ~Vinod