Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2656972lqo; Tue, 14 May 2024 05:46:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRC8dmReJw7Qwy9csMCXWSrjV5qcDYEyhAzyJFqnF6OMQeCwtSrC0r2FAMu+0aqdZ3MGduYGNYYO84qJte17/JQzDL+qCz304XbKwI/A== X-Google-Smtp-Source: AGHT+IEAbKyb+Jgh3ABvPUelFe4Q4qtHzaiyTJ+WfIBmRdnSdWXnQdEmZwLQVJCZ7FCQnJcBMlXs X-Received: by 2002:a05:6358:70c1:b0:17e:8ea3:83cc with SMTP id e5c5f4694b2df-193bcfd421amr1331481455d.24.1715690777062; Tue, 14 May 2024 05:46:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715690777; cv=pass; d=google.com; s=arc-20160816; b=FfVWe9AYCUx3To8nWPA7tRviq1VWzQ4zJzZ0vbYorFVECoXV9rX4TzRM1IyD77fAUq B0JYidZVSQJ/cw9HcnmTCUSpTI8Cal0BN22qwamO4oeXc7gVK5WsKS3RDWWDGv0ENlXR zPfmkR+lcI+LhZ32MeFaEeU2/t6/y55q89dm9KF/TOqH9ahLLROEdAHxyu/6u99EMrkQ nrN7ialmZ77ZB1pKldfpp2CgaIWPDBHyhpKoZMj1/E0aA7W/Px3LVsOJ6t0wEPZkGxVm K7JUPG7QqhF/ppA1AFtqJ+pfjholGAtReVpWp2nXqCbRuuMwIjKPtDznbATYwj4MEDa0 IIqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=nAwQafGRTKk+4qeABKyG4g2FweD7P7oZbvHz+LNgDfk=; fh=GiuJnIVZAONLsMvtTUCh8sif3E40gdmpZF8P6EW//EM=; b=U2ydAwQ/HZVTscVKVRrbverQccmbdFck+92P6Z6HvMz+qT9yAOPtG8BsPuXqT5lElV X6BRXaOFIogEo2x0ZMoKK03f6ce7RiR1qWO/Fxo6DpKQgnEF6pVeXz5dLEUeQsfN/ysz BwKfAi5jUEtvSHKnSlFmPHIaQXmUpNuQU2oJw0WEp8h58a9PFTn+qbI17LZtABIbBRjr P3DT+fbMluX6zhqg4uBpO2wGPAE38Z8KpXSNxqrlsHdeTNk8V2sHtNDn2GxXmZDGUkaO XJ3XvT2DinDaE6NpCEEABwnZPJ0fXJ5+P6VY5b4UybO09ktVsWpWfwj++lf2tI5a7iQ2 WGDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhlRL33X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7636-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 41be03b00d2f7-63413d729b9si11056490a12.853.2024.05.14.05.46.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 05:46:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7636-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=OhlRL33X; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-7636-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7636-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 50E95B2104F for ; Tue, 14 May 2024 12:45:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A24E55C08; Tue, 14 May 2024 12:45:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OhlRL33X" 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 F262B47F5D; Tue, 14 May 2024 12:45:49 +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=1715690750; cv=none; b=Zw3njXyTG56/3USY2WaUqN7AFUXhY01M6Bcw46pfarIx78Fenl5EzmlhdXZSGcn5ZRLqy6HrSfZwOnZPTLWkzLDGqGC1XTDBvKZOzvH5+0vYlVl+kmLKjYwDnmt9ZNXQpeHQvMEXZGGCQSVgpR5urfh7chg9gBVDmFWAYSCyUnc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715690750; c=relaxed/simple; bh=wYe+IcdZ5sAPvomkLeOMajQNaay/H+daZsNnHYswfPw=; h=Content-Type:MIME-Version:Subject:From:In-Reply-To:References:To: Cc:Message-ID:Date; b=B6QYAtYbvWnO7cL0p5vI4JmyEuaiG5ji7YR1R0aHwebD7DVdCg+yDzVjCinovR0ztAUEU0x+L4q8HpChbVUxH+plgPp6NDFKzt6z9HGulRxKBDd8fe5VGlEoZUZvJtFbZ7NXA8raU27WgbLNeJDXcsccGpvv/maS8bdN4jLfAHA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OhlRL33X; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07C93C2BD10; Tue, 14 May 2024 12:45:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715690749; bh=wYe+IcdZ5sAPvomkLeOMajQNaay/H+daZsNnHYswfPw=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=OhlRL33X47dxZOmzQKr1jHTao8pWiTIsxT6CuVBAIy41IePXpyOV35qN2xZOsKA6T OTQVcNnSKAZJBWQ+vJkm5g8qclRctWA4rY7KMVFDHx0u5GmUzVqkw5GbFhHcHRc6pq veh2dHUQ1XNK79xiWmv2KNjbkpmGUiDbEQn4ZTBi6kBE1zwRX0uPx466F1FKfY/AVF JzfDRnpf57wQ3ZJ/Y5cPhx+8DOQNP5C1hDuFAWn1nd+8VAAVen9PJv9GGU0lyncZIr TUN9zKrkxU5CapT5zPKVCm8fQl1xMiFWeRZbjivHQyqcS3zwhfi61/sBT6SEPTj98K TBgHlkOHv5fTQ== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 1/6] wifi: wilc1000: set net device registration as last step during interface creation From: Kalle Valo In-Reply-To: <20240417-mac_addr_at_probe-v1-1-67d6c9b3bc2b@bootlin.com> References: <20240417-mac_addr_at_probe-v1-1-67d6c9b3bc2b@bootlin.com> To: =?utf-8?q?Alexis_Lothor=C3=A9?= Cc: Ajay Singh , Claudiu Beznea , Thomas Petazzoni , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?Al?= =?utf-8?q?exis_Lothor=C3=A9?= User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <171569074600.2017278.13914732662896657638.kvalo@kernel.org> Date: Tue, 14 May 2024 12:45:47 +0000 (UTC) Alexis Lothoré wrote: > 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é I see errors: 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/Makefile:1871: modpost] Error 2 make: *** [Makefile:240: __sub-make] Error 2 6 patches set to Changes Requested. 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 const 13633105 [4/6] wifi: wilc1000: add function to read mac address from eFuse 13633106 [5/6] wifi: wilc1000: make sdio deinit function really deinit the sdio card 13633107 [6/6] wifi: wilc1000: read MAC address from fuse at probe -- https://patchwork.kernel.org/project/linux-wireless/patch/20240417-mac_addr_at_probe-v1-1-67d6c9b3bc2b@bootlin.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches