1: acb4948dd7a5 ! 1: eed456367de1 wifi: cw1200: avoid removing the debugfs directory twice @@ Commit message unbind, cw1200_debug_release() then tries to remove the stale dentry. Leave directory removal to the wiphy and free the counters as before.  - Prepared with OpenAI Codex. - Fixes: fa8eeae10257 ("cw1200: Remove "ITP" debug subsystem.") Signed-off-by: Arthur Heymans    2: 8b401942bb82 ! 2: 2a519c018645 wifi: cw1200: check SDD element lengths before reading them @@ Commit message fields with get_unaligned_le16() and reject short elements instead of using incomplete board configuration data.  - Prepared with OpenAI Codex. - Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Signed-off-by: Arthur Heymans    3: 040ce5a7f3c9 ! 3: 2d2b07e45595 wifi: cw1200: bounce SDIO transfers that use stack buffers @@ Commit message sdio_memcpy_toio(). Use a heap buffer for stack and non-linear addresses; keep the direct path for ordinary packet buffers.  - Prepared with OpenAI Codex. - Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Signed-off-by: Arthur Heymans    4: 4340637ece54 ! 4: 690984c48bec wifi: cw1200: unwind GPIO interrupt setup on error @@ Commit message card interrupt enables remain set. Drop the wake reference and restore the original CCCR interrupt-enable byte on the error paths.  - Prepared with OpenAI Codex. - Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Signed-off-by: Arthur Heymans    5: ecf94166f798 ! 5: 230c37ae76e3 wifi: cw1200: unregister from mac80211 before freeing the interrupt @@ Commit message GPIO interrupt: repeated unbind and bind while associated no longer logs the error. The SPI change is build-tested only.  - Prepared with Anthropic Claude. - Fixes: a910e4a94f69 ("cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets") Signed-off-by: Arthur Heymans    6: fd271d311db7 ! 6: ff89a036df38 dt-bindings: vendor-prefixes: add XRadio @@ Commit message  Add the vendor prefix for XRadio Wi-Fi chips.  - Prepared with OpenAI Codex. - Signed-off-by: Arthur Heymans   ## Documentation/devicetree/bindings/vendor-prefixes.yaml ## @@ Documentation/devicetree/bindings/vendor-prefixes.yaml: patternProperties: "^xnano,.*": description: Xnano  + "^xradio,.*": -+ description: XRadio Technology ++ description: Guangzhou Xradio Technology Co., Ltd. "^xunlong,.*": description: Shenzhen Xunlong Software CO.,Limited "^xylon,.*":  7: 34c7a25e4fb2 ! 7: b57d2d210292 dt-bindings: net: wireless: add XRadio XR819 @@ Commit message The XR819 exposes one SDIO function. Boards may provide a MAC address and wire a GPIO interrupt instead of using the SDIO interrupt.  - Prepared with OpenAI Codex. - Signed-off-by: Arthur Heymans   ## Documentation/devicetree/bindings/net/wireless/xradio,xr819.yaml (new) ## @@ Documentation/devicetree/bindings/net/wireless/xradio,xr819.yaml (new)  +maintainers:  + - Arthur Heymans   + -+description: ++description: |  + The XR819 is a 2.4 GHz IEEE 802.11b/g/n controller connected to the host  + through SDIO. Its out-of-band interrupt may be connected to a host GPIO.  + ++ Power supplies, the active-low reset line, and any host-provided 32.768 kHz ++ low-power clock are required before SDIO enumeration and are therefore ++ described on the parent MMC controller using vmmc-supply/vqmmc-supply and ++ mmc-pwrseq-simple. ++ ++allOf: ++ - $ref: wireless-controller.yaml# ++  +properties:  + compatible:  + const: xradio,xr819 @@ Documentation/devicetree/bindings/net/wireless/xradio,xr819.yaml (new)  + interrupts:  + maxItems: 1  + -+ local-mac-address: true -+  +required:  + - compatible  + - reg  + -+additionalProperties: false ++unevaluatedProperties: false  +  +examples:  + - |  8: f8bfb0c98336 ! 8: 5ab6184169ec wifi: cw1200: load the XR819 bootloader into SRAM @@ Commit message at 0x08000000. Write it before releasing the CPU from reset, then use the existing firmware download path.  - Prepared with OpenAI Codex. - Signed-off-by: Arthur Heymans   ## drivers/net/wireless/st/cw1200/cw1200.h ##  -: ------------ > 9: f64349ec9d12 wifi: cw1200: copy platform data into per-device storage  -: ------------ > 10: 15900755fdc8 wifi: cw1200: check sdio_enable_func() and IRQ subscribe errors  9: 456e868afdbf ! 11: 0d4ce1aa82b6 wifi: cw1200: add XR819 SDIO support @@ Commit message Use the board MAC address and GPIO interrupt when provided. Otherwise use the SDIO interrupt.  - Prepared with OpenAI Codex. - Signed-off-by: Arthur Heymans   ## drivers/net/wireless/st/cw1200/Kconfig ## @@ drivers/net/wireless/st/cw1200/cw1200_sdio.c  #include "cw1200.h"  @@ drivers/net/wireless/st/cw1200/cw1200_sdio.c: struct hwbus_priv { - struct sdio_func *func; struct cw1200_common *core; const struct cw1200_platform_data_sdio *pdata; -+ struct cw1200_platform_data_sdio pdata_storage; + struct cw1200_platform_data_sdio pdata_storage;  + u8 macaddr[ETH_ALEN];  + bool is_xr819; }; @@ drivers/net/wireless/st/cw1200/cw1200_sdio.c: static const struct hwbus_ops cw12 pr_info("cw1200_wlan_sdio: Probe called\n");  @@ drivers/net/wireless/st/cw1200/cw1200_sdio.c: static int cw1200_sdio_probe(struct sdio_func *func,  - func->card->quirks |= MMC_QUIRK_LENIENT_FN0; -  -- self->pdata = global_plat_data; /* FIXME */ -+ self->pdata_storage = *global_plat_data; -+ self->pdata = &self->pdata_storage; + self->pdata_storage = *global_plat_data; + self->pdata = &self->pdata_storage;  + self->is_xr819 = id->device == SDIO_DEVICE_ID_STE_XR819;  + if (self->is_xr819) {  + func->card->quirks |= MMC_QUIRK_BROKEN_BYTE_MODE_512; @@ drivers/net/wireless/st/cw1200/cw1200_sdio.c: static int cw1200_sdio_probe(struc  + } sdio_set_drvdata(func, self); sdio_claim_host(func); -- sdio_enable_func(func); -+ status = sdio_enable_func(func); - sdio_release_host(func); -+ if (status) -+ goto clear_drvdata; + status = sdio_enable_func(func); +@@ drivers/net/wireless/st/cw1200/cw1200_sdio.c: static int cw1200_sdio_probe(struct sdio_func *func, + if (status) + goto clear_drvdata; +  ++ if (self->is_xr819) { ++ sdio_claim_host(func); ++ status = sdio_set_block_size(func, SDIO_BLOCK_SIZE); ++ sdio_release_host(func); ++ if (status) ++ goto disable_func; ++ } ++ + status = cw1200_sdio_irq_subscribe(self); + if (status) + goto disable_func;  -- status = cw1200_sdio_irq_subscribe(self); --  - status = cw1200_core_probe(&cw1200_sdio_hwbus_ops,  - self, &func->dev, &self->core,  - self->pdata->ref_clk,  - self->pdata->macaddr,  - self->pdata->sdd_file,  - self->pdata->have_5ghz); -- if (status) { -- cw1200_sdio_irq_unsubscribe(self); -+ if (self->is_xr819) { - sdio_claim_host(func); -- sdio_disable_func(func); -+ status = sdio_set_block_size(func, SDIO_BLOCK_SIZE); - sdio_release_host(func); -- sdio_set_drvdata(func, NULL); -- kfree(self); -+ if (status) -+ goto disable_func; - } -  -+ status = cw1200_sdio_irq_subscribe(self); -+ if (status) -+ goto disable_func; -+  + status = cw1200_sdio_core_probe(self, func); -+ if (!status) -+ return 0; -+ -+ cw1200_sdio_irq_unsubscribe(self); -+disable_func: -+ sdio_claim_host(func); -+ sdio_disable_func(func); -+ sdio_release_host(func); -+clear_drvdata: -+ sdio_set_drvdata(func, NULL); + if (!status) + return 0; +  +@@ drivers/net/wireless/st/cw1200/cw1200_sdio.c: static int cw1200_sdio_probe(struct sdio_func *func, + sdio_release_host(func); + clear_drvdata: + sdio_set_drvdata(func, NULL);  +free_self: -+ kfree(self); + kfree(self); return status; } -   @@ drivers/net/wireless/st/cw1200/cw1200_sdio.c: static struct sdio_driver sdio_driver = { .id_table = cw1200_sdio_ids, .probe = cw1200_sdio_probe, 10: 4022af2bd74a = 12: 75d8e51f2019 MAINTAINERS: add myself for the cw1200 driver