Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3658029rwb; Fri, 30 Sep 2022 06:42:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78r+XAeHy7ZPHjP9a28Vo1iSDARzSNjoDvUWTAheBNeYQAW7pvbxFliWBD2eP9y6hRVSZ+ X-Received: by 2002:a17:907:2d8e:b0:783:8d26:645 with SMTP id gt14-20020a1709072d8e00b007838d260645mr6183479ejc.535.1664545359920; Fri, 30 Sep 2022 06:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664545359; cv=none; d=google.com; s=arc-20160816; b=AQW3b5id0IFk+57M1zcVp/Koc/n5Ilzz9fYIs9R+1zD8MIQrLy4xXhawINjLTX3eY0 C5XBDaz5oVwCNKmNvIl2GtLBJQLM1h5swYWmjh/2vonDFK4Swm+4n/QvB7+QMYw0+8Os sBNzrQmcu+v9C/7Wj+jIj/rtq+gNCrIeFVyLLQRcoSA7PafBcXJ3wioGRzDj+fSJnu2X nNTKnQmnpcGthW008jk0bWhex3KMy0CqR2Cy44NlGJ+v0tsAd0IK5fEMkpq4CxoQA4gu o5MmwvFhsNHuZkGGEmb6iHQT3TCEF2ORq/dhCvEmElDJhIFGwLpZSnIYe0sWNMULT964 OIMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature:dkim-signature; bh=xjbSbduucevkzQ7gYt/VOMBEvrNsn6UzpmO29QP+wkw=; b=DIKbuUNKtZ9dN8yepEnwsAhysepaLFwfU1tRp9+efUE/7rMjI71NSXxBisNO5HwjAj NWQVKiuci9CnMXrKCkgZ1me+vckPkJ9Q0odyqh7yuln7uwjeIRERsbgu0XFypWzE8T9Q BbXVFGS0hPYgGYTyXIOxgHojCPzNsuv/5leaxz3KRlNpmeJM3Ziaei8w8bVNbexkHcV4 s+Go0plGUb/jCKasyGaiQRuo2GQ7vxgXbfsE6VUJxB+8FrsSILmJ/cvSOln7y9o0LARF alLiuG/eJLzNoLXmpWuD+oen5q0SPi70iBSRtVyu1HtZCKZtKbMB/1inF0/s4swXCZwj QyKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zJoYvgHf; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o24-20020a056402039800b0043e1d52fd9fsi1852848edv.594.2022.09.30.06.42.13; Fri, 30 Sep 2022 06:42:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zJoYvgHf; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbiI3NYH (ORCPT + 99 others); Fri, 30 Sep 2022 09:24:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbiI3NYF (ORCPT ); Fri, 30 Sep 2022 09:24:05 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E97E18C018; Fri, 30 Sep 2022 06:24:03 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 44DA11F8B9; Fri, 30 Sep 2022 13:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664544242; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xjbSbduucevkzQ7gYt/VOMBEvrNsn6UzpmO29QP+wkw=; b=zJoYvgHf1iOzdZBrYAAj24RrE0i6S0lZ9wS35tJWDILpwEePzEQoTK3EyVXha0mnf6okmg 0S08u992lQuOdd+hli/Ykpt7bkJTgBTRTqa4CJnpQ22DX1SPEmY8Kqc8EYtOJ4x+TXpOpq t6udyNw00squOzPGADtAKQO2+VyUsJo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664544242; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xjbSbduucevkzQ7gYt/VOMBEvrNsn6UzpmO29QP+wkw=; b=H3XeUjbjQ89nRozjBdrCO8zn9yAcpETmozCTCHVwK6cTbMQ4mpqtvHaTJckBV+sINpsrzi ctrjzycwLl2DJkBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1821513776; Fri, 30 Sep 2022 13:24:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id J+yLA/LtNmO1PwAAMHmgww (envelope-from ); Fri, 30 Sep 2022 13:24:02 +0000 Date: Fri, 30 Sep 2022 15:24:00 +0200 From: Jean Delvare To: Mani Milani Cc: LKML , linux-i2c@vger.kernel.org Subject: Re: [PATCH] i2c: i801: Prefer async probe Message-ID: <20220930152400.610987c7@endymion.delvare> In-Reply-To: <20220826074430.1333272-1-mani@chromium.org> References: <20220826074430.1333272-1-mani@chromium.org> Organization: SUSE Linux X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Aug 2022 17:44:30 +1000, Mani Milani wrote: > This i801 driver probe can take more than ~190ms in some devices, since > the "i2c_register_spd()" call was added inside > "i801_probe_optional_slaves()". > > Prefer async probe so that other drivers can be probed and boot can > continue in parallel while this driver loads, to reduce boot time. There is > no reason to block other drivers from probing while this driver is > loading. > > Signed-off-by: Mani Milani > --- > > drivers/i2c/busses/i2c-i801.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c > index a176296f4fff..e06509edc5f3 100644 > --- a/drivers/i2c/busses/i2c-i801.c > +++ b/drivers/i2c/busses/i2c-i801.c > @@ -1838,6 +1838,7 @@ static struct pci_driver i801_driver = { > .shutdown = i801_shutdown, > .driver = { > .pm = &i801_pm_ops, > + .probe_type = PROBE_PREFER_ASYNCHRONOUS, > }, > }; > Reviewed-by: Jean Delvare -- Jean Delvare SUSE L3 Support