From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796282781; b=A/iNRjEhcHee9IRC88k4F5sdA/3fjpRzezSINpPcvV9UzzhGbdpLkIyFJYp7xZNDDLTr N4rTAah45mk+4xbYDUifm0jqMJbDzTQvE7wnbs0qldeuWMszkh87JyyZcw5zLVgpc9u49 CVlkfVEMiCYOOzjoYR13euaWIM7LSTpDja2OlI2EBN066FNGgNJAQPsSJbkV2Vgndyi5p Bp35draVEnhUhn7fguB83lwlgRGdXBtAcAm0u8S5uQ1k4JIPzmA6j2319D1rnblsd/pQj Zqu1WBMAoGyAw7EATe2aTYk/CdUkIOC75IiQYeQlgpdDeJfbXNpxzDn7uex7Y+bkfYw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796282781; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=SWxi8znjCK9qyMKY6x0imI0gU3WRp+7C2a1kCwDoIXU=; b=RtxLOKNVm2qZoJSkf9fRWrhXoNlilPeGks7UMt+S7J23EFpjhhjdu2Vta8rEwIDlqnXy WPj+bC57SKuUN5PRKhKiHaO42bLQJsYeyYHk9uX69hKhSMrECYITrrFV/XjDg0Bn1dND5 sWqVUjJWpuqeaO71PJOKJRR0SaWqqJAyIIvlfEBaHyEMz1eJWOB25r2gvW0H26vFlhscx 2HGHzdp9PvcMZtBPeG+IWkmkS0SJupH/Ci8fx6pm9UEZHklCJgGKPo3KYVvQnyUlzhUyZ lalk8ERrWzkagaNxZ9wUaB4AVXOsCgiKwFdbIUOhbFoq65BxS+qmmjJzPhSjFg2ixMw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IieW7rfL; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8FF0D606A322 for ; Thu, 3 Dec 2026 07:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IieW7rfL Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D4F01F000C1; Thu, 3 Dec 2026 07:26:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796282781; bh=SWxi8znjCK9qyMKY6x0imI0gU3WRp+7C2a1kCwDoIXU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=IieW7rfLVdT9CkNwOCacnMaZPqUcSPf2Smqd/1TJOuca0mtHA0P4GQPGiz6oj3Y1Q DhKVqtQXGDQUh73J2K+pKwMd1ITnMruQfh7d1sWkFsAn987fNwXP6ZrX3UdMxtLmLR eHdgm5WrgpIU2hZAqN6lNHpTxf4nxrNW/qIg88SDgUL4VWvFg8HCBja41TAC2hUfOx TX3KUQ0cOm+/rP6kY8Ft2yTQoQPvmNy/sjvUf4QFDvMpaeYigrABIkLbrqqjDZt6+D ehKEYGXhZlffRGiidTee3UBalBv3Cgf4ESV0IPxSKiG79DPtan6FKnVmRtFiEVS01x bdDcZF5VGjasg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v6 03/17] wifi: cc33xx: Add debug.h Reply-To: sashiko-reviews@lists.linux.dev To: "Ramesh Ramalingam" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203070906.1294171-4-r-ramalingam@ti.com> References: <20261203070906.1294171-1-r-ramalingam@ti.com> <20261203070906.1294171-4-r-ramalingam@ti.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 07:26:20 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [Low] wifi: cc33xx: debug.h is not self-contained due to missing kernel includes - [Low] wifi: cc33xx: debug macros and debug_level are no-ops without DYNAMIC_DEBUG -- commit f51a97b31fa519e45c24343fe1cf9fecb56c8f46 Author: Michael Nemanov wifi: cc33xx: Add debug.h This commit adds the debug header for the cc33xx wireless driver, defining debug level bitmasks and logging macros for debug messages and hex dumps. > diff --git a/drivers/net/wireless/ti/cc33xx/debug.h b/drivers/net/wireles= s/ti/cc33xx/debug.h > new file mode 100644 > index 0000000000000..0f47942d4ecbf > --- /dev/null > +++ b/drivers/net/wireless/ti/cc33xx/debug.h > @@ -0,0 +1,70 @@ > +/* SPDX-License-Identifier: GPL-2.0-only > + * > + * Copyright (C) 2022-2026 Texas Instruments Incorporated - https://www.= ti.com/ > + */ > + > +#ifndef __DEBUG_H__ > +#define __DEBUG_H__ > + > +#define DRIVER_NAME "cc33xx" > +#define DRIVER_PREFIX DRIVER_NAME ": " > + > +enum { > + DEBUG_NONE =3D 0, > + DEBUG_IRQ =3D BIT(0), [ ... ] > + DEBUG_ALL =3D GENMASK(31, 0), > + DEBUG_NO_DATAPATH =3D (DEBUG_ALL & ~DEBUG_IRQ & ~DEBUG_TX & ~DEBUG_RX &= ~DEBUG_CORE_STATUS), > +}; > + > +extern u32 cc33xx_debug_level; [Severity: Low] Should debug.h include the kernel headers it depends on so it can be compiled standalone? The header has no #include directives, yet uses BIT(), GENMASK(), and u32 at file scope, and its macros expand unlikely(), dev_dbg(), print_hex_dump_debug(), DUMP_PREFIX_OFFSET, min_t(), size_t, and true. Including debug.h standalone or before cc33xx.h will fail to compile. [ ... ] > +#define cc33xx_debug(dev, level, fmt, arg...) \ > + do { \ > + if (unlikely((level) & cc33xx_debug_level)) \ > + dev_dbg(dev, fmt, ##arg); \ > + } while (0) > + > +#define cc33xx_dump(level, prefix, buf, len) \ > + do { \ > + if ((level) & cc33xx_debug_level) \ > + print_hex_dump_debug(DRIVER_PREFIX prefix, \ > + DUMP_PREFIX_OFFSET, 16, 1, \ > + buf, \ > + min_t(size_t, len, DEBUG_DUMP_LIMIT), \ > + 0); \ > + } while (0) > + > +#define cc33xx_dump_ascii(level, prefix, buf, len) \ > + do { \ > + if ((level) & cc33xx_debug_level) \ > + print_hex_dump_debug(DRIVER_PREFIX prefix, \ > + DUMP_PREFIX_OFFSET, 16, 1, \ > + buf, \ > + min_t(size_t, len, DEBUG_DUMP_LIMIT), \ > + true); \ > + } while (0) [Severity: Low] Do cc33xx_debug(), cc33xx_dump(), and cc33xx_dump_ascii() become no-ops when CONFIG_DYNAMIC_DEBUG is disabled? Without CONFIG_DYNAMIC_DEBUG or -DDEBUG (which commit "wifi: cc33xx: Add Kconfig, Makefile" does not set), dev_dbg() compiles to dev_no_printk() and print_hex_dump_debug() is an empty stub. Writing to debug_level from commit "wifi: cc33xx: Add main.c" then silently produces no output. A !CONFIG_DYNAMIC_DEBUG fallback to dev_printk(KERN_DEBUG, ...) and print_hex_dump(), as in fc3d1db5b60e ("wlcore: make debug prints work without dynamic debug"), would need cc33xx_debug_level to default to DEBUG_NONE in that build to avoid flooding boot logs. When CONFIG_DYNAMIC_DEBUG is enabled, the DEBUG_NO_DATAPATH default also inverts the unlikely() hint in cc33xx_debug() for non-datapath callsites while double-gating datapath logs behind both dyndbg and debug_level. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203070906.1294= 171-1-r-ramalingam@ti.com?part=3D3