Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1682116ybh; Tue, 14 Jul 2020 04:40:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfUP0wSkW0LDV9rPUnfnnNwQnhaJZRRHep6B5Pp4LeaQYR001n213BFWjBgSHSMbOdGfyG X-Received: by 2002:a17:906:7a46:: with SMTP id i6mr3847899ejo.475.1594726816683; Tue, 14 Jul 2020 04:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594726816; cv=none; d=google.com; s=arc-20160816; b=lEfu64g2RgFcnjgHnqtRnXme//uYbM626LnFjrllOinDB/MPpz9HRkr0DVmiokdsPq nfW6vwci4ALy5hl8gKiAIW/KBrKJ6XwLprxgpA5y92rO8OCIn6n0EG0dmwQnfsWsKBDk ZdQoohn3yMVEX1LbCkjmro7nghBXGwbzUuCdzODVY9spbZsUcSQnGNHkxzSJEL87KONb /8jK4bqhPh08Ewar8d4jglMK8nicymQ21MI8biC2r/rNxDQywkMglpCaESBbhTgH/P9h D/BJ8z6zrk6vq+ibbfuPqrwyYz5uxWVOvSfd76jnw5pG6YQM0f3T7D/0ye9UYXlruISC MwhQ== 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=90PvZQJlkdLt0DYQhYm5BrwXieJBBN+Ctna1ZLxwQe8=; b=p0lq56yr5Kr6isp05ECtrhpvTc4EwzYHTauBUT8/DUyOVVBS5Nj90D/yI8EUDyQy0t +BL67p3flHPcV+hq+1MkmTTWuOMo9vV60hCzpN8BdwaktSx26+eQEOEPaEwQzIQWwcxI jfoxhXXpaidRrIe1WGkStmoh5HFUk7xfwSL3Lqtv9MX+q6yUaV4vM0R/szLM3G72EEOt HBOPq8/JC/4saVBBjm3nnaxebTmqf4igXkWUvZ+dXEz26fOWKqJG2zWjvGx1spxIbTZW W26f6SJ9xqU3WPqyrGf+uYDY+Ig5d/EgJpg7yYblEDYIhUroyGaMr3yqOiXjYZGPBhzL 5PEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="N/rk9dF+"; 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 lc19si10816121ejb.584.2020.07.14.04.39.53; Tue, 14 Jul 2020 04:40:16 -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="N/rk9dF+"; 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 S1727867AbgGNLhW (ORCPT + 99 others); Tue, 14 Jul 2020 07:37:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:52258 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbgGNLhW (ORCPT ); Tue, 14 Jul 2020 07:37:22 -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 CDF6722201; Tue, 14 Jul 2020 11:37:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594726641; bh=h7+gt/VkcwPo2ZUdjBEGzdFEcZNQAqnd5lCoJNEHyaA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N/rk9dF+tcrKcHmaDs0I6uWgZSDowhLUzfr0ytVyyuak4YilDxnNs8/BDZKosy2dt ofUG9Y1V2yXWrx8Q605KI4bGf7JoKPfpWiFB1ctHuOzytM+XSXPbmxiaO3BxqgcFaq D370yyOa8clQ/g9O/RcGntuBVIabEWTAzFjLnltw= Date: Tue, 14 Jul 2020 12:37:12 +0100 From: Mark Brown To: Clark Wang Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] spi: lpspi: fix kernel warning dump when probe fail after calling spi_register Message-ID: <20200714113712.GE4900@sirena.org.uk> References: <20200714075251.12777-1-xiaoning.wang@nxp.com> <20200714075251.12777-4-xiaoning.wang@nxp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3O1VwFp74L81IIeR" Content-Disposition: inline In-Reply-To: <20200714075251.12777-4-xiaoning.wang@nxp.com> X-Cookie: Your password is pitifully obvious. 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 --3O1VwFp74L81IIeR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 14, 2020 at 03:52:49PM +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 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. --3O1VwFp74L81IIeR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8NmOcACgkQJNaLcl1U h9Ag5Af/TwxSYf1uOmLZGORNmkh5vQDWWTlyZTCj85EDEzELZOHCFmRVcYZSm0dh 0Oj74biM+7bfq82kfGuAloMlDzpa9W1Pn3Ft3cIoK2//NXdc4liWUrYJArRqYEKk x+lsGUJZxL8TfzB170y6HOHgrnNiXzzv0hMOJy1IX5mClNh8SKQEbqcAgssGkbLc STo+T7GaoKlyRPTIdEq3n8JeyXbKuZe0sHXRjfCkl7K2LaHcpc0KNobUE0tZmY7J yy5TNZF0EclnY78hvBR4Kzqyls1VgvXYPhMxG8bFWtDb65wMPZbv67fA6bOcp0eM lVKavNVh9gTlJ518JXckcQCRpbM4EQ== =NPb7 -----END PGP SIGNATURE----- --3O1VwFp74L81IIeR--