From patchwork Tue Sep 29 10:59:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 263415 Return-Path: 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=-13.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, 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 4C7C1C4727F for ; Tue, 29 Sep 2020 11:03:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 05AB121734 for ; Tue, 29 Sep 2020 11:03:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601377386; bh=elhUuUYeitecFKv+HAQ6qup1d4TvLQjxSm9fmjbkcbE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=cTHRTfLXh/FUE4bHMGyGEnV/V6xbzWs9QItXIGopfgqzWZS/Kak0CV4X+ToRISbqo rw4F1malhQdyk+M/qPBRMdpe5bTyJLkaNBcuxEMzoibFsqiMsrl5nlLkCwP4LmzUqW fIZJ+BJu7NKf5Vkl8lGCJ0EhBPfI5zldp7tTM41o= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728346AbgI2LDF (ORCPT ); Tue, 29 Sep 2020 07:03:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:38516 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728314AbgI2LC7 (ORCPT ); Tue, 29 Sep 2020 07:02:59 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 09EEE21734; Tue, 29 Sep 2020 11:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601377378; bh=elhUuUYeitecFKv+HAQ6qup1d4TvLQjxSm9fmjbkcbE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RGm+j+uQWT2op1QkU3FbcTUxA/WESB+IPaBeA5sZT0Eemc4P/4k9LQbrpKiAs0/yk Bmr/vSNO+j/Z4YRBWsQiaANquQ6Y4d4xDHMFofEIfij4lCa9qlO4JGNz1M51Hk/6gg sG4g10LnpFnKtz4GJx9eVDc1fD53vCM5qvz7RQSM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Russell King , Mark Brown , Sasha Levin Subject: [PATCH 4.4 15/85] ASoC: kirkwood: fix IRQ error handling Date: Tue, 29 Sep 2020 12:59:42 +0200 Message-Id: <20200929105928.976856810@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200929105928.198942536@linuxfoundation.org> References: <20200929105928.198942536@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Russell King [ Upstream commit 175fc928198236037174e5c5c066fe3c4691903e ] Propagate the error code from request_irq(), rather than returning -EBUSY. Signed-off-by: Russell King Link: https://lore.kernel.org/r/E1iNIqh-0000tW-EZ@rmk-PC.armlinux.org.uk Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/kirkwood/kirkwood-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/kirkwood/kirkwood-dma.c b/sound/soc/kirkwood/kirkwood-dma.c index dbfdfe99c69df..231c7d97333c7 100644 --- a/sound/soc/kirkwood/kirkwood-dma.c +++ b/sound/soc/kirkwood/kirkwood-dma.c @@ -136,7 +136,7 @@ static int kirkwood_dma_open(struct snd_pcm_substream *substream) err = request_irq(priv->irq, kirkwood_dma_irq, IRQF_SHARED, "kirkwood-i2s", priv); if (err) - return -EBUSY; + return err; /* * Enable Error interrupts. We're only ack'ing them but