From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54045C433F5 for ; Mon, 25 Oct 2021 04:24:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2452961040 for ; Mon, 25 Oct 2021 04:24:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbhJYE0b (ORCPT ); Mon, 25 Oct 2021 00:26:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:53952 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229678AbhJYE02 (ORCPT ); Mon, 25 Oct 2021 00:26:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C64D060F9B; Mon, 25 Oct 2021 04:24:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635135846; bh=Lo4ZXU3swrI/CoQaLW+tWAClSe9XbVcmKuRTaCOG7jo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lYiPFiPaqW6yqyFtyYgoFJ2Fwja8suK/ETKV3BQFokp2TWOZ4Gy36EkQ0QrtrK/Zu gO2nIKqSZxs55niusXgG6Fd+475CcSdJSU7vXFijh7G30J/lo8Ttu+yD7c2FSCf9xV dWOLX2Qkvs1RfgI3uzlICyURMniOVTR3kTBQnxYphNKvB0Igyn6D2YVgVrpnO67UU5 vUUiM+72tTAJZwUYzjth7WwS0GZKAAkjfW2ElVGkOoM1+7BXrWObJlpBW3pwu1rnqz 677GlAMqDfuQHcxybDsOR3Egi83sovmKYT8XNfxUORgysA6X0KiqFxB7yRfEsegG09 qhfw5GP23VE7A== Date: Mon, 25 Oct 2021 09:54:02 +0530 From: Vinod Koul To: Dongliang Mu Cc: Geert Uytterhoeven , Yoshihiro Shimoda , Laurent Pinchart , Wolfram Sang , Zou Wei , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: rcar-dmac: refactor the error handling code of rcar_dmac_probe Message-ID: References: <20211020143546.3436205-1-mudongliangabcd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211020143546.3436205-1-mudongliangabcd@gmail.com> Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 20-10-21, 22:35, Dongliang Mu wrote: > In rcar_dmac_probe, if pm_runtime_resume_and_get fails, it forgets to > disable runtime PM. And of_dma_controller_free should only be invoked > after the success of of_dma_controller_register. > > Fix this by refactoring the error handling code. Applied, thanks -- ~Vinod