Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5411174ybi; Tue, 4 Jun 2019 06:20:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxMhuKDlNlI17GMKxUIOGoJSuzsshbtyT2wb0ttLgmgGiGRZH0zCsOq/zjSD4yuK72cH0yT X-Received: by 2002:a65:64d9:: with SMTP id t25mr35042916pgv.130.1559654456811; Tue, 04 Jun 2019 06:20:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559654456; cv=none; d=google.com; s=arc-20160816; b=Ei3aEAviiGz4Xt/EfsCaY5dOxmUPrnMs6slgSf90hBrvSA/PfxozYuhTEBTupl1jSb 6jKj3z77MQNbBehaoPlhHMFgYT5kzH/wWCMimsWSQlrZGhv7b/vL6MAFgH/OVatZgIVq MXFFnvEy8N3CjKjwk2cHfadIhy8IjQMr6wjzN9UxHZqZZpcXTKA5TY77rCf7/gyWPvS6 cK1K8immZWCYalJpEkR8qnJJyfmI/avUbVJJTrzTN+PVTTZ71Vng43biB0xfi1QG/poF OexEt4NBQrcY7BQX4SG5nqwg4EFay440ZvrPjrcTXip0ebHIpDAoX7uBW8TCYRQEcwPM YbLQ== 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=La+w9eiN7ZRlPnLMbQ98Jw/RzTu0yATS3soqxC7Yjd8=; b=KO7QPVL3g6R0blA5rTNDPDPFnROf5xoaoLb7keG/reapyQHkmoiClXW5srlq0L+AZu sO2ABsauvZVvt1l8uW28hAbTNkhm/mVL6o27F+54gbuNnuIBv14U52FOOum0wd6XAo0Q V4NWjB7sOHP+LYdEqkJUcgct9ofX4XQau1Xe5HjDeupWvJbVt2yu13k8AzFhaHnhERwv 0AOZmoTNoeKmwa7io6fx5KDm4ISwMjPxh+QwwxsHoCU2e2iEq56HrgKADNZ6th9bA/R+ huZ7eVC3nWnklNokD7kutJXDb4w226chC3Qs++djOHHrE957EN2TfXa7rmBeqRffUk3k eeJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ne0yes6l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13si22538482pgp.478.2019.06.04.06.20.39; Tue, 04 Jun 2019 06:20:56 -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=Ne0yes6l; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727434AbfFDNSw (ORCPT + 99 others); Tue, 4 Jun 2019 09:18:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:56650 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbfFDNSu (ORCPT ); Tue, 4 Jun 2019 09:18:50 -0400 Received: from localhost (173-25-83-245.client.mchsi.com [173.25.83.245]) (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 8B3242199C; Tue, 4 Jun 2019 13:18:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559654329; bh=kstaWkEOjz4sGnvduRYtac82iKRZqlwD3wYOfYdZAJU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ne0yes6lGitXgq3FdEvA/6cW2YR77DufQi52Gox4dH+56J4CFagViIAsuRlw+SY1h GeQJt2hA7XSzmQP1p1M+2CIZZKq/BL7Y+B9v74X6DxRsjFb3vBQaL3elhp51Wu0q/L /lWNsSEXnx/Kduvzcs5X43uAwHfOAN0pyqHu50Vo= Date: Tue, 4 Jun 2019 08:18:48 -0500 From: Bjorn Helgaas To: Ley Foon Tan Cc: Lorenzo Pieralisi , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, lftan.linux@gmail.com Subject: Re: [PATCH] PCI: altera: Allow building as module Message-ID: <20190604131848.GA40122@google.com> References: <1556081835-12921-1-git-send-email-ley.foon.tan@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1556081835-12921-1-git-send-email-ley.foon.tan@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 12:57:14PM +0800, Ley Foon Tan wrote: > Altera PCIe Rootport IP is a soft IP and is only available after > FPGA image is programmed. > > Make driver modulable to support use case FPGA image is programmed > after kernel is booted. User proram FPGA image in kernel then only load > PCIe driver module. I'm not objecting to these patches, but help me understand how this works. The "usual" scenario is that if a driver is loaded before a matching device is available, i.e., either the driver is built statically or it is loaded before a device is hot-added, the event of the device being available causes the driver's probe method to be called. This seems to be a more manual process of programming the FPGA which results in a new "altera-pcie" platform device. And then apparently you need to load the appropriate module by hand? Is there no "hot-add" type of event for this platform device that automatically looks for the driver? Bjorn