Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7158115ybi; Mon, 22 Jul 2019 08:04:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzg8WURRisF0HwkCWZJdHIO7VMnVs5qrIPoC+GOvLJMsR1oC8apNTOQEAOMz76/BApCsBWf X-Received: by 2002:a17:90a:b903:: with SMTP id p3mr76375354pjr.79.1563807844783; Mon, 22 Jul 2019 08:04:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563807844; cv=none; d=google.com; s=arc-20160816; b=HsvuwrW3Y9HoMN/UCbJhAXGaPtn0sAL0ofcf8UKgcSgYEDDF4bbqFRMn8vUHFK4e9p nxXSzGYy/CTlU5BXlN48nvUfkJZ8VqqTVdBtmcGV+ECEX0aLFkIKywdssdejWT9wN90i a7ypx9s6sQHzHDuUvAb6tECC+7O1W7dtKbccrfBb5lv+Z0npOsu249gcFmpVOoyBdNh7 B/sRuw2UVXWq/vX2+Vk2eFNhKOPG14VmXR5EOzp7sPJSf7kaDZfO8hwIcDL3Rh39EFHj 0SPEubofRu7/NsWEyme9SuEGlAAZwZOd0YXRE9POFk9Mogxt/DsVbXeqMH/Wr7y/Hs3S fwCA== 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=MI4Afhc9bOW44ZtcDogRVCHNfLMIoHGUS+SuoJ4brR8=; b=Lvfvr0cdsjRUEPJeHRY0p7SVSsKZkaEREKUoOsIctJm+x2zV7LzXKrxzH0yoDZUobo +7KJa7iveli8YfZ8k/iE7J2+H7RObDHdZllaC1CzhLUu4ffDkak6GSuz/l9xx/ZkoTN2 amX/Au1OLK4oSxazLMLU0MaRbUPVgZVg5ZzB8uD2butJROGf8bFBDJZB21YaTtJWjj1I 8gzW8mOMlKeH/Xa7yF2rImKkJWmLi2OukMnaNct7cBVOzqBXOVrU8+zZvxMi4DbCEP/a S0yHLcjsBNmSiZ0eWR0UQiJsfvAabWsVY15ERBqLAw6uGT9KqpGGsiHT0gLdjFbQktC0 r59w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uv5zT+Eq; 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 w2si7848646plq.414.2019.07.22.08.03.49; Mon, 22 Jul 2019 08:04:04 -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=uv5zT+Eq; 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 S1729987AbfGVLso (ORCPT + 99 others); Mon, 22 Jul 2019 07:48:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:48334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728929AbfGVLsn (ORCPT ); Mon, 22 Jul 2019 07:48:43 -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 75ACC2184E; Mon, 22 Jul 2019 11:48:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563796122; bh=eykSHfnl91fm/zvBMeCc8yWb/8vQuZ0jAGDMw66izu0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uv5zT+EqBSp94cqvlDWja0OoZzX7VHMHStJ55fF9xDfUyJp5wkjCZHVt/lkYa8gbp 1jLNgfCbnnVlmS+Lgzptnb6354tj0wiH6Vj+PazxHCANwZ9C0Oq1O6yRJQiGiUAIjC e4As2VJxRuv8exrTj/unnYx3ytDLRzU6kR/8yiKE= Date: Mon, 22 Jul 2019 13:48:39 +0200 From: "gregkh@linuxfoundation.org" To: Pawel Laszczak Cc: Pavel Machek , "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: <20190722114839.GA10515@kroah.com> References: <1563733939-21214-1-git-send-email-pawell@cadence.com> <20190721190335.GA19831@xo-6d-61-c0.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 09:58:42AM +0000, Pawel Laszczak 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. thanks, greg k-h