Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7160303ybi; Mon, 22 Jul 2019 08:05:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsT93LHP4+jfOkKb1/iXQb2SyNDVkR87ijumSyZGkqYPHX93FbfrqzCKAT3MTxZt9atDBS X-Received: by 2002:a17:90a:ca11:: with SMTP id x17mr78256082pjt.107.1563807952848; Mon, 22 Jul 2019 08:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563807952; cv=none; d=google.com; s=arc-20160816; b=EYl9vHWgNW94ZCzh9TPh41McVUrcTk9haAGz5OTC6L07YyjXnjlugzS57deqz98quA lWgP2xjd/VfplAXys350Zocbj/JJS9xvgNxeuRDkbffyz1eqxurWjDhNfRCi+V9Z+tJn td7BKInmBgecolMRxBg4lQeDy3fOk2S2GQxviEANfGb/SK0f5mnGudMqon0GnKvJDcTn HPVmJ0U++MGPL7kjnoajE8fp45NmpLsxdIkKk7PMDcmeBGZ+3OO6SBq3VZiIpqqSaDCh qRX0AXdshlcHi165AbnrWVna1tCq7U4cF7hzR8lBaYvo/U3/P7gPyyyBka9BFiMvVGaq sO2w== 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=X2ghM8RIO5xIGmqAituIuFLhdIWICVXrAXUBnpULZ60=; b=nYrpNHbSPSw0j6owIl+iQp1Tcg1zl7z+FMjyST6S3O+0sOma0ShJT/zsKInkPPAsxj BhEh8YNnZLzwZeFX0VUN4X15VunjK3HsIxqyByy6xUT5GmJ5p5XL5ByoyuQtx5hta4uJ PVfHCzaW83K9siNyRhWOOk7/B3YEY6mr8SmLhGWBOMM5HMB6aRaR2v7GS21xAdVM/iyO iEexmowTcv6sJ5rFVv/qwK2NI+RG5oDGY2zQ/7tZTklOKPqO1jtTVco4PxpET2aqeV7y iRIFCVVjlzsUd3wHjrWYMKsIkx9ZIWS9LUVudX+z49rOlpYlrnj+QYfoF2brYUN+xM5S GQzg== 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 v99si12576114pjb.82.2019.07.22.08.05.37; Mon, 22 Jul 2019 08:05:52 -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 S1730093AbfGVL4u (ORCPT + 99 others); Mon, 22 Jul 2019 07:56:50 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:43020 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727507AbfGVL4t (ORCPT ); Mon, 22 Jul 2019 07:56:49 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 828CF80342; Mon, 22 Jul 2019 13:56:35 +0200 (CEST) Date: Mon, 22 Jul 2019 13:56:45 +0200 From: Pavel Machek To: "gregkh@linuxfoundation.org" Cc: Pawel Laszczak , "felipe.balbi@linux.intel.com" , "linux-usb@vger.kernel.org" , "rogerq@ti.com" , "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: <20190722115644.GA12069@amd> References: <1563733939-21214-1-git-send-email-pawell@cadence.com> <20190721190335.GA19831@xo-6d-61-c0.localdomain> <20190722114839.GA10515@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20190722114839.GA10515@kroah.com> 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 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > >> This patch introduce new Cadence USBSS DRD driver to linux kernel. > > >> > > >> The Cadence USBSS DRD Controller is a highly configurable IP Core wh= ich > > >> can be instantiated as Dual-Role Device (DRD), Peripheral Only and > > >> Host Only (XHCI)configurations. > > > > > >I see you are using debugfs to select between DRD, peripheral-onlyh an= d XHCI... > > > > > >Is that good idea? > >=20 > > Yes driver allows selecting dr_mode by debugfs. Controller also support= such functionality=20 > > so I don't understand why would it not be a good idea.=20 > >=20 > > I personally use this for testing but it can be used to limit controlle= r functionality without=20 > > recompiling kernel.=20 >=20 > debugfs is ONLY for debugging, never rely on it being enabled, or > mounted, on a system in order to have any normal operation happen. >=20 > So for testing, yes, this is fine. If this is going to be the normal > api/interface for how to control this driver, no, that is not acceptable > at all. It makes a lot of sense for end-user to toggle this... for example when he is lacking right cable for proper otg detection. As it is third driver offering this functionality, I believe we should stop treating it as debugging. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl01pHwACgkQMOfwapXb+vIDNQCgwTTLQIqZhxOPwF0uWn3pcLMd 9qQAnjloOlNoULIYu4F5WNb9967eMecO =BZoL -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--