Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4745901pjb; Mon, 27 Jul 2020 04:11:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcelU9UUGenThWMtNB7tAjpBZJcuI2NDWaOvOHxzjr8squBTbhZX+sgyRVZoyMytFGQDYc X-Received: by 2002:a05:6402:1a46:: with SMTP id bf6mr5923851edb.284.1595848311446; Mon, 27 Jul 2020 04:11:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595848311; cv=none; d=google.com; s=arc-20160816; b=Dey8yAPK3+cDm6hDz7MEaajMVHqQ/v1tT+WpW2RqJiet6rKsFCg5clpcgRMpM8/55D aBpYr0IXUzVuXA1OJwomUPVzcK2MfFluTCnS+S3yjkOs8oVYsMsLfHlVOTIuUoya3VYQ mFywlaGZDTZ48bdSIqd9OUWBhOLXNpMjwrlLlDj/CrawW5VJzqxkvdGNJ0YPcGZtipVC dsGOBU10q1RJjRRR8jyBd8HDJnlMxlJqJTs3FeO+pUXLKKIo5Ctviv72WMecEYo4syBY OqrkRoCCv+aVNC8/ueu9Lmgx31pSOivGJbJ30nxZWyGioDeRFXXPN2SCH5RTqcGO+Bt3 sE8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1rE2RmPl5uA/IK3p9ZxTryVh4AGXeWJmBdfrHnW0nrQ=; b=RVSCI90pI35SlqeupOwFmMunN/zydgFI58a/QB6miGHOonr2cMPMa2/WNCYfCeZJfd rAoW9KJH3EJ+vzR2wtv6x8WzlADQ9xmrQULLE2o/uZtOJeeFMjJyyV4jarHJyiTLUTqc XL/H/J/GO1lcgXPDc7m1OoHcr1z55N5BZznFcXw1MBq3M0lkmR1NJZQtb14pA/iwH0rh ifRKkCTm2RnqnsjDXuXCNsFPt8KsLHQDq+IoYIz1+Zv/Hj3tOTfhBGVI2IXnXJdFkR4+ 0e2Ggdqnaa0cGgEsEohCc230hfYkAqY5ujukQyMK86BPLu68KcOEpWv2qjZYfLwSO+al S1CA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zwl1JoHU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si5959472edy.386.2020.07.27.04.11.29; Mon, 27 Jul 2020 04:11:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zwl1JoHU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgG0LL1 (ORCPT + 99 others); Mon, 27 Jul 2020 07:11:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:38704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbgG0LL1 (ORCPT ); Mon, 27 Jul 2020 07:11:27 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC4B4205CB; Mon, 27 Jul 2020 11:11:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595848286; bh=5cjDhcqA22LmKpF1+epE71V5q45KFj1IeAEV+bx8KEA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zwl1JoHUq8qXqIEHxk8e/QYK5paM+jXPuNbIsWBOMjuQkxkP20nHpBR+c7eMNs40n 8KEHAM7jD/QrC6dtSdorxbp1lPzjMRQARN26ihMDxfTED12Y308emVDGYmd0DHjM/P 4Z8bXbfMyJ1UcnUHuUL2S645FBnlTAY7cstJsGlA= Date: Mon, 27 Jul 2020 12:11:09 +0100 From: Mark Brown To: Clark Wang Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 1/4] spi: lpspi: Fix kernel warning dump when probe fail after calling spi_register Message-ID: <20200727111109.GB6275@sirena.org.uk> References: <20200727031448.31661-1-xiaoning.wang@nxp.com> <20200727031448.31661-2-xiaoning.wang@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XOIedfhf+7KOe/yw" Content-Disposition: inline In-Reply-To: <20200727031448.31661-2-xiaoning.wang@nxp.com> X-Cookie: Doing gets it done. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --XOIedfhf+7KOe/yw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 27, 2020 at 11:14:46AM +0800, Clark Wang wrote: > Calling devm_spi_register_controller() too early will cause problem. > When probe failed occurs after calling devm_spi_register_controller(), > the call of spi_controller_put() will trigger the following warning dump. >=20 > [ 2.092138] ------------[ cut here ]------------ > [ 2.096876] kernfs: can not remove 'uevent', no directory > [ 2.102440] WARNING: CPU: 0 PID: 181 at fs/kernfs/dir.c:1503 kernfs_re= move_by_name_ns+0xa0/0xb0 > [ 2.111142] Modules linked in: > [ 2.114207] CPU: 0 PID: 181 Comm: kworker/0:7 Not tainted 5.4.24-05024= -g775c6e8a738c-dirty #1314 > [ 2.122991] Hardware name: Freescale i.MX8DXL EVK (DT) > [ 2.128141] Workqueue: events deferred_probe_work_func Please think hard before including complete backtraces in upstream reports, they are very large and contain almost no useful information relative to their size so often obscure the relevant content in your message. If part of the backtrace is usefully illustrative (it often is for search engines if nothing else) then it's usually better to pull out the relevant sections. --XOIedfhf+7KOe/yw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8etkwACgkQJNaLcl1U h9By2AgAgnTCFAi+3XM31B5xy1B70aDoOYf1tRMaXEQR97aYIRF+ihcgFzNIsmrH E3lMnfNkmIdmCHpJpRyfgdH+zIMbya8rvWnQwiO60Ar+weSi6cB9cuRY/OvpKDQp oz/4iFuOMzLB/+d8OABUsT1NlxvJGZR55VxQyCtWLXWCl47Qw53g5BS5iHSK0vSt Qnlh/I+gGGdZ3AV/d6F5LlG0/ogsM0GW9qL06b5MBKHje93LJJao6YOczrYN2RIL 9Zt5nJ3a5BqgduNsas5XrxWjQ3QV00AIPwdKXziIhxMcQBmGv3r3dYpDQELHU5nr WxgW50uDCZtetlfOcgTBIt4UREDmgQ== =umFf -----END PGP SIGNATURE----- --XOIedfhf+7KOe/yw--