Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp614530pxb; Wed, 18 Aug 2021 09:52:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwV5zzxHeQpzn094l6twgsVRBbGWGDymwb8TGWcGz4OqYrJXRFQRoHvllLpRK84m96sgMh+ X-Received: by 2002:a02:2243:: with SMTP id o64mr8926968jao.40.1629305532473; Wed, 18 Aug 2021 09:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629305532; cv=none; d=google.com; s=arc-20160816; b=W9pFYS4iTNOBhGC8zqWavoEujtHl9AgLzi3/rJ1kzHa+ednH9HovwcyGdfZZilm/4+ U/al26V5ufAts02G4/TYE0nACxLfGDPx4tjr5a3mkcM3VqedKUYUOLe4p7yD0VKh/4m9 QKJCXY2lv2R9Nz7dpBIDOk4m8U25CjTwcLK2fgpij5boFpcJrXpuGQQ4nUV5VwGjJKw4 GaZedDapZdj8FOJVwRw/mgKu1t4T8nZtOWc9a9I8yySr6NJgnbCjfti74jP/uPRyQ9+F oZHnhw2jRm6rkqKzPK6VxrigyOphYEgVcBMJOt1iAQj+TuBoFdTMK+wCakaOzYh1MtO0 b67Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4bweiOGJ/UZ7prWOWh9NCcg6i2KLmEQW96Hz669YQhQ=; b=xuhsM6BATqUeQFv1EA8psKYaYOH42AM0tRn8lKZLra3MVxJEgryKn8jsm41QbLnEHa RplEmdMOBy9leBDNUvqK2E7AnUVktce22XEQs8S+RRhjCrG2D5sTijKZTiPZoAWnvAWk dR0WUPwoPRjTowsYZUeUMn/rCv5OKoaaWffgruKOrchYBQojJ2F1GwqeNn3Mqb5xjuyh vRUKtifR/H8REboZCqcbdFRAiz323QFPKRSMCJKVR+nOukc6xBy80qtoQBtRTsQzsb0k Y5wF9i3BxbGkQNRdVbMJSsyzDrJ/iNuk/WGCu4PDAQBo2ght8v4NFmmY3fAs80ykfdxr aaJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1W66Yyss; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si123319jar.80.2021.08.18.09.52.00; Wed, 18 Aug 2021 09:52:12 -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=@linuxfoundation.org header.s=korg header.b=1W66Yyss; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231207AbhHRQua (ORCPT + 99 others); Wed, 18 Aug 2021 12:50:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:53466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229623AbhHRQu3 (ORCPT ); Wed, 18 Aug 2021 12:50:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8BF90610CB; Wed, 18 Aug 2021 16:49:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1629305394; bh=H+C5HRL1W26JYW1ePOo251FXVM78KF8792qIuWVToy4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1W66YysskpVj4mdgZhCaD6Mpek43TxCCguqy7OGT+p4z5oGVaNbvG9dF0nxIHpaVc QMPKOl+gPm50Yf6LNwkdkRyk8If8SeoiQw6f9fd/bk3SNg3pLfA8WaL40lsp0f3BPx YlmnQlkXuvysNUuCPbBNqA5QiGYwJjoGLdAZ1AaY= Date: Wed, 18 Aug 2021 18:49:51 +0200 From: Greg Kroah-Hartman To: Pierre-Louis Bossart Cc: Mark Brown , alsa-devel@alsa-project.org, "Rafael J . Wysocki" , tiwai@suse.de, linux-kernel@vger.kernel.org, liam.r.girdwood@linux.intel.com, vkoul@kernel.org, Geert Uytterhoeven , Jason Gunthorpe , Dan Williams , Andy Shevchenko , Christoph Hellwig Subject: Re: [RFC PATCH 1/2] driver core: export driver_deferred_probe_trigger() Message-ID: References: <20210817190057.255264-1-pierre-louis.bossart@linux.intel.com> <20210817190057.255264-2-pierre-louis.bossart@linux.intel.com> <20210818115736.GA4177@sirena.org.uk> <20210818134814.GF4177@sirena.org.uk> <14235b8d-d375-6e2d-cae9-33adf9c48120@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 18, 2021 at 10:53:07AM -0500, Pierre-Louis Bossart wrote: > > > > >> a) we have to use request_module() > > > > Wait, why? > > > > module loading is async, use auto-loading when the hardware/device is > > found and reported to userspace. Forcing a module to load by the kernel > > is not always wise as the module is not always present in the filesystem > > at that point in time at boot (think modules on the filesystem, not in > > the initramfs). > > > > Try fixing this issue and maybe it will resolve itself as you should be > > working async. > > It's been that way for a very long time (2015?) for HDAudio support, see > sound/pci/hda/hda_bind.c. It's my understanding that it was a conscious > design decision to use vendor-specific modules, if available, and > fallback to generic modules if the first pass failed. If it has been this way for so long, what has caused the sudden change to need to export this and call this function?