Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2690294lqo; Tue, 14 May 2024 06:37:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtRcAwtzt9C8I7uwsReTrhvDa9r17HJKYjJAsS6QioEMQolqIOmwCl7rTa3CUWejSAR9OrLqIz1qwn/BnkJ5rov0O6AxqtFrKLeXD+Tw== X-Google-Smtp-Source: AGHT+IE+KG4rjDKNTrjzggvuq/KVnHnkw3tlT0Xh/EyNUiYRgD2ze1YVulbY3cRX3OPQAKZG/U0h X-Received: by 2002:a17:902:cecd:b0:1e2:a61e:47fa with SMTP id d9443c01a7336-1ef42f7306emr201785565ad.15.1715693858584; Tue, 14 May 2024 06:37:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715693858; cv=pass; d=google.com; s=arc-20160816; b=OsJ6/IjBF4EkY7Y8onxrjh5Be+VT3zg6XrLlDjkJRO3g0W2GYbEVvvlawjOOyRqa3E aRtKLNSm1PwAmaKczWhoaxctO96DA9L2dpQdt4e1exRjEo/1tSHragRWAfW3lFRTnfSR 788pgaUkvz9UyrQeRH4h1sOVMcd+00mQxxvMstt5JXMvoz/I+Hp0/P7VZRrtblBsUcWp in79sybJJRu8E1dAubRrIYX1SRkb3T3mVJI5h58DHV5uiT0+cFAtQ3rLQxhfhIWcskST B4IvkyBk/UU2HrvhgWsCNU0Ou1Uo+sy4nxV+zQ6pZgNbfccSO4CbfsULXsw+NSTHBXoJ KYxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=+d+x3xrqLLNvB0bbaPBE1svfJd8r+2gvH4Ec5dTMZ40=; fh=zKjgodKmg5jyErNx3V3s51+qasp22R0yyxlN0I3K6gc=; b=viIZc00lsGZQ8mSWOciJSgOBviiw4U6fqCvnf2VoBESaOIzMYfLk8AE0uAElEIgjud zRW+ZEWDtWsIguNciduY51Ap9mSZlJDnqwm8KqHAa9mP29Crnn9g6o36zVMwLb2Orm+h zeu68gUVexS01n4w2u0ehVgIvd+PLbiPLYYZuMks0IDkMsA9dU4eWJVnRzz5fcRXOSFp ZKQdUZg4XYadIy8kUZShuGxUJ+ROhIyOg3NnXtQYOFJ8sk1wRuFiyxFGXWQVYMQkEj+i KuFrBMW/6XXXWD2s0oW+Hv2HXHIS8aYz8SwfnaMGES0OwdS4c71J6QyQoJh0YRtugIWn Jhng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUoAI4CA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c133418si117650475ad.436.2024.05.14.06.37.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 06:37:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kUoAI4CA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7639-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7639-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 459F5B23BF5 for ; Tue, 14 May 2024 13:30:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FB861448E1; Tue, 14 May 2024 13:21:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kUoAI4CA" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 189D41448C0; Tue, 14 May 2024 13:21:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715692875; cv=none; b=P7G4DTQR1GNKQR9dthk+ZErjZ8emkSXi+D4xser/q76dQU+u/aaHyn+mwC3euMNq2hEmWMnimeLpqTwsce1a0Z3MqbIf5FufmH1+kfQ8zl5RYj3qTq+4SwpraT9auyWGDFkXGlkQkQJ0M8PDdVeXV0cup8NgOzsGnI2JKOtnsnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715692875; c=relaxed/simple; bh=+d+x3xrqLLNvB0bbaPBE1svfJd8r+2gvH4Ec5dTMZ40=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=bcA3uy2LngkBfzr3/RlHoteKiD8PBK38eDr2ItA0FB+A7C6Mb+ONj1NHOioD25ozqd++VFJvAvnzxnfqwWrsd5N+mdEAAXZiKc+i+89Zvz4FIPrbqr5s7eZTQ4i4GajtkaDWN8jfcg9DdhK8f12ZQDc/gh8iFk0OsmGVrblzI2M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kUoAI4CA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4501EC2BD10; Tue, 14 May 2024 13:21:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715692874; bh=+d+x3xrqLLNvB0bbaPBE1svfJd8r+2gvH4Ec5dTMZ40=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=kUoAI4CAz0fTV3x70RnAKMy5FV2rxOSdsFEF3amjvtu9NFCHmUzi9FE2tZmi9btiG FR/mBFylv3Onecvi4jP4mxleHUWxJRK8aPlaOFbK1urlmVUw+csR3FJ9NF/M0p/OtS QYkTIRHvun8zT1BTDPdCJCrMFos4zP0A6r4+JngXKmuCtse/0v/9r1cH6PIJC8/S90 nW5nrg1eSb/DZPCDefWHC3CMdepmMNJvufMqtbsnlZZmrAI11FKYxjgBYfiUOtU1vH TCWrfI4qbjCIZarVfGHhz6kqxnCuOfUIgzDAfGMmjilZjjFfu9rodUCQOcCScC+OH9 sonORoDxb4Ynw== From: Kalle Valo To: Alexis =?utf-8?Q?Lothor=C3=A9?= Cc: Ajay Singh , Claudiu Beznea , Thomas Petazzoni , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] wifi: wilc1000: set net device registration as last step during interface creation References: <20240417-mac_addr_at_probe-v1-1-67d6c9b3bc2b@bootlin.com> <171569074600.2017278.13914732662896657638.kvalo@kernel.org> <3f53441d-b8b0-448a-aaaa-fb7e64aa86c0@bootlin.com> Date: Tue, 14 May 2024 16:21:11 +0300 In-Reply-To: <3f53441d-b8b0-448a-aaaa-fb7e64aa86c0@bootlin.com> ("Alexis =?utf-8?Q?Lothor=C3=A9=22's?= message of "Tue, 14 May 2024 15:09:29 +0200") Message-ID: <87wmnwil6g.fsf@kernel.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Alexis Lothor=C3=A9 writes: > Hello Kalle, > > On 5/14/24 14:45, Kalle Valo wrote: >> Alexis Lothor=C3=A9 wrote: >>=20 >>> net device registration is currently done in wilc_netdev_ifc_init but >>> other initialization operations are still done after this registration. >>> Since net device is assumed to be usable right after registration, it >>> should be the very last step of initialization. >>> >>> Move netdev registration at the very end of wilc_netdev_ifc_init to let >>> this function completely initialize netdevice before registering it. >>> >>> Signed-off-by: Alexis Lothor=C3=A9 >>=20 >> I see errors: >>=20 >> ERROR: modpost: "wilc_load_mac_from_nv" >> [drivers/net/wireless/microchip/wilc1000/wilc1000-sdio.ko] >> undefined! >> ERROR: modpost: "wilc_netdev_ifc_init" >> [drivers/net/wireless/microchip/wilc1000/wilc1000-sdio.ko] >> undefined! >> ERROR: modpost: "wilc_load_mac_from_nv" >> [drivers/net/wireless/microchip/wilc1000/wilc1000-spi.ko] undefined! >> ERROR: modpost: "wilc_netdev_ifc_init" >> [drivers/net/wireless/microchip/wilc1000/wilc1000-spi.ko] undefined! >> make[2]: *** [scripts/Makefile.modpost:145: Module.symvers] Error 1 >> make[1]: *** >> [/home/kvalo/projects/personal/wireless-drivers/src/wireless-next/Makefi= le:1871: >> modpost] Error 2 >> make: *** [Makefile:240: __sub-make] Error 2 >>=20 >> 6 patches set to Changes Requested. >>=20 >> 13633102 [1/6] wifi: wilc1000: set net device registration as last >> step during interface creation >> 13633103 [2/6] wifi: wilc1000: register net device only after bus >> being fully initialized >> 13633104 [3/6] wifi: wilc1000: set wilc_set_mac_address parameter as con= st >> 13633105 [4/6] wifi: wilc1000: add function to read mac address from eFu= se >> 13633106 [5/6] wifi: wilc1000: make sdio deinit function really deinit t= he sdio card >> 13633107 [6/6] wifi: wilc1000: read MAC address from fuse at probe > > Shame on me, I missed those basic errors since I worked with drivers as b= uilt-in > instead of modules. I'll update my workflow and send a v2. No worries, but I'm surprised that Intel's kernel test robot didn't report anything. --=20 https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatc= hes