Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3072518ybt; Mon, 29 Jun 2020 14:34:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxGNz82dOT8zwS2bEKBqewml4NdaCX/pH65b2ZpWa9rU1Uh+2flAfWaRiecjZua4Jz0yK+ X-Received: by 2002:a17:906:d78f:: with SMTP id pj15mr16418199ejb.283.1593466472142; Mon, 29 Jun 2020 14:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593466472; cv=none; d=google.com; s=arc-20160816; b=YSMy2ZRnxBJ1/MLMQ1kn8nlLzyujdbhPnXWKuWmqAzvMpeFPiaSZXzJWSnnPoyHHF7 8hqXPPnbQvZnFnYbKffxXKNkV/QzStAL5cdWBqF1QZ1UgnI/aohRs1ASMonJNyglbu8x sREpiCC9rXnV3nrELrOiBrYWY9AmZIPk0wMDsOk634wJPmUB5kUQTslYTQA1kSoBt3cs 7qu8eEYaXux0t0fc56CWYD5phnbQWB0T2lV5X24Sn+t6OTqBDVHobayk+mJYVmX0mJOo RMTTzUYeQWRp8YqvWi7SLUe4j/78guDps74Ky9ncEIsDj91fBKut78a/aaoIek+FU6d1 KRDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SCjVJOVtRVPQCLPSQ9OsMuQsY0n16YOAqBFw43FSFlU=; b=FlbeSbjQukGe3uw8FVuBDAr22h/WjDFzBGGgYcfRKT1/n5ixHrNyPAqBoTEsIIFkWp H1vXw+z7a4f6Bd7Mr2J6tWDiG1mVGYjXGHZ/zmfYPWAxw1/fKU2EGorDiIs8S5DDd7pf dYBwZ/g/S1fgAnWbmyeGrW7EmrDlSexc7cmEvySNM/HRdS6YrfRAmvdtPLYJlAP6K3Nq zpHvtiqJ8jwTEUjiF9t9RnN33v/SHmOq6YsYpp/msNWGUBWbldj3yx1/Jfd1+BeBu3PT TmH6W7UkOMOTLQPU5GgFZurvDhigXtnD2zC7JMxjs5AowcAEsCX3DBhGRU+VgdGgg/0C P0iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XpeHWz9E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q28si420005edw.196.2020.06.29.14.34.09; Mon, 29 Jun 2020 14:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XpeHWz9E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726834AbgF2Vcl (ORCPT + 99 others); Mon, 29 Jun 2020 17:32:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:60600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728652AbgF2SlD (ORCPT ); Mon, 29 Jun 2020 14:41:03 -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 3880C23C92; Mon, 29 Jun 2020 11:43:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593431020; bh=Uoq248fVFUS7nUmxb0KXFHCYIbklwNYP4+WvgbTtC1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XpeHWz9EqU044sGwnG7+DdW/u7FkYkft+eJigTVeZK0S7erx+eQJm3cTif2Jnqubr JZNXSHPfFZsaoN1WacMh0LsuISkXsGW8rvwjy/6rlvPQm2EiSCuT1JbKk1RXhlraRj fSNWAmxvj/yNBQp9VsB8r5nmHK1PVohkw3clDgP4= Date: Mon, 29 Jun 2020 13:43:15 +0200 From: Greg KH To: Pawel Laszczak Cc: "robh+dt@kernel.org" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "balbi@kernel.org" , "devicetree@vger.kernel.org" , "dan.carpenter@oracle.com" , "ben.dooks@codethink.co.uk" , "colin.king@canonical.com" , "rogerq@ti.com" , "peter.chen@nxp.com" , "weiyongjun1@huawei.com" , Jayshri Dajiram Pawar , "kurahul@cadene.com" , Sanket Parmar Subject: Re: [PATCH RFC 2/5] usb:cdns3: Add pci to platform driver wrapper Message-ID: <20200629114315.GA121549@kroah.com> References: <20200626045450.10205-1-pawell@cadence.com> <20200626045450.10205-3-pawell@cadence.com> <20200626134344.GA4030531@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 29, 2020 at 11:35:32AM +0000, Pawel Laszczak wrote: > > > > >On Fri, Jun 26, 2020 at 06:54:47AM +0200, Pawel Laszczak wrote: > >> Patch adds PCI specific glue driver that creates and registers in-system > >> cdns-usbssp platform device. > > > >Ick, no. > > > >Platform devices are ONLY to be used for when you have a real platform > >device. If your device is a PCI device, use that. Don't try to be cute > >and make a platform device when you don't have one please. > > > >> Thanks to that we will be able to use > >> the cdns-usbssp platform driver for USBSS-DEV controller > >> build on PCI board. > > > >No, fix up that driver to not care about it being a platform device, > >make it just accept any type of 'struct device'. > > > Ok, I will remove it form this driver but probably in a few months I will have to add > such support. For a real platform device, that's fine, but that is not what you are doing here. thanks, greg k-h