mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tzung-Bi Shih <tzungbi@kernel.org>
To: Sergey Tiraspolsky <stiraspo@gmail.com>
Cc: "Benson Leung" <bleung@chromium.org>,
	"Łukasz Bartosik" <ukaszb@chromium.org>,
	"Andrei Kuchynski" <akuchynski@chromium.org>,
	"Jameson Thies" <jthies@google.com>,
	"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>,
	chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org,
	stable@vger.kernel.org, james.a.fairweather@gmail.com
Subject: Re: [PATCH] platform/chrome: cros_usbpd_notify: Don't use a non-EC parent's drvdata
Date: Mon, 5 Oct 2026 03:40:46 +0000	[thread overview]
Message-ID: <asMcPkMDjO-Uip8L@google.com> (raw)
In-Reply-To: <20261003204623.18124-1-stiraspo@gmail.com>

On Sat, Oct 03, 2026 at 01:46:23PM -0700, Sergey Tiraspolsky wrote:
> Notes:
>     Tested on a 2017 Google Pixelbook (Eve), where GOOG0003 is a child of
>     PNP0C09, on 7.2.5 (Arch-based distro kernel; none of its patches touch
>     drivers/platform/chrome or drivers/acpi/ec.c), building this change as
>     an out-of-tree module:
>     
>      - without the patch: four oopses with the trace above in the logs, one
>        3 seconds after resume, and lid-close suspends that never resumed
>      - with the patch: the probe prints "Couldn't get Chrome EC device
>        pointer." again; a charger unplug/replug produced 9 USB PD
>        notifications, all taking the "EC device inaccessible; sending 0
>        event status" path; suspend with a charger unplug/replug while asleep
>        resumed normally; no oopses
>     
>     Not tested: a device where GOOG0003 is a child of GOOG0004 (that path
>     only moves into the if branch here, its logic is unchanged).

Hi Sergey,

Thanks for looking into this.

Coincidentally, James Fairweather ran into the same issue on a Nami
Chromebook and submitted a patch shortly after yours [1].

The patch [1] addresses the same crash, but also fixes an existing firmware
node reference leak by calling fwnode_handle_put() on the handle returned by
fwnode_get_parent().

Because of the additional leak fix, I plan to proceed with James's patch.
To ensure your earlier report and testing on Eve are properly credited, I'll
add your "Reported-by" tag when applying the patch.

If you have a chance to test James's patch on your Pixelbook (Eve) and reply
with a Tested-by tag to [1], that would be greatly appreciated.

[1] https://lore.kernel.org/all/20261003222855.23707-1-james.a.fairweather@gmail.com/

      reply	other threads:[~2026-10-05  3:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-03 20:46 Sergey Tiraspolsky
2026-10-05  3:40 ` Tzung-Bi Shih [this message]

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=asMcPkMDjO-Uip8L@google.com \
    --to=tzungbi@kernel.org \
    --cc=akuchynski@chromium.org \
    --cc=bleung@chromium.org \
    --cc=chrome-platform@lists.linux.dev \
    --cc=james.a.fairweather@gmail.com \
    --cc=jthies@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=stable@vger.kernel.org \
    --cc=stiraspo@gmail.com \
    --cc=ukaszb@chromium.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®