From nobody Sun Jan 28 16:28:23 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TNH1Q6Vvfz58sdN for ; Sun, 28 Jan 2024 16:28:42 +0000 (UTC) (envelope-from qgmcrae@yahoo.com) Received: from sonic305-21.consmr.mail.ne1.yahoo.com (sonic305-21.consmr.mail.ne1.yahoo.com [66.163.185.147]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TNH1Q4W8kz4KPs for ; Sun, 28 Jan 2024 16:28:42 +0000 (UTC) (envelope-from qgmcrae@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706459320; bh=kxzCQDHEpM4w0NdspALh4uX8AxNcXFEbD+PJlkHl8VQ=; h=From:Subject:Date:References:Cc:In-Reply-To:To:From:Subject:Reply-To; b=nvKk5I2kAGYWeikvu7e+02K53SPtFI8lhHo3kOjwBDanT9Tw5sQMlbLWmSMJzbCn5YwRjueLusmHe0/cWp9fxJcisss2ycTonsLCtCgAxQprZc0GkLwqFo32tWyHAISpgIVeHOdj5DyJu7F2LsWlSwmTertUoBCdn5UkDQwXEANwXgWxd7/70P9pHQ6x+w2L+Ti/+9rzDVdqQd93ZxNlNeiIWLKOCPXVvBrFmliNUUz+Ref74rrD3UpxyKnm8VjfyrpaoqrY8PtvXtpDUahJJbObzORF1B9sNX6XyIWrVWJ3PbG865US++f8lrtpViBjWfRf63v/SeEWpsbJQa/oBQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706459320; bh=gCb9sdoK9JSEftaIGtIfMSYD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PjVVt5b 12fYw7IijmGNvt63XNiHnowr.6NbHOQqfs6JLoC1zYmJRpF64JzP4R.cP7OaNgDKyYPqDR1OCWAB JyVhZYBnFbbYgcJ7IkaVd0BaMaOTwEdo3636RbNtI2xBbBH8HIfu0vPPLkQRso9b5two8.YeWs.1 X7DjYp0gT.1Mq3MSVWbNyXMTsdD6rqXyeof2MZkqMdUhIyvcpSAjczzprJsRgh2mSmwT.en8KCwG fbNAvooQcz2iCQqVf9Tut1INXSVLfk8v6udRNOOjcrTrwz9y4XSJHQr.mUckqxEx.fwOZ8yE6J24 LJmNt_ZevQD5SuAAUF6E.q9byDaTvs6LYil_KxystVSeGXDYDCpbHzbzZ.nM_oeWsR88UVyntFpC .4J5TpldRwfUJoNnZqYpjLSiokFJuE6zf9g5cT54psKbfFORfio_EeaRB3usIh3PuK68Wt5MnV69 NjBPUdW_byoIOMIsddldSwSHxy7ZluF5hje7sx9PoN5jvbKkiZv.D8qQwGll.K.2twLQ_hZ8ylqS p.Qn5f11p6cmct7ypOaj780qzjMZgK0kJrN4S6EZw1GUr X-Sonic-MF: X-Sonic-ID: e6e1a170-f933-4183-bc75-cbc223ffee4a Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Sun, 28 Jan 2024 16:28:40 +0000 Received: by hermes--production-bf1-7d6dbd57c9-s4dph (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 9bc13427c234747682070d9bfbbdbe23; Sun, 28 Jan 2024 16:28:35 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Quincy Mcrae List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: git: 4d1161f094dd - main - subr_bus: report DEVICE_SUSPEND failures Date: Sun, 28 Jan 2024 12:28:23 -0400 Message-Id: References: <202401281321.40SDLneL052092@gitrepo.freebsd.org> Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org In-Reply-To: <202401281321.40SDLneL052092@gitrepo.freebsd.org> To: Andriy Gapon X-Mailer: iPhone Mail (21D50) X-Rspamd-Queue-Id: 4TNH1Q4W8kz4KPs X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US] Good afternoon, Could you please unsubscribe me from the group? Quincy Sent from my iPhone > On Jan 28, 2024, at 9:21=E2=80=AFAM, Andriy Gapon wrote:= >=20 > =EF=BB=BFThe branch main has been updated by avg: >=20 > URL: https://cgit.FreeBSD.org/src/commit/?id=3D4d1161f094dd90428847f7e5989= 767e9957055f4 >=20 > commit 4d1161f094dd90428847f7e5989767e9957055f4 > Author: Andriy Gapon > AuthorDate: 2023-01-03 08:39:32 +0000 > Commit: Andriy Gapon > CommitDate: 2024-01-28 13:21:09 +0000 >=20 > subr_bus: report DEVICE_SUSPEND failures >=20 > This greatly aids with diagnosing system suspend failures when > they are due to a device driver or hardware. > --- > sys/kern/subr_bus.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c > index 21c2835f2ae6..c06f3df0c9c9 100644 > --- a/sys/kern/subr_bus.c > +++ b/sys/kern/subr_bus.c > @@ -3463,8 +3463,12 @@ bus_generic_suspend_child(device_t dev, device_t ch= ild) >=20 > error =3D DEVICE_SUSPEND(child); >=20 > - if (error =3D=3D 0) > + if (error =3D=3D 0) { > child->flags |=3D DF_SUSPENDED; > + } else { > + printf("DEVICE_SUSPEND(%s) failed: %d\n", > + device_get_nameunit(child), error); > + } >=20 > return (error); > } >=20