Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4390398imm; Tue, 7 Aug 2018 00:17:54 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcyeyIdA/Rmf7/+wVOUvKgHyjk4I2QXLQNX9e7Hq72WHKooN9o85SlG4krMf2yCQcPDk1S9 X-Received: by 2002:a62:642:: with SMTP id 63-v6mr20501605pfg.42.1533626274044; Tue, 07 Aug 2018 00:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533626274; cv=none; d=google.com; s=arc-20160816; b=q11g2JHX8n0KQczLa4vCxJyGENEYxSjII5VvuexwfC1NJCTc0aqffecjqIclN0R78F MzdV7vNVy+VdirunmkQa6KK5psv1rVJyGcMCF34JwGG/PcjQ0RttilgA7+QrnVC5Nhrk Qp7aNTEquwUirzltp/3wzTaqX0x6ocTU2bFU8tEoGKbSvZDFKz/xUKRgNIhjfGZeVHw0 gsHH506bBoEgel/u8lgV/jDejOsaIqiZnohoh+rzPMx15XvwuJWADixLn7S/m8lHPjaw 8E7bJeMxQvpMYqZuO3bZHaA4AQPPye35YXT7Lx2nWlvoSQrOmUP++L2HxU+IBGkMrdbZ vSBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter:arc-authentication-results; bh=3H6OCRqbWjm8hTKGZ4uPKBglbLk/TXQ3GZlfodJ4rEQ=; b=Mo/6HdaMmBMgcHSzrQaFE6xDL5/FmDHKUBJD+07hL07nveKiB4f9KkwOExb02IRsSX FNlqvbPuZAO97/odb3QEI0ZpHOt3YQ0cWatS4JYn1snPqLQ0jouDi2MYe0KXmf++cqVD bmXY3jFAIh8+7viubBvMY+v5tuuw3U0zmiiDpr85Qy+4YhEf2VYhps6ofpNKcNiYBVNg k25AQ/RmK4rpIXWe+zcOWbB3LFPlZ8CLY3QqGd8euaMkOm2x036If5tJh/ospmumEbRE e253IZtkxSaHLopJxyOxI1bKEN/Hq0fSc6k1XgoS/x8cJWoCr2VjFm20M/4dUeTeMHp5 Vluw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@iluvatar.ai header.s=809B2F8E-810B-11E8-86FD-A0A654EEFFEB header.b=OZbOhb7f; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=iluvatar.ai Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s36-v6si526318pld.8.2018.08.07.00.17.39; Tue, 07 Aug 2018 00:17:54 -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; dkim=pass header.i=@iluvatar.ai header.s=809B2F8E-810B-11E8-86FD-A0A654EEFFEB header.b=OZbOhb7f; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=iluvatar.ai Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388748AbeHGJ3N (ORCPT + 99 others); Tue, 7 Aug 2018 05:29:13 -0400 Received: from mail.iluvatar.ai ([58.213.90.100]:57189 "EHLO mail.iluvatar.ai" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387881AbeHGJ3N (ORCPT ); Tue, 7 Aug 2018 05:29:13 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.iluvatar.ai (Postfix) with ESMTP id 8C91814265792; Tue, 7 Aug 2018 15:19:47 +0800 (CST) Received: from mail.iluvatar.ai ([127.0.0.1]) by localhost (mail.iluvatar.ai [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id cT4cHYg00AQC; Tue, 7 Aug 2018 15:19:47 +0800 (CST) Received: from localhost (localhost [127.0.0.1]) by mail.iluvatar.ai (Postfix) with ESMTP id 23ADE1070E19D; Tue, 7 Aug 2018 15:19:47 +0800 (CST) DKIM-Filter: OpenDKIM Filter v2.9.2 mail.iluvatar.ai 23ADE1070E19D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iluvatar.ai; s=809B2F8E-810B-11E8-86FD-A0A654EEFFEB; t=1533626387; bh=3H6OCRqbWjm8hTKGZ4uPKBglbLk/TXQ3GZlfodJ4rEQ=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=OZbOhb7fgwLD9oZDJqW5Oe/xLX9epJwYzqnY1MLpPYXfgOo5TdOJVziOvBFH+mS5I l4uuamuODDv56LaqQpKre1DLZFAQNSK7JE4370OV1HDvy+PuTIHpOcjocRAIsCRYZc RRmwF5kanBJkYPd1K6qCVUgW4djFHGX23rIc8jF0= X-Virus-Scanned: amavisd-new at iluvatar.ai Received: from mail.iluvatar.ai ([127.0.0.1]) by localhost (mail.iluvatar.ai [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sbxf3yT6VNAy; Tue, 7 Aug 2018 15:19:47 +0800 (CST) Received: from hsj-Precision-5520 (unknown [192.168.128.73]) by mail.iluvatar.ai (Postfix) with ESMTPSA id 93CB413477342; Tue, 7 Aug 2018 15:19:46 +0800 (CST) Date: Tue, 7 Aug 2018 15:16:05 +0800 From: Huang Shijie To: Peter Ujfalusi Cc: Alexandre Bailon , Tony Lindgren , vkoul@kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, dave.jiang@intel.com, radhey.shyam.pandey@xilinx.com, appana.durga.rao@xilinx.com, jmkrzyszt@gmail.com, gomonovych@gmail.com, keescook@chromium.org, horms+renesas@verge.net.au, geert+renesas@glider.be, shawnguo@kernel.org, michal.simek@xilinx.com, baohua@kernel.org, ludovic.desroches@microchip.com, linus.walleij@linaro.org, david.brown@linaro.org Subject: Re: [PATCH 09/46] dmaengine: cppi41: use dmaenginem_async_device_register to simplify the code Message-ID: <20180807071604.GA5576@hsj-Precision-5520> References: <20180803072016.21544-1-sjhuang@iluvatar.ai> <20180803072016.21544-10-sjhuang@iluvatar.ai> <43458794-d124-13df-c944-e473dc8ee1c2@ti.com> <20180806032847.GA4452@hsj-Precision-5520> <0f35be3f-24c0-f7e4-66c8-e9b7e5c01590@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0f35be3f-24c0-f7e4-66c8-e9b7e5c01590@ti.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 07, 2018 at 10:01:47AM +0300, Peter Ujfalusi wrote: > Hi, > > On 2018-08-06 06:28, Huang Shijie wrote: > It might be only me, but I like to keep the resource teardown in a > reverse order of their creation. If everything is devm then it is granted. Yes. If everything is devm then it is granted.. > > In case of cppi4 it looks safe after reading in to the DMAengine core, > module core and platform core code. > > But does the removed three lines worth over the clarity of how the > module removal is proceeding? Please keep the driver as it is if you like the traditional way. :) The DMA driver's maintainer has the right to decide whether to use the dmaenginem_async_device_register or not. Thanks Huang Shijie