Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7022625ybi; Mon, 22 Jul 2019 05:52:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyfItqPXLLf5S8+dv5+6BxFYDihYmE/Ib6M1EXkiYUABaQAtjf1jJkB0M0LXiTX2cmHBPh X-Received: by 2002:a63:1d0e:: with SMTP id d14mr71262553pgd.324.1563799953837; Mon, 22 Jul 2019 05:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563799953; cv=none; d=google.com; s=arc-20160816; b=vAm/JtzcdzdWs5TUJfF2PkSK78K2pqYmyNxMBal9FUlSIGi/ehrP0Yg+GArK9YJFs4 sI+RSDmzly/bAYJS4e0nFwRFRRhYjhSYvGdY4x6jtXY+Rfl91LvjB4/RwF1FhadoA3nk zfxnFBcmV3LLyrFVl0VvS8NlM2tJ5hcQWMK7BONU50U/J+PzSt41bRGne46U9tNX2Sc3 bGO59POQ173tMVH1qzesduKFY+2klLrLROfwVWxltOZDH8qY5TwyHnfrSmvoMfk7vXIc CAwN1v1hRtq/Sb2fWOIP0quWPcwO1MMgmn+Ou9EyzJW7qRckkkHJbQS6rzp262Arlox7 b5vw== 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:dkim-signature; bh=flWBDH3hDYbIGIzn98VJhF9PDKsEVgGN8IW/Rpgdk4A=; b=fbsrRoA88XSflhPuBSCqJeZlopGwVRgPcvqGXowmAKp68I3oXy1gU0z9Aza2S8dlX0 2H5JtHzPkT7YyAgiJ06BKRWJZegxJdr7eEUQ2800rYhXzCykde3ARZd+mtTQ/SIpP4wo qE8zb8eFpq1Mk52/0WkQ2UhFtULollbzeHdW9iWu99XoDcP0lYqDTiyS+NjXaSd2NPkk Ianbm/22QT1yclN/+xcSI1ndMvlaFqf4eOdD97zQsUSd0yDO61x1wqRpmS/1wq537YoN usfOY/pxxWcYqqoVAVPcwPwY+11fnMUFE0Sb7R9qe1CwlIds71CwrtqIihp3VS/mOUmx FlTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="E/45y5ut"; 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 f2si9940582plt.386.2019.07.22.05.52.17; Mon, 22 Jul 2019 05:52:33 -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; dkim=pass header.i=@kernel.org header.s=default header.b="E/45y5ut"; 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 S1729266AbfGVMLX (ORCPT + 99 others); Mon, 22 Jul 2019 08:11:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:54330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728413AbfGVMLW (ORCPT ); Mon, 22 Jul 2019 08:11:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 096412190D; Mon, 22 Jul 2019 12:11:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563797481; bh=7/4GGkbSj/BIq0gPMtDTgby1bEClkS3rXbv3+CaxRj0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E/45y5utMHS76gj+/OZzr0orMa3o8x7cTZ/fsUoKlaM+CKlmpNv8OiNUk40QmXIql YNBt2DsE/pLGp2n1usNQV3Tz87lvNu8VOfuJ33ROfhSqYZlZhXXkttks4VI9mOgNTw H7tIQ9/ZuPZ96thOespCgXoaFUU9Pm7VeVxvpQNY= Date: Mon, 22 Jul 2019 14:11:18 +0200 From: "gregkh@linuxfoundation.org" To: Pavel Machek 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: <20190722121118.GA31543@kroah.com> References: <1563733939-21214-1-git-send-email-pawell@cadence.com> <20190721190335.GA19831@xo-6d-61-c0.localdomain> <20190722114839.GA10515@kroah.com> <20190722115644.GA12069@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190722115644.GA12069@amd> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 22, 2019 at 01:56:45PM +0200, Pavel Machek wrote: > Hi! > > > > >> This patch introduce new Cadence USBSS DRD driver to linux kernel. > > > >> > > > >> The Cadence USBSS DRD Controller is a highly configurable IP Core which > > > >> 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 and XHCI... > > > > > > > >Is that good idea? > > > > > > Yes driver allows selecting dr_mode by debugfs. Controller also support such functionality > > > so I don't understand why would it not be a good idea. > > > > > > I personally use this for testing but it can be used to limit controller functionality without > > > recompiling kernel. > > > > debugfs is ONLY for debugging, never rely on it being enabled, or > > mounted, on a system in order to have any normal operation happen. > > > > 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. Then it needs to get out of debugfs, as again, that can not be used for any normal end-user operation. thanks, greg k-h