All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Metehan Günen" <metehangnen@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
	linux-gpio@vger.kernel.org
Subject: Re: [PATCH 2/4] drivers/misc: add Goodix GXFP5130 eSPI fingerprint sensor driver
Date: Sun, 19 Jul 2026 03:53:16 -0700 (PDT)	[thread overview]
Message-ID: <6a5cac9c.b39440a8.65068.29e6@mx.google.com> (raw)
In-Reply-To: <2026071832-nutmeg-prototype-7f53@gregkh>

On Sat, Jul 18, 2026 at 11:12:28AM +0200, Greg KH wrote:
> This is not how you use debugfs.
>
> Also, this implements a custom trace function, again, use the built-in
> kernel functions for this.

Understood on both counts. The IS_ERR_OR_NULL() guard around the
debugfs_create_dir() return value is wrong — debugfs functions handle a
NULL or error dir silently in subsequent calls, so the check is
unnecessary. The gxfp_trace module will be removed entirely in v2 and
replaced with dev_dbg() throughout.

> 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?

The original code was written by Void755 (github.com/Void755) for
out-of-tree use under GPL-2.0 on hardware not supported by any existing
driver. I ported it to mainline kernel style with assistance from an AI
tool, which is responsible for the debugfs misuse, the custom trace
system, and the other style issues you found — it applied patterns that
compile but do not follow kernel conventions. I should have caught these
before sending.

v2 will carry proper copyright headers:

  Copyright (C) 2024 Void755 <github.com/Void755>
  Copyright (C) 2026 Metehan Günen <metehangnen@gmail.com>

> That's an abuse of READ_ONCE() :(

Agreed — READ_ONCE() is for lockless concurrent access paths, not a
plain init flag. Will be replaced with a regular boolean check in v2.

Thanks,
Metehan Günen

  reply	other threads:[~2026-07-19 10:53 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-18  8:14 [PATCH 0/4] drivers/misc: add Goodix GXFP5130 eSPI fingerprint sensor driver Metehan Günen
2026-07-18  8:14 ` [PATCH 1/4] include/uapi/linux: add gxfp_ioctl.h for GXFP5130 fingerprint sensor Metehan Günen
2026-07-18  9:07   ` Greg KH
2026-07-19 10:53     ` Metehan Günen
2026-07-18  9:08   ` Greg KH
2026-07-19 10:53     ` Metehan Günen
2026-07-18  8:14 ` [PATCH 2/4] drivers/misc: add Goodix GXFP5130 eSPI fingerprint sensor driver Metehan Günen
2026-07-18  9:09   ` Greg KH
2026-07-19 10:53     ` Metehan Günen
2026-07-19 11:12       ` Greg KH
2026-07-18  9:12   ` Greg KH
2026-07-19 10:53     ` Metehan Günen [this message]
2026-07-18  8:14 ` [PATCH 3/4] Documentation/misc-devices: add gxfp5130.rst Metehan Günen
2026-07-18  9:06   ` Greg KH
2026-07-19 10:53     ` Metehan Günen
2026-07-18  8:14 ` [PATCH 4/4] MAINTAINERS: add entry for GXFP5130 fingerprint sensor driver Metehan Günen
2026-07-18  9:06   ` Greg KH
2026-07-19 10:53     ` Metehan Günen
2026-07-19 11:10       ` Greg KH
2026-07-18  9:05 ` [PATCH 0/4] drivers/misc: add Goodix GXFP5130 eSPI " Greg KH
2026-07-19 10:53   ` Metehan Günen
2026-07-19 11:10     ` Greg KH

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=6a5cac9c.b39440a8.65068.29e6@mx.google.com \
    --to=metehangnen@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /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.