Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp581851ybt; Fri, 26 Jun 2020 06:44:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw2/szkSIBDm6PTVvlx0/58ZInLmtyueJEb1/aXixQWCtziNvBdr5p4zpDyNF0bXbUoN4/ X-Received: by 2002:a17:906:7d9:: with SMTP id m25mr2547114ejc.25.1593179094049; Fri, 26 Jun 2020 06:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593179094; cv=none; d=google.com; s=arc-20160816; b=kEGSz018kl5PpaUnSawJ1CBYk9jfXQZYLXGUcOKGQF0AOcB5Kghsdn/UpZk5lXQMGM T8jwZDvZZv22YmX6BfaOBOcO35+6DnZ5oRvhWFaH+Aqyf6QjSkRaaXnaTHUvi4F6RkiY 0LnkaQIC+1HLZ8oU5dCv/Ue8L+vbLmhdCi5D8c5Msx2/jBvmJNwnKe5PuwqG1sFMuG/K oE8DtFsgIsjmGMQgwB4b+veOOHrs3wmgmAKzhzdyj7uzXRp61ireJ+K2WcH3MRt+GeyS lcNNn1Cv0+br2aL0rO0K0KjMSa0E3MFZlb4B0P/mK7XlTQ5N/MfaGbMIkUyT1hRA10HG awNg== 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=qIW4zHdrWYWID3ShdyTJXkUMNZa71bPtODigXPdZd9I=; b=Lf0qUkR64F7vfQnvNrSSiSgMwoxZO+Sn0Thc/qUb2g4nm4ItLhuAfsFFZP646bhvpF l+/9bnlxcE9T7+32csKD9h0ytg1mHQ+CiMpI+8kyRSyRr9txUqvA7BRtrjTLUW7OwB9E cPGC0XUw5lklhzIJ9XBmBcpzBtr+EhDQ9KRzc7FzfqGoCfxVH615nXM7j1qU3PmY9xba 3lumAc4XObkqiKN0JfC4r48KjlpGQKMO9nTYIr06e9aSyZOSn7mLnS7cJHgXqmZk+V2F LasIJgDlrdpoFBCp6uwzRLj4QkktNaQvexcg+WlGRtunmNMh4GwrFGTMwKkR+Q1XxEKd D7oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rrLUh2Ym; 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 lj13si6668303ejb.357.2020.06.26.06.44.30; Fri, 26 Jun 2020 06:44:54 -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=rrLUh2Ym; 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 S1728665AbgFZNnt (ORCPT + 99 others); Fri, 26 Jun 2020 09:43:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:39982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725864AbgFZNnt (ORCPT ); Fri, 26 Jun 2020 09:43:49 -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 AA69B20656; Fri, 26 Jun 2020 13:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593179029; bh=gaVWyq4+IVSLWllMUFqnDbLAUXdRuZKIN4lmZPsTZgw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rrLUh2Ym53eHVizZ0IDbQM/gCch3S7adJ8rKLLF1XNvslldix/AH6OmUpjU3Biqts 6eqg0o4NUrVLKj+DhTI0hl66ajOcfEOlakGPUZGtSf55r9EZgyC6CIGAcco58IzT+e 0LMTmznNhBeQBKWfrHns88X3u9jYZR+DwjErCBa4= Date: Fri, 26 Jun 2020 15:43:44 +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, jpawar@cadence.com, kurahul@cadene.com, sparmar@cadence.com Subject: Re: [PATCH RFC 2/5] usb:cdns3: Add pci to platform driver wrapper Message-ID: <20200626134344.GA4030531@kroah.com> References: <20200626045450.10205-1-pawell@cadence.com> <20200626045450.10205-3-pawell@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200626045450.10205-3-pawell@cadence.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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'. thanks, greg k-h