Received: by 10.192.165.156 with SMTP id m28csp523177imm; Fri, 13 Apr 2018 03:23:38 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Oe1m48PFbVwSJn5rbQoHexTgGf6J4wAhrLbgxwQoPXzgjAUI8HtJfD0It1BdhlXnABi1z X-Received: by 2002:a17:902:51ee:: with SMTP id y101-v6mr4605997plh.359.1523615018032; Fri, 13 Apr 2018 03:23:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523615017; cv=none; d=google.com; s=arc-20160816; b=rqsTo66M3YQ7w+ZK4zEZLNxYoZv0CC0F7uJ9FbvNACNtB6imx0jwpSnna4wlHF326F qqHsky5kmMKJdxQwmodmX2CQdjJpnUQrSL8W10KEHin0jhz/Cr6l3nlhFXOPQQlV0hn5 L0PacYlO39INnh+jQNci4URernoK/2PPM4Q35/qcGvHC1CZY8rpSxKFV0jtA21AU9bq0 8HK3Y5zpWKbTXHseg5NGKswplkmoTq8PQdkDpTIF6JETw0hZhtNUYSX1/WhYLbw00t82 nRC+Wk8INUAwKz+ZLfg25qoWNcJsz97hYtOoZ4/tfqXGNcXziQGwsitgzjwlNqBEdJyg 2Z2Q== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=VPq1frdIdvnUFUAhICk8/5VgspUk4r7L6Iz1CnLNojo=; b=Wquxpp4TPUrvlTeRzPeFLGQ2spRDzV3h9AXv3YLC51uFFwwixtOdavOofFut/e3AWr BdZuDKK3+slCT/3SftucLJQepnfUcNrCm7h+IxTGftnjWHjpncKzgMPrWXNVc/lltq30 ylv91Z9VytkDo3wY8QPuOnh629Vrt4n1QpRFg62f7lO+jZZJkoCl2IkaUm6pK3t4gYnI 48i1k+ZZYR1k84VpKI6cIuxdMiezDC+xzgXWpymAekkGJCqQbenPDtV+NfCUFuhXh+nw CmNc5ULlOX8tRyFXSvXhiOJEJ9nt6M8aJwSC8Qs0aKs1jaXP0pg83Pl84w9z06kNqOzT oxAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MQMHK693; 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 u26si3885389pge.692.2018.04.13.03.23.24; Fri, 13 Apr 2018 03:23:37 -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=fail header.i=@gmail.com header.s=20161025 header.b=MQMHK693; 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 S1753421AbeDMIjw (ORCPT + 99 others); Fri, 13 Apr 2018 04:39:52 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:35078 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960AbeDMIjt (ORCPT ); Fri, 13 Apr 2018 04:39:49 -0400 Received: by mail-qk0-f195.google.com with SMTP id c188so8035901qkg.2; Fri, 13 Apr 2018 01:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VPq1frdIdvnUFUAhICk8/5VgspUk4r7L6Iz1CnLNojo=; b=MQMHK693ndSbkCkUDPsXI8KqhuBM39MaaVxRwFWqDOHw8IrXZQSJJnpCpbABLqjmyy dDPqp3Utze9e5K0f7YTzsIvO0ikrrXJR0p++0La4LD8EqXKIK2bBsfxrlLX7EC1B7mMy ZT6902E1O4chmOxJd89UNncjY57FynVlVvmz1upVke1ifV6IeEX28k6H1ZCa8QGF3OBG 7xuhjEwmMnVE0vKp3tZaZzp6+nhxM0gQC5jS2ScWIX8tndrcVt+BVdzDdJpNgjqsAEZF qZXN2Ii0JVNm5yXiDPzK+pJDcLdJ7h13CPFfHZqy8gCOE+O853V1LEe4PO/5quQIA+Qy qwYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VPq1frdIdvnUFUAhICk8/5VgspUk4r7L6Iz1CnLNojo=; b=HFHpSurroguWDahz4Iz+Kmqx7cvXWcZ/JjusuVK9NFml4n1RoJNLW4gDasAXwcFDN5 58I5CL9sPv8P/AfBBCC5uRqJpd9aIYvBshXw2mPayFJxX0EOLwuFPBGuqQkEoTzJStBt H1RNPx8xqMWRc9J6a4AkjzLvQKZN8mkQJMwyp3/1OHD6Fgm32vHM+WcK9LBGRZGZMyh2 Fd0z7Tp4xOGFgCMsCD1VuWI7KopcO86qJK+DF7Y9XV0RtJg+FNNzAKciEOk9s8nahji8 8ocT5BOmcHrGBWr4s8nvACoxNcUasMNxsfcSwwr1osWkG/4bCXsO4uxi6/EtCK5wNWm1 vKbA== X-Gm-Message-State: ALQs6tC/YrutB9hjF0uqB52IJN35VaKx7Z7U8R4fwlW1TmJtGyfHujXV 9ghKDPN1Ul0mi3YmjbX9WYX0dFR2EsoD5ysmLBE= X-Received: by 10.55.121.133 with SMTP id u127mr3548226qkc.130.1523608788796; Fri, 13 Apr 2018 01:39:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.23.67 with HTTP; Fri, 13 Apr 2018 01:39:48 -0700 (PDT) In-Reply-To: <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> <20180413040233.GJ6014@localhost> From: Geert Uytterhoeven Date: Fri, 13 Apr 2018 10:39:48 +0200 X-Google-Sender-Auth: Z3I443S5LoBuJBfwZqc5fxJ9QCc Message-ID: Subject: Re: [PATCH v2 2/2] dmaengine: stm32-mdma: Fix incomplete Hw descriptors allocator To: Vinod Koul Cc: Pierre-Yves MORDRET , Alexandre Torgue , Linux Kernel Mailing List , dmaengine@vger.kernel.org, Maxime Coquelin , "M'boumba Cedric Madianga" , Dan Williams , Linux ARM 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 Vinod, On Fri, Apr 13, 2018 at 6:02 AM, Vinod Koul wrote: > 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.. node[] is the correct one, node[0] may hide future bugs, cfr. commit a158531f3c92467d ("gpio: 74x164: Fix crash during .remove()") 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