Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp723703ybl; Tue, 13 Aug 2019 01:25:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7shEP4QG7+VZjE98TQ3EG713eRJmEVKX/KvTO5x0K5rdYYwC1NVZ28F2cdHlrdxZhKAp4 X-Received: by 2002:a17:90a:2ec1:: with SMTP id h1mr1101179pjs.119.1565684705788; Tue, 13 Aug 2019 01:25:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565684705; cv=none; d=google.com; s=arc-20160816; b=H4CN9/pANh+zeEmmgUgubu633YJBg3SdkicHlaogrxtw/K8K07OA0f2/FZBAHYczD9 BXci/aj4pLaW2IUyg0DJTR5jZ4cbUvGyxspqo8ohTD+ifUJHSjdjhzOuqxhAY4isv3En Lq992paREs7QAhvTTBnIOhr8YNKaVESMvXZem1mndC/XzJA32aAkBK+VMaloHV71IJ44 d6oonp17MRoGDd+v2+qG3bc5Fz5cGPIvZKAL1OO0TkyaEa/qFMFDIffhygZeyk9scb6V +E66ABGgCVeOYg+DYlO9RjWZjpV3MXTvg+PWTxx7/XnoAGKrJr/zTJblq4i9i38P+uMJ jBkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uikKnA4m8tHKOre8vWKYxcWlGcKumldOZeVxd2WU+vI=; b=gG7mC601o5OMBk676EcXXG1+BRsVGpeMiKRKmf+VdSVTV8lGEkSAMClfeL8nFTKhXl Jyub0Iyqdaoz0PjkbVJMlpTBwMkpLaDSKQ/Qpyd+plSwdCESpl2TecmchNIWMnlnrAeW BkdhSAGMufYJXUeEI5mOkLJa9Alis8UdGKszOuNfsG29wCIqvt7PW0p0B8GTyXtByisk B4N5enxirf9XsrS1Lo0Okaj+WYFtvun/bITiPmRztXirFzvThbNkuDSZ6hgdmi5WsVVB /lKHPyFTjDtopi+BlIpCDSHQp97be7bqIh2gYNxPwoDVBMNmE7X6pu6oOaZ+QLrHltR4 go3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si11664756plr.158.2019.08.13.01.24.50; Tue, 13 Aug 2019 01:25:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728019AbfHMIWR (ORCPT + 99 others); Tue, 13 Aug 2019 04:22:17 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:44001 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727129AbfHMIWR (ORCPT ); Tue, 13 Aug 2019 04:22:17 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 8EC188053B; Tue, 13 Aug 2019 10:22:01 +0200 (CEST) Date: Tue, 13 Aug 2019 10:22:13 +0200 From: Pavel Machek To: Pawel Laszczak Cc: Roger Quadros , Pavel Machek , "gregkh@linuxfoundation.org" , "felipe.balbi@linux.intel.com" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jbergsagel@ti.com" , "nsekhar@ti.com" , "nm@ti.com" , Suresh Punnoose , Jayshri Dajiram Pawar , Rahul Kumar , Anil Joy Varughese Subject: Re: [PATCH v10 0/6] Introduced new Cadence USBSS DRD Driver. Message-ID: <20190813082213.GA9298@amd> References: <1563733939-21214-1-git-send-email-pawell@cadence.com> <20190721190335.GA19831@xo-6d-61-c0.localdomain> <20190722114839.GA10515@kroah.com> <20190722115644.GA12069@amd> <20190722210021.GA25235@amd> <93b4a702-227b-0410-a414-76873088ad72@ti.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > I think that I understand your concerns. My idea was not to expand the su= pported=20 > dr_mode. Rather I wanted to have possibility to limit this (only for test= ing).=20 >=20 > Eg.=20 > If cdns->dr_mode =3D USB_DR_MODE_OTG > then we can limit mode to HOST or DEVICE or DRD > if cdns->dr_mode =3D=3D USB_DR_MODE_HOST ||=20 > cdns->dr_mode =3D=3D USB_DR_MODE_PERIPHERAL)=20 > then driver can't change anything >=20 > It allows me for testing some functionality using only single board=20 > and even with lacking right cable for proper otg detection.=20 Yes, and it looks like people need this functionality in production, too, so it should be in sysfs (and not debugfs). If it means sysfs interface need to be extended to cover all the cases, so be it. Best regards, Pavel --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl1SczUACgkQMOfwapXb+vJaHwCgj0Z1ZJUsMMMCPML7HzUkrMP+ AAIAnRi/ojI3Y/dmV1HgjQJmSt62O69r =hZ0K -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--