Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp942335imm; Fri, 22 Jun 2018 07:51:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK/6QKJN+A2Yx7mzu7JFDLNDSrAw+4V7jHXrqksuphsMx6aQ21mq0TSJ/4aTJUMzNxihAXD X-Received: by 2002:a63:67c4:: with SMTP id b187-v6mr1705721pgc.86.1529679116182; Fri, 22 Jun 2018 07:51:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529679116; cv=none; d=google.com; s=arc-20160816; b=K0URgcS8BKMQp+C98RhPfZMMtvpJYrU1PjG3UcZ3xx0Vnrm13Fe9VX3OlBNByScmWU uedUyHJmKfxI3vnUBDwVKk1weKR8bwjVzz/Wq+vbqW4m5k3QuA4+ahCGoWkpSvZEH2WR O33CsqwnbQfbKEEQXv/FP1wjLdYIakbRHD4XTYfr9sqKy2R+5P4YZgRLFBMfio3naVDz zFtEF7FaxH+iOIROdxPIpg3rWooD7I4LnRnwKRTC9kivJGrNqqtJ3rZCouxWIkFG/yb0 XxzeEqEZu2MbOlhEZCWrWbc4g2Jk7tsLbv1yAsRH5CZDazxmuARw1mVpo2CBp9zAuTmK p7Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=fhoTKI7fYZgEnr83hIEJYp25jT9NfWHAKmWzW8NqC/8=; b=po0+jgp98olWYCgXN3laso+ISUbCI9kNSgOXaxBZv5MMVSlVGhOpFVrm6ZLb8K/1+W 27+sUyodzMG/iygK4Tyx506Un3gh1GZUTXzn8KumnnafYQp7kM5mCK5V7boDPL+3qSag ZFX/xb1kNPWobNz5Xxd29x1WJOyNI3+y1WKTdVX9J4qjjVFxpv96rmeJFxanVUpV+CXY wh9V+RnzDKooH8OIGkH5njB+aNi6qdOl9xRN3/ipkoV7O0NOyB2tdKT6xiFA4Lv0SOUt Ov1lVaFhygF1VLcZ00wO6XfKwmHln2e7lzklq+r81+layjTGxNYy+55IRv9EKoRMzHTk Fb5A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1-v6si7482194plb.8.2018.06.22.07.51.41; Fri, 22 Jun 2018 07:51:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933741AbeFVOu1 (ORCPT + 99 others); Fri, 22 Jun 2018 10:50:27 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:54340 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933472AbeFVOuD (ORCPT ); Fri, 22 Jun 2018 10:50:03 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 066E0288FB8 From: Sebastian Reichel To: "Luis R. Rodriguez" , Greg Kroah-Hartman , Dan Williams , Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Sebastian Reichel Subject: [PATCH 2/2] dmaengine: imx-sdma: request firmware with FW_OPT_NO_WARN Date: Fri, 22 Jun 2018 16:49:51 +0200 Message-Id: <20180622144951.17464-3-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180622144951.17464-1-sebastian.reichel@collabora.co.uk> References: <20180622144951.17464-1-sebastian.reichel@collabora.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Request firmware with FW_OPT_NO_WARN. The driver works without the firmware by using the one supplied in ROM. There is already an info message, that informs about this. Signed-off-by: Sebastian Reichel --- drivers/dma/imx-sdma.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index f077992635c2..415ffe68ff77 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -1599,11 +1599,13 @@ static int sdma_event_remap(struct sdma_engine *sdma) static int sdma_get_firmware(struct sdma_engine *sdma, const char *fw_name) { + struct firmware_opts fw_opts = { + .optional = true, + }; int ret; - ret = request_firmware_nowait(THIS_MODULE, - FW_ACTION_HOTPLUG, fw_name, sdma->dev, - GFP_KERNEL, sdma, sdma_load_firmware); + ret = request_firmware_async(fw_name, &fw_opts, sdma->dev, + sdma, sdma_load_firmware); return ret; } -- 2.17.1