Received: by 10.192.165.156 with SMTP id m28csp238544imm; Thu, 12 Apr 2018 21:00:35 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+EPvEGOuulQEJaDDAp9I0knR0nzGzfoS7ZFWdUxzvl2PcXzDUNEmd1QQmFKIid5AIJv54K X-Received: by 2002:a17:902:7291:: with SMTP id d17-v6mr3717344pll.218.1523592035089; Thu, 12 Apr 2018 21:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523592035; cv=none; d=google.com; s=arc-20160816; b=hcr3fxf/oumnwVIIeHBSw3McBxwleUXR8UboffeMxCSp4Uo//9wlsPXteYR7rgZFW4 u36hfZPrb8Ztc0pkIHQJDVAxUjCI4zYFwa3kFrqPuAvbc8GL2Cbcnt0/0LLN1LId/inx L+RjXOzqyoM0S+cY29xZ2OU6vJfyYxzevoehpJpdGxF6GLxahsCrKF/udNuvtLKecuVl E/LcKoyn2dKC6+s3Jw26sdHiTWpK/Jtq6fNBJ2sb17NK9PijNvgdYKUxvaymmL7XdrX7 zuLTdj094XsxfRXtUJklOpigNuQoZq+hbaDddlVypaqgve4mI1jRMldWYSBIMJ81w0br TapQ== 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:arc-authentication-results; bh=GKGBpewbzjNDUOY5pX56NohHE/UUjiXtoBqhnn9DGzg=; b=AENqEgKlJ/zxMgnPETQI7Pf3qFmtO4+XdJ+gPeLdlmMXYTrV1Giv1W+bLEhJETVKbN G0ED6PkOb8gs01DhYpH7a/dMROr5nxEtBQluT9tGZMPioELoWyTmr2kVzcxV0+in9rqw 4GjHxKmufnCczqM8jVCAk3XShDDnDpjrAsB7WuTPli2HpNUi/iW7cG1ag/0DlX98CZ5W PA/zgpnmzQeK5wRfoJP7oRdfOA1FIrTWzob/Hl4HCyiKXmbNHzVgLF8/CFsb1mSpYc+h YW4qUwLOiSgshwV5ChwUWzdRgWVUOqwfFkbICSsOMwFk00+9S7HmoTYrEAJXHDdCPM7p tLZQ== 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 f8-v6si4820687plk.538.2018.04.12.21.00.21; Thu, 12 Apr 2018 21:00:35 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753223AbeDMD6H (ORCPT + 99 others); Thu, 12 Apr 2018 23:58:07 -0400 Received: from mga04.intel.com ([192.55.52.120]:1746 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752594AbeDMD6F (ORCPT ); Thu, 12 Apr 2018 23:58:05 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Apr 2018 20:58:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,444,1517904000"; d="scan'208";a="220061837" Received: from vkoul-udesk7.iind.intel.com (HELO localhost) ([10.223.84.143]) by fmsmga005.fm.intel.com with ESMTP; 12 Apr 2018 20:58:02 -0700 Date: Fri, 13 Apr 2018 09:32:33 +0530 From: Vinod Koul To: Pierre-Yves MORDRET Cc: Maxime Coquelin , Alexandre Torgue , Dan Williams , M'boumba Cedric Madianga , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] dmaengine: stm32-mdma: Fix incomplete Hw descriptors allocator Message-ID: <20180413040233.GJ6014@localhost> References: <1523457879-9869-1-git-send-email-pierre-yves.mordret@st.com> <1523457879-9869-3-git-send-email-pierre-yves.mordret@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1523457879-9869-3-git-send-email-pierre-yves.mordret@st.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 11, 2018 at 04:44:39PM +0200, Pierre-Yves MORDRET wrote: > struct stm32_mdma_desc { > struct virt_dma_desc vdesc; > u32 ccr; > - struct stm32_mdma_hwdesc *hwdesc; > - dma_addr_t hwdesc_phys; > bool cyclic; > u32 count; > + struct stm32_mdma_desc_node node[]; some ppl use node[0] for this but i think either is fine.. > static void stm32_mdma_dump_hwdesc(struct stm32_mdma_chan *chan, > - struct stm32_mdma_hwdesc *hwdesc) > + struct stm32_mdma_desc_node *node) > { > - dev_dbg(chan2dev(chan), "CTCR: 0x%08x\n", hwdesc->ctcr); > + dev_dbg(chan2dev(chan), "CTCR: 0x%08x\n", node->hwdesc->ctcr); this is noise for this patch and IIUC you should be able to pass node->hwdesc and keep fn same? -- ~Vinod