From: "Alexis Lothoré" <alexis.lothore@bootlin.com>
To: Kalle Valo <kvalo@kernel.org>
Cc: Ajay Singh <ajay.kathat@microchip.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
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
Date: Tue, 14 May 2024 15:09:29 +0200 [thread overview]
Message-ID: <3f53441d-b8b0-448a-aaaa-fb7e64aa86c0@bootlin.com> (raw)
In-Reply-To: <171569074600.2017278.13914732662896657638.kvalo@kernel.org>
Hello Kalle,
On 5/14/24 14:45, Kalle Valo wrote:
> Alexis Lothoré <alexis.lothore@bootlin.com> 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é <alexis.lothore@bootlin.com>
>
> 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
Shame on me, I missed those basic errors since I worked with drivers as built-in
instead of modules. I'll update my workflow and send a v2.
Thanks,
Alexis
--
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2024-05-14 13:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-17 9:34 [PATCH 0/6] wifi: wilc1000: fix default mac address Alexis Lothoré
2024-04-17 9:34 ` [PATCH 1/6] wifi: wilc1000: set net device registration as last step during interface creation Alexis Lothoré
2024-05-14 12:45 ` Kalle Valo
2024-05-14 13:09 ` Alexis Lothoré [this message]
2024-05-14 13:21 ` Kalle Valo
2024-04-17 9:34 ` [PATCH 2/6] wifi: wilc1000: register net device only after bus being fully initialized Alexis Lothoré
2024-04-17 9:34 ` [PATCH 3/6] wifi: wilc1000: set wilc_set_mac_address parameter as const Alexis Lothoré
2024-04-17 9:34 ` [PATCH 4/6] wifi: wilc1000: add function to read mac address from eFuse Alexis Lothoré
2024-04-17 9:34 ` [PATCH 5/6] wifi: wilc1000: make sdio deinit function really deinit the sdio card Alexis Lothoré
2024-04-17 9:34 ` [PATCH 6/6] wifi: wilc1000: read MAC address from fuse at probe Alexis Lothoré
2024-04-23 8:00 ` Heiko Thiery
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f53441d-b8b0-448a-aaaa-fb7e64aa86c0@bootlin.com \
--to=alexis.lothore@bootlin.com \
--cc=ajay.kathat@microchip.com \
--cc=claudiu.beznea@tuxon.dev \
--cc=kvalo@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.