Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp38627ybh; Tue, 21 Jul 2020 15:48:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGH4lg3HQjcGW6md4HYjAmn4zkzLFYYKrwKNRzPfNCOMTonvUc/LkNVN37pzagA9MH3ImU X-Received: by 2002:a17:906:94c6:: with SMTP id d6mr28567235ejy.389.1595371698709; Tue, 21 Jul 2020 15:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595371698; cv=none; d=google.com; s=arc-20160816; b=sC4C6nv6iDQswgc93wVdOW+xXjlG8cCJC/ggMWqohi20NYsiuHKkM2wS4gSRZnWQOh zLP5BS5U00+yEznwV34oCFMwcV2AkSb6L45PXXJT6JwmPoaEj8AnAVNRWp7ljP+g5cGj k/vw95e6rd7e4ZbOKEbX1yeXsp5r5KLHiFiy+IwH4DgLrkAAIgN2jkgLEhQEP7emGPDu u/XU6Xd1OcrIY9dLSiN4QX28613k9H/R1Fw93jUb7rM4NpkEWEcFRrEQyvsT+1r2i+bq wyv7lRFXqqgur7InXKKxL1e21SwqLXhB8jMZXNhXL7EcP7eQWuZwuDrm7pkHlDsXhxFs J52Q== 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=FFZ0Dqsb9ItMdWz18PelHyCeOnIwT+l2JihZWsbOi5A=; b=LG3ehVX/856L74aXQ3tVL5L5GhfqRV4gt7PlUiqco0r5gh4KHMPbNQ8J07vr5FVdhx EjTH9t8/L4FMcNEG4FlGM+pYJcQiD1+PR/9xXr/kMKKZEftd3l8K4VZZJf3wn0wjdiGk PxeRydvjrdHpMaraIlPx1KFN0UEc71JBwKAtaPZNGjiWoZskL103HBhmsiEVRNFCvAhw E+1RT1xUTyhEGz1iIH+kZ6Xta5h0Ve+SbqFCnZifCcXwxRvLGnOPVtkQfrXYuv0c5RuR nBT9uxec9NVRrPVWDYYXAv6Lf2/ixb6+RS/rxbaTOuGNNtSPReYAGjmrCbqJqn9UtvQx FejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vx2lExdi; 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 rl28si12484089ejb.353.2020.07.21.15.47.55; Tue, 21 Jul 2020 15:48:18 -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=vx2lExdi; 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 S1729174AbgGUWrf (ORCPT + 99 others); Tue, 21 Jul 2020 18:47:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:39916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726148AbgGUWrf (ORCPT ); Tue, 21 Jul 2020 18:47:35 -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 4EFD12073A; Tue, 21 Jul 2020 22:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595371654; bh=lC9beQZcJxAVoggStwsSQD4umxKrJ5gvYRxSjxfqKgs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vx2lExdiuSTzdGyDGpUWaWm3KIVvWLX+wqdqJi/pB5vdLoMo7Hx7K8TbX5hX3b/WI 3rJfUp6uDE82W2HgBA4+PnVgtCqN9E8bSfBTarxi9JrjF8Flrt0COeCscy4vDNTYz8 BosH/RsIk27dGwTnoKIkR2ErINMfPJ7IE5Eky59o= Date: Tue, 21 Jul 2020 23:47:21 +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: <20200721224721.GA33193@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="EVF5PPMfhYS0aIcm" Content-Disposition: inline In-Reply-To: <20200714075251.12777-4-xiaoning.wang@nxp.com> X-Cookie: Wanna buy a duck? 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 --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. This doesn't apply against current code, please check and resend. > [ 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_remove_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. --EVF5PPMfhYS0aIcm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8XcHkACgkQJNaLcl1U h9ABZwf/QAz1ZkBEQ11WvbVv1FhvqZyXhY4kxfUBGqxMBeIkKzTZqZQCusd0T7Ah 47kcDS0t9QQE4haXfLRe7PiGvA16xTmm2px8W+vlQbkxnDIwYmIaBueWiiNXGL3x tIiV3nicZgAtkdYHC+XZeVTYAgsZCzywC1la/kfSjYTAU0ltKIN+DEtkQu7gbaRL Wh+0/Cqj8CKFJiNTyXIUiJrvRDmpbCCqUaVwhJxnom0P197kiD4SiJhp3KynaqWM FQZvkIfFu+U/242IVGKbgOe1grcSKZ1fCdYBwON+F5RWvLy1HdLRNmK6uyEmoLXp 2HUXFj147kxJE/POHBVcdnidhfwwzw== =XZW9 -----END PGP SIGNATURE----- --EVF5PPMfhYS0aIcm--