Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1485476ybl; Thu, 30 Jan 2020 00:20:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzbt8UPEdMz0Uv7I6qWTtD4fzOPjJEy8x3yfSR5pubbhnM4rpVc2HBbRQjqpHaKAD8E6X98 X-Received: by 2002:aca:f20b:: with SMTP id q11mr2062112oih.78.1580372413266; Thu, 30 Jan 2020 00:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580372413; cv=none; d=google.com; s=arc-20160816; b=PwkpBow2VoCUvbtt0IjuvM5glxeQgjXnxf7tnxzGcYMbRtp/mWSQIYT4xjXhA2d+8l aBuzjaoXET3JnWW6wPl36qeat4OUlnePXqaLMNzy0RJVacQKL/BuHQT0ju/Q3dHFIN8C kymWdQEAAzZpUuvBAwJne8NAyJYXNE+MSNGCZX6qHiatWKiy0P76dACyrdYX8HcXhwSC 700POGCg4d/oHSQaIE+EYgMhqh99202sT/szZJNAioflth6lI+XbghaPp11K0MC2OuQL SHbvsyQn3EPEtlFOXPYxiDtFj3xvF5C/bABLFfEoNWg7gXe2vzZYcY4UiMax/aQlELkO CTWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=s3I41ZfIrOT79LBysL0u65vz33Hk4LOsapeDNAzlOAI=; b=hfTQml7b9wIhn2QQIqfkr/aaGSz9DmL1xAH4skOWNUPaxJDiSaPfPx5y/oBE82r5wV QZyG1x06UCOm0urXs81c1PVT0Oe8ucbP22bW3oCEhymaGMIWn4M+/xpp+OYNxBLHcjqJ +d+l1a1PmSb5p3Y+b+T75GvvQ9Q5hlId7HldPrIMjfRYwkKXCHpBd8haCtnFmixQt0aL lIPIMIid68SsDAgn1lG62QU6zv19QlQRouXwdG5Map+4zgQyFNC5OKZIVrTpyZetuJjm YgOTbhC4+TQ+cbnkDFGz4tawqw6WISBAuYUoB2e2c36WAqRWzwMMclKPnm0TQpxeSlGj wB2w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q6si3109685otg.248.2020.01.30.00.20.01; Thu, 30 Jan 2020 00:20:13 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727027AbgA3ITI (ORCPT + 99 others); Thu, 30 Jan 2020 03:19:08 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:35490 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbgA3ITH (ORCPT ); Thu, 30 Jan 2020 03:19:07 -0500 Received: by mail-ot1-f66.google.com with SMTP id r16so2362980otd.2; Thu, 30 Jan 2020 00:19:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s3I41ZfIrOT79LBysL0u65vz33Hk4LOsapeDNAzlOAI=; b=Q9ARLxDxhspwnHkBdQqVpmQx85unCWld7wiALi2zP6y3dXG3i3htU4YAtPQTkoao6N lun8KzIKIuAmCDO5n1B3JMEAg1nYy/EBNNHmqFB6ENL/ZFPG2XSLRYqKSqkwAWvH7oWO of7b8zcGM1W4uIzidabriQ1XJK1+Xpb4clnDV1WLQeOEoop4cFP1No+fQwrNHg8MiM2D lc0qXwg3fsF6ULkSG/umuFLXZlldmS1T/GDdTf9eKXNPF0HifOIBZRdQdUUEgvbensOC /NERPOKu7SIOSXNONnP130geuwLZUL+6g3opP6uJYek+xHNw1WtCkd7BWjBzudQZfVS/ 4L1A== X-Gm-Message-State: APjAAAX66znWVg6pJmqT5Z8RnhjSX/AP6LkoecUQl8WXymfc0sDz406w hznERwkDqOctm+nxwnjCsUZ7aC2Q6WATwOroHWA= X-Received: by 2002:a9d:8f1:: with SMTP id 104mr2494065otf.107.1580372345508; Thu, 30 Jan 2020 00:19:05 -0800 (PST) MIME-Version: 1.0 References: <20200130070834.17537-1-m.szyprowski@samsung.com> In-Reply-To: <20200130070834.17537-1-m.szyprowski@samsung.com> From: Geert Uytterhoeven Date: Thu, 30 Jan 2020 09:18:54 +0100 Message-ID: Subject: Re: [PATCH v2] dmaengine: Fix return value for dma_requrest_chan() in case of failure To: Marek Szyprowski Cc: dmaengine@vger.kernel.org, ALSA Development Mailing List , Linux Kernel Mailing List , linux-samsung-soc , Mark Brown , Geert Uytterhoeven , Vinod Koul , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Peter Ujfalusi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marek, s/dma_requrest_chan/dma_request_chan/ in one-line summary. On Thu, Jan 30, 2020 at 8:08 AM Marek Szyprowski wrote: > Commit 71723a96b8b1 ("dmaengine: Create symlinks between DMA channels and > slaves") changed the dma_request_chan() function flow in such a way that > it always returns EPROBE_DEFER in case of channels that cannot be found. > This break the operation of the devices which have optional DMA channels > as it puts their drivers in endless deferred probe loop. Fix this by > propagating the proper error value. > > Fixes: 71723a96b8b1 ("dmaengine: Create symlinks between DMA channels and slaves") > Signed-off-by: Marek Szyprowski Sorry for breaking this, and thanks a lot for your fix! Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds