Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp511091pxa; Tue, 4 Aug 2020 10:48:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNE5cUzwooQksyT+ggC3Agh+k2PeFOtDf3rUghLLfOdZhmRaydLgmC57C2b27SEjVqJWwL X-Received: by 2002:aa7:c395:: with SMTP id k21mr22322430edq.386.1596563285709; Tue, 04 Aug 2020 10:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596563285; cv=none; d=google.com; s=arc-20160816; b=iHNtAn4QoKSd+h5X/Y03Mq3tf7vref3QmG5XX/7XHHbVB8LrnpI7qAVJbcnbEW/iZc sZZ1xlqb5BnjFAfPPhLDizBLPne/xQxtz3sHShUTgG8P7TFcXiTY7msfbq8v+uJjk/CA BBR5qm9DQZzXEwlK7crxhevkyyfyvn0mijBdxfGFzE6c9NsJPidFaxC/36SPeWz7TJuF Eu1Kq7Ha1rUmM/2R0s11DPo0Fd+dJz7pRX2Tt2BSSMWJ/1kSL2UGV6SeAGFGQEF07ySC 1ew1XH72HS5Ocooo7P+LxyZhBawTkHE7EADOhaOMA9CZ0VVmDSkCH6cQiwy0AlmdeY+3 ZRMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9BqSl7wUw+Tmy5AorEagl4sekRhDwxdT5n+KH7p5fts=; b=Q2U/3ZCR6GVkhVOX1UKG6aGXky9ioPKh1x3xLnWpgRkgWuCabeI9HV1AqGxnKGq8Xf JuK5+LRPmSEKVuDoLUk69KYqIYNfyNNhpcCGKFjUGl+zBTIXNeGBRQSIoQr0/sH/fWfX 5Epxwhz6afvT2faJzh4mTBt04vkpIhLThUpUiJEf6bhWmjLdt55p6VfEaSLO9gaDH0Ab hh6iwzeO77v3FdheqNb8D5Y39t0OCPIAvu+vKDb2oFsx9x9Le273u2FJo/lnxJsl5ARe TkroozYe3EEeHNysHWiTjZrp1P6Rr8S3WFIb0aizeBqUFY1dl6ZZPc8FETKCban7C6El 5r5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="IC0B/Ex8"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q5si13238613ejz.248.2020.08.04.10.47.41; Tue, 04 Aug 2020 10:48:05 -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=@gmail.com header.s=20161025 header.b="IC0B/Ex8"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730080AbgHDRrd (ORCPT + 99 others); Tue, 4 Aug 2020 13:47:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729197AbgHDRrc (ORCPT ); Tue, 4 Aug 2020 13:47:32 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 797A1C06174A; Tue, 4 Aug 2020 10:47:32 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id s16so29334557ljc.8; Tue, 04 Aug 2020 10:47:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9BqSl7wUw+Tmy5AorEagl4sekRhDwxdT5n+KH7p5fts=; b=IC0B/Ex8cP8+r/xNTELDlSBrriR74xRxy8P6+iaDtJOYf9Gjpiiu/8M/J/Z+gLvZSr wYC4JBiqqR0hIaBY6qDX8XkKq6kYhQQy8Yvav01nphPXG3gEchse+sBl0f7j0RCTA3Q4 xPIjnmb/xU8iqTmTeZSC8XfdZKYyGGWhrNye/c+S7o5Yz8qOUtvMmWjJHtyK0Ch0fUvV e+lLrBWhc79lnxEiVXUOwBShsQsCzhoVZDRHOFcIkesUEZbJlf9jVLRbyJKudQU+rzn9 es6O+wSRj7+w3+puvyc0T5OOdE7svVJksG8TvdigstyzC00ka3vRCte/k9hveBXvT8ZG iU8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9BqSl7wUw+Tmy5AorEagl4sekRhDwxdT5n+KH7p5fts=; b=ir5apXq9i/+3WA+kNNfZLnPPCwGqosjwl53J83NMBBJgBbXoEKqqmWvoEPnlxHQun4 UqPY6cO4YGRIT3g39zjIWzjasxdLRYSAPa6APhydcgJQoEjH2R8uvU1g0crm52PLIlhf musjvRo1bw4YJYSEajRr6uEaF2XAJ9mNRNlXQccWVNcMlM8CEqXIKhe8BUI8s1vKMiXG Zk2Ls5hIfnFbF0s8cAVzXQf7aN6yxHhEmWV0ol1hUAIYREatHu2Hb4Y+acaLGpzitn4T h4hjGYbEeRJ8Kld/G9yS59n8O7cRPmYkMyUMBl4MbInm+Cc4w6oa4MDsqKYlKTcFSUmK W4pw== X-Gm-Message-State: AOAM530bQ0yYfjlJtvk7kOX0cmzafDXeYoQPxKJ+2MZVRCkdYJUkxWE6 fwp8VEtCmfC+DLQmlGfTwM4cHXUFNujgKBerNkQ= X-Received: by 2002:a2e:8816:: with SMTP id x22mr11562569ljh.304.1596563250791; Tue, 04 Aug 2020 10:47:30 -0700 (PDT) MIME-Version: 1.0 References: <1595792274-28580-1-git-send-email-ilial@codeaurora.org> <20200726194528.GC1661457@lunn.ch> <20200727.103233.2024296985848607297.davem@davemloft.net> In-Reply-To: <20200727.103233.2024296985848607297.davem@davemloft.net> From: Ilia Lin Date: Tue, 4 Aug 2020 20:47:18 +0300 Message-ID: Subject: Re: [PATCH] net: dev: Add API to check net_dev readiness To: David Miller Cc: andrew@lunn.ch, ilial@codeaurora.org, kuba@kernel.org, jiri@mellanox.com, edumazet@google.com, ap420073@gmail.com, xiyou.wangcong@gmail.com, maximmi@mellanox.com, Ilia Lin , netdev@vger.kernel.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew and David, Thank you for your comments! The client driver is still work in progress, but it can be seen here: https://source.codeaurora.org/quic/la/kernel/msm-4.19/tree/drivers/platform/msm/ipa/ipa_api.c#n3842 For HW performance reasons, it has to be in subsys_initcall. Here is the register_netdev call: https://source.codeaurora.org/quic/la/kernel/msm-4.19/tree/drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c#n2497 And it is going to be in the subsys_initcall as well. Thanks, Ilia On Mon, Jul 27, 2020 at 8:32 PM David Miller wrote: > > From: Andrew Lunn > Date: Sun, 26 Jul 2020 21:45:28 +0200 > > > I also have to wonder why a network device driver is being probed the > > subsys_initcall. > > This makes me wonder how this interface could even be useful. The > only way to fix the problem is to change when the device is probed, > which would mean changing which initcall it uses. So at run time, > this information can't do much.