Re: [PATCH 2/4] drivers/misc: add Goodix GXFP5130 eSPI fingerprint sensor driver

Greg KH <[email protected]>
Newsgroups org.kernel.vger.linux-acpi,org.kernel.vger.linux-gpio,org.kernel.vger.linux-kernel
Message-ID <2026071832-nutmeg-prototype-7f53@gregkh>
On Sat, Jul 18, 2026 at 11:14:29AM +0300, Metehan Günen wrote:
> +	gxfp_trace.dir = debugfs_create_dir("gxfp", NULL);
> +	if (!IS_ERR_OR_NULL(gxfp_trace.dir)) {

This is not how you use debugfs.

Also, this implements a custom trace function, again, use the built-in
kernel functions for this.

This implies that the driver came from an external company that does not
have much kernel development experience, or a LLM wrote this.  As there
is no copyright information on the code, which is it?

> +void gxfp_trace_exit(void)
> +{
> +	if (!READ_ONCE(gxfp_trace.inited))

That's an abuse of READ_ONCE()  :(

thanks,

greg k-h
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.