Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp548496pxa; Tue, 4 Aug 2020 11:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTGyoB7qPplnRdjGrTAeeScJMo0rkxXfpwz1YtySZ4/+yuiR81oOb+xh1Jy51kkAWFxp/W X-Received: by 2002:a17:906:4e14:: with SMTP id z20mr23711358eju.541.1596566627266; Tue, 04 Aug 2020 11:43:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596566627; cv=none; d=google.com; s=arc-20160816; b=PQIveS7824gGJ4faarBHbTQnKYpa4M9sRNPab+/HtU40mgGB/k5WV9HRbGnM9bZyba T6BHQz1pzRGNPW+0SdwmGueqXPmfnDdz1E9cnfDeKWl6WG8StWzQxxLdrQVjvyqQYpmP kZdLGJHU8jnzUpvTdueCKbJX7iVkJOZVBG5c2OMqWO9HZuaO7mqss0ZOXqnaU4wXBTnB ah0p/Dj/Ag7/9AEaiTmoWXXpDtZqukjzvnms4JcW6QcKWplV0hOs8s2dvOqCRKl9slys v2rey6/yik7LD5ILq5DhKm41YbhZtgV2xRA5Yr/nJWeZdKdc9bkT247DigYGVDs9s116 pRRQ== 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=9EzmIkMuzakqowCSyFUrCGg2U0sp2XWRCx4vPk/r3BQ=; b=AvBBkQJu8SBU0Fpui0koBY5mkU8X+UaRUT3FF3hbPtM0jrKTgz/3/rhuoQhjPJDv9B cUb3igbwCERVU5NIdyzLsdnK32gAaAGSmwwPVFxX8G5OO5YbSlZFxuDWtibQmrC/T89N V8f9ExzbeghNw/S2UwCXHpb652zTSNKbY+4MDkm//h7l/7Jy6E6HoLn9rAd3X0ebTsyb ilF8eWKE7Rqlc8/UTh16uqfek/NJurDVDoBAQZXs+Q4pJZq7GHGtNikCibc2ItuEGH19 GUzPO2ESMiDYbQxdIXWEfjGjpwx+4OPc1EiSFFhK8KtQrbYkWygc6k8SXpPmiqOYG0Ck 9b3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="jTp1n/IT"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l7si12625915eds.64.2020.08.04.11.43.24; Tue, 04 Aug 2020 11:43:47 -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=@kernel.org header.s=default header.b="jTp1n/IT"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727913AbgHDSmW (ORCPT + 99 others); Tue, 4 Aug 2020 14:42:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:58968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727812AbgHDSmV (ORCPT ); Tue, 4 Aug 2020 14:42:21 -0400 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5052922B42; Tue, 4 Aug 2020 18:42:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596566540; bh=LbRILdb+eW1GiqP4V+7QLShhSAFkXp6GT1VixGSGaAg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jTp1n/ITmWcNERjixocaNVXPVk1sDRErGs0EJIz5wzrz0cWT/IkvYWbTRRxwbVV9f j14ge84hByIKmaOwlHs9M/jqjlgbbQdJew6DEjx1m3+S8rV1w1BPg1RksKptNvYYQr ONQCZ0nocSWdtwPAmYs1LjMleW88ppSxcf+ZSAXQ= Received: by mail-lj1-f172.google.com with SMTP id s16so29523158ljc.8; Tue, 04 Aug 2020 11:42:20 -0700 (PDT) X-Gm-Message-State: AOAM5330Ql4LUbZObraNjBBX5TVMYom11g40lp5ydd9/cb91Ot/hmIX+ jzcnQhJ6AsLkWvpJUaSkF7ezZaIexS3GsjaJJrQ= X-Received: by 2002:a2e:8816:: with SMTP id x22mr11661719ljh.304.1596566538598; Tue, 04 Aug 2020 11:42:18 -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 21:42:06 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] net: dev: Add API to check net_dev readiness To: David Miller Cc: andrew@lunn.ch, 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.