Message ID | 20210409095305.479229488@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03F9AC43603 for <stable@archiver.kernel.org>; Fri, 9 Apr 2021 10:07:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D0004611AF for <stable@archiver.kernel.org>; Fri, 9 Apr 2021 10:07:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233351AbhDIKHM (ORCPT <rfc822;stable@archiver.kernel.org>); Fri, 9 Apr 2021 06:07:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:50636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233089AbhDIKDs (ORCPT <rfc822;stable@vger.kernel.org>); Fri, 9 Apr 2021 06:03:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A8874611CA; Fri, 9 Apr 2021 10:00:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617962449; bh=oTJFVqVkOb2SiiuOwwu6hrBgOpR/IwOFaRpn4Q+yIpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1XIG1PrmrWAP++lAibdtDNoK2c9KS+mS5DEQjLTGpC3/LDK/PE/8SuWXydeH+zBhk Bvq6M6N9tsP9IOR0AbD46Y9cgWkhm9yehk4ylmibg/4fuBNtN8voxmQbE/bp9l3XUP kD0ACO+KuEdZq9lQGffSc+yIJXZihOH/fPKBh4BE= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Tony Lindgren <tony@atomide.com>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 5.11 02/45] bus: ti-sysc: Fix warning on unbind if reset is not deasserted Date: Fri, 9 Apr 2021 11:53:28 +0200 Message-Id: <20210409095305.479229488@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210409095305.397149021@linuxfoundation.org> References: <20210409095305.397149021@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index a27d751cf219..3d74f237f005 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -3053,7 +3053,9 @@ static int sysc_remove(struct platform_device *pdev) pm_runtime_put_sync(&pdev->dev); pm_runtime_disable(&pdev->dev); - reset_control_assert(ddata->rsts); + + if (!reset_control_status(ddata->rsts)) + reset_control_assert(ddata->rsts); unprepare: sysc_unprepare(ddata);