Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2929179pxy; Mon, 3 May 2021 11:06:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6KVZ3JzDGRHf2y3/aT2bllQbQJUsEBHL1cVpn9ICkzzj7XCi2LNx/xfYg6As4h8+c4Iko X-Received: by 2002:a63:e64b:: with SMTP id p11mr19369133pgj.10.1620065186046; Mon, 03 May 2021 11:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620065186; cv=none; d=google.com; s=arc-20160816; b=t0eGmSE7oGho5otTfPgvZIccEHiw8uo5q9mTpekytRIWYMOVAlN9HQeaRhBCnb5xvu 82ttR84mw3eqZ9GueMCyFPyK9x4UXNwHS2poiv90d7qHdnEFUqyw2uz9ROhgh/DJzybM QyG85ReGBUDxb0KV7ihIB6+xyGhaMcA0uV9QoBE9hCtI0uR/+QRC26cbpbcsEmGR8Oqr Iye09pShDMH+a9DBkINBjpDF5Ph3iI+qoQIyNVvStjH4bRF+DA9NErRABtLL71hUz0A0 td0t/2EH64tnQmeHYP/fHp3F7X+vz7UahwQ9Z3U89+tC13OWYVNeYd4UMCax3oC+jI+N Xo9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=73lNqQ1VrdwR7ju1UBoGgLdisLCUOLsZbC+ewpwFu7c=; b=TkQNXnwvVdxXgTd3byt6DQjnxPkxM1h76Lh0Eo3TRbKV6Dd+Q6C+u0M+TkEzFGWCQx 1OCLhorX0YUobNwYD11Ds7haUt0SraLeDr1wv0RU2RYo5o+tq6UAdSGcYdaZu5dNSWm9 lOrtifN5Iur0rQkjMItL0TSkSxxzxB9BIC22+nf9mkBXlWdHOfd0Gtf2z7UdW5k3+yQe 45HQ6TrFk6GWXcSj7+5eKkCwe+jWigAtyT9Of9qAJZpnXj6PLBJqWm3EgbiIAdYXrMcP 5MCIVApx7M5UxvXQoACzUd6H0fcNgrtHlgsgcd0MvGiVehgCdj/We1h14bdVlp87LTKr aAUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Cr5fbTDi; 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 q10si408618pgm.285.2021.05.03.11.06.05; Mon, 03 May 2021 11:06:26 -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=k20201202 header.b=Cr5fbTDi; 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 S233147AbhECM6H (ORCPT + 99 others); Mon, 3 May 2021 08:58:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:57956 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231180AbhECM6H (ORCPT ); Mon, 3 May 2021 08:58:07 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 548D660D07; Mon, 3 May 2021 12:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620046633; bh=ogYrfqt3UbmvWma8Wl4DlNQu366hL6XxzCzX3CYiQ9s=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Cr5fbTDiScNHZzvQu1oI+UtnjAVYpyKY6AmDWOqj/KQtn2gBbvyancZ2NXigQxGVF Dex7Tu0pGvKbCcH3p+CNGL0X4RRPuX1JmeDZwXkOhtl1i8MaYd4Bo1M7f5f0Ri93MF mN359FsM1/YAIICiFQsBnR1Vwtw4oYsQBPFQntqPUrrm2Za4sMl/pYDHC2o7cXGzrS wq1RzbC0bdr1NNRbZhxTxUBUecH/3htaYb+XEUK9pfd00j71Y0nDVZuEXKSBZmjYjR HNgVK0/rOWwE+jgQMuMn/6ncaHpkZWCNXvqpcyetfl/irtlRPwmmwzBDTlmrXq8a8k MGP3X0Rh4UJww== Subject: Re: [PATCH 50/69] Revert "dmaengine: qcom_hidma: Check for driver register failure" To: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Cc: Aditya Pakki , Vinod Koul References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> <20210503115736.2104747-51-gregkh@linuxfoundation.org> From: Sinan Kaya Message-ID: Date: Mon, 3 May 2021 08:57:11 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210503115736.2104747-51-gregkh@linuxfoundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/3/2021 7:57 AM, Greg Kroah-Hartman wrote: > This reverts commit a474b3f0428d6b02a538aa10b3c3b722751cb382. > > Because of recent interactions with developers from @umn.edu, all > commits from them have been recently re-reviewed to ensure if they were > correct or not. > > Upon review, this commit was found to be incorrect for the reasons > below, so it must be reverted. It will be fixed up "correctly" in a > later kernel change. > > The original change is NOT correct, as it does not correctly unwind from > the resources that was allocated before the call to > platform_driver_register(). > > Cc: Aditya Pakki > Cc: Sinan Kaya > Cc: Vinod Koul > Signed-off-by: Greg Kroah-Hartman > --- > drivers/dma/qcom/hidma_mgmt.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c > index 806ca02c52d7..fe87b01f7a4e 100644 > --- a/drivers/dma/qcom/hidma_mgmt.c > +++ b/drivers/dma/qcom/hidma_mgmt.c > @@ -418,8 +418,9 @@ static int __init hidma_mgmt_init(void) > hidma_mgmt_of_populate_channels(child); > } > #endif > - return platform_driver_register(&hidma_mgmt_driver); > + platform_driver_register(&hidma_mgmt_driver); > > + return 0; > } > module_init(hidma_mgmt_init); > MODULE_LICENSE("GPL v2"); > Acked-By: Sinan Kaya