Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2385311rwb; Thu, 29 Sep 2022 09:31:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7bmmmmjoh2VXbztQ/n36LWRfVGEz9UvaAwCFj26dglvFrFvk1SQt2agbpLpl/rjp7LOT6l X-Received: by 2002:a17:907:6d08:b0:787:9027:cb8d with SMTP id sa8-20020a1709076d0800b007879027cb8dmr3494190ejc.396.1664469064137; Thu, 29 Sep 2022 09:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664469064; cv=none; d=google.com; s=arc-20160816; b=Ug8Tbt6tEXwiZPE2MZ2S9fFFN1fenkyDIq8lpQu3HT1iHYiPzoBDtAXfF2dTu6sPLA ud5B6/Gac0GGULGTzbe1cNoVpTWU+LhZk6jcUHiKDgawlNebmEBjxaV2wtYyR2fjZ4g3 JphmJ8Ka4KNdpzMEGweaUIVfzWj6EUh93+z5Ziv61horDOGWKFXQbCrlXVwJ8YpuXLdi J43ei3Ts/J0eEWWM6nUM3yOkgMO9hVnR7H8AXt35GZ2VPWjYq1Ju3TWMfJ4Y3XiX9JUv C2BHar4b0QDb8QPwk19W32dddyn5C0xMohg0JApf0OaGwj/2RwzMd3YVi/zwZoE4iUEL b5kQ== 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=XMX0opDW1weizrJ2O1PE0gj/yt969FsH/JBATNIMUIM=; b=QUzVBB5onB89uaWghXD1gfib9TAVBBcbYTAvhTWtf0pvDXDCmQzU6jpKVoM5AKQeWl 5OOt79ZwImJKraJO36UMq+q6XOIb3chKsYl8lDsllwsNlA01y7EObAQc5K8+LClkW1lm q8FpZtWjuuoNZFlfPCm2cQ76q3E03iakUQw0ENgWE0Roe7vbNWivONpJsyYUa+JjfSnz 6/BoR2y+8MZGXAU74DsisJfLXN7lfnpZBzNWReiTNzCAhQD3f5fRkHKcwMJcNY8EMZ5j 1UMPrNbPiYNCe9XWAbxycpiOLm1fqyy93NR5kTFOoR7ejQBjDzdktvWi0RqYsYeI5jLk hBuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qL3XVhT3; 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 a16-20020a1709064a5000b007269ef1872esi7071326ejv.897.2022.09.29.09.30.36; Thu, 29 Sep 2022 09:31:04 -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=qL3XVhT3; 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 S236037AbiI2PpV (ORCPT + 99 others); Thu, 29 Sep 2022 11:45:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235532AbiI2Poh (ORCPT ); Thu, 29 Sep 2022 11:44:37 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4396118B26; Thu, 29 Sep 2022 08:43:37 -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 677FD1F45B; Thu, 29 Sep 2022 15:43:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1664466216; 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=XMX0opDW1weizrJ2O1PE0gj/yt969FsH/JBATNIMUIM=; b=qL3XVhT3qb2PpQ780oQUXZjYNd+SR1BvcVGQIl2dhi0Xz5qBu9OhSRAnJ5OSC4/DTXlNdf y5CYBalwWexyq3Ay9zrB5aLgqJb6488qywATviAyfF0SKdYlLiH/GyYL3KWvYS2eJgrVwL AQw1EoGi4xHOJwTDyBxKW8hQFOHFDkk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1664466216; 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=XMX0opDW1weizrJ2O1PE0gj/yt969FsH/JBATNIMUIM=; b=624bqGxSV2ZnMhq1xqNdIAA0AgYXjety9CvDgT4tz1vxMz1JLIeiF5nyUJGZM6BXeIx2OH vVW3N6pYX5chr9Bw== 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 3182A1348E; Thu, 29 Sep 2022 15:43:36 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Ea+vCii9NWPXYwAAMHmgww (envelope-from ); Thu, 29 Sep 2022 15:43:36 +0000 Date: Thu, 29 Sep 2022 17:43:34 +0200 From: Jean Delvare To: Mani Milani Cc: LKML , linux-i2c@vger.kernel.org, Jarkko Nikula , Heiner Kallweit , Wolfram Sang Subject: Re: [PATCH] i2c: i801: Prefer async probe Message-ID: <20220929174334.44d3e6d9@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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Hi Mani, 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()". Is there anything special about this 190 ms value? > 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, > }, > }; > Seems reasonable. I can't foresee any problem that would occur from this change, and preliminary testing on my own workstation is OK. Jarkko, Heiner, Wolfram, can you think of any reason why we should NOT apply this change? Thanks, -- Jean Delvare SUSE L3 Support