Received: by 10.213.65.68 with SMTP id h4csp3188347imn; Mon, 2 Apr 2018 23:53:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx48e3Zk6oazzc0eLfmiMRQSxrs//+ycOu8SrdE2ByLfKAkoz/kyyTAofI1nDdhcgV9as6jaX X-Received: by 2002:a17:902:529:: with SMTP id 38-v6mr13091642plf.64.1522738401588; Mon, 02 Apr 2018 23:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522738401; cv=none; d=google.com; s=arc-20160816; b=qD+AWAWPozHDlTc3kkHGV99q+LcJPQoy25auJ+M5ErEEJQSBjbEs/w1QKMPcJM+0Fv abk2SDUXISlqqf8gy9x++mryLQIGheyHFyF72xOa3mJ6jcwkElfZcJLuOWQW60lbTTga HJ0AZUap/RaX2tS/IgWA9ppEuN+6hOSAnhhmSQYU/oh/26LiahjUZS2TbpL7JjqhAzML EA4C93on1xPc+PSeaTbc9HI345ZEckvGj1pwSorFDygfEkNvwDPoT1zdvdSNE6H+2Yvl 5swdRxoWlrJTwUhiTBlmphdN8fOuNZyOgYw51pmXHIHp+ueHhDvRm4ce2sq/d6kfvD3Q V3FQ== 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=K3wBmb+ZD9IYwh7TpmGtzCf8GFh6fdNsNM+MMD25nB0=; b=IYaaGYZhdIYKURpFSS7Vk06I55RmlHa971uQmSRZgADc3OHc+/8bJBlaTCdQZclxNw 7UPGSoDntpwUBq2CMsvdMjIW10Ign2G6zvcspJEbt/pYHEP3J4FayihXcSwJJbsJGTd3 /bydWiGH6XfDHMyUrDboY4RhPNWwqZkoFOZbLs2wr0kKDpFA/rm0vyveA1/qRHWtWGY3 I3Er75kYPDBt5807Fclt5l/L3T61dLJDYSlARNhgHjIzrKqHOcQsOT0Z8nBZuNDCmcvi ISufXEgfnEGIorLwQbhTviSgOM5kII2DeL7ejaXvptGQmH+zDQSuo58wIsJEzVz9L40R dT9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=VmHX1rgk; 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 g12si1524711pgq.754.2018.04.02.23.53.07; Mon, 02 Apr 2018 23:53:21 -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=VmHX1rgk; 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 S1755080AbeDCGvn (ORCPT + 99 others); Tue, 3 Apr 2018 02:51:43 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:38024 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754926AbeDCGvj (ORCPT ); Tue, 3 Apr 2018 02:51:39 -0400 Received: by mail-qk0-f194.google.com with SMTP id 132so17532839qkd.5; Mon, 02 Apr 2018 23:51:38 -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=K3wBmb+ZD9IYwh7TpmGtzCf8GFh6fdNsNM+MMD25nB0=; b=VmHX1rgkDknBTzug7oWPtLmxqZMlJLqepV6rDxo91+j/eF/9X4NhdOaPDyE9Vx4LAH MKJEZ0i51Wtk6Vxp/RsnEyveAWvwS21gizS/W8JzebA3huL3NLjqbmWTYJF6R3unRGDU zoH1dfzG1dUZ43W9WYXVZNr9ME/lB/i3vTyiRYPV3a90zHN5wMlKQmhuPuWdq7qLSy+7 YU1YxCZIMShuE2147Uqu6+BLL2PxMMVy9fP5rg0oIWxLQOsAyuhfEiaTZkrB6nFaNdmX DLSW0HOpNBPPmW11HyXPPnPv+0u0pqQJ+bsTbY2vzTdmV8X00d7RwQ1vRfrhS5So6J+D 6D2g== 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=K3wBmb+ZD9IYwh7TpmGtzCf8GFh6fdNsNM+MMD25nB0=; b=nnKuCEnUdOa9qhuwXTRCHEiLHA/l/L1KiGxGNPVUlv3J8Uos0BfXJlpAM/m2Hey/I1 u1TcaTWzE18TtcaOfxx3DOyLBoBmfWfk7PXHz6rPtJaASECQjBrH3a7TSS0/XNW6sa4P rGwPvawPRzx2IP3vuDZmgn0FUXgj/2SgSAT4Gbf9GfhMq31QjGU3NfSFuHVAgao684Nw xLtPd1lyUp47dZ0fWVlLXG7WzMJ+wXKaTlERmO8rrKlNxZ+sb+4rZLFeHGgGjAb/2Bbe XqcE5BwqwiZa/KTAunwgW4Nkkf23SaECLfy0nG9pFGxLo6IVDVuyN/JjeYxy+XUk77Wb SBjA== X-Gm-Message-State: ALQs6tC5hcrFDIMBabviCng7WK5zBhx6tfoVA7OL3BjHVKhmIGphB5pk auyQBz3pXZjOy7dewRT6V2NLohBT5UjB2YczMFY= X-Received: by 10.55.234.6 with SMTP id t6mr17360802qkj.291.1522738298093; Mon, 02 Apr 2018 23:51:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.185.25 with HTTP; Mon, 2 Apr 2018 23:51:37 -0700 (PDT) In-Reply-To: <20180402142656.26815-3-robert.jarzmik@free.fr> References: <20180402142656.26815-1-robert.jarzmik@free.fr> <20180402142656.26815-3-robert.jarzmik@free.fr> From: Arnd Bergmann Date: Tue, 3 Apr 2018 08:51:37 +0200 X-Google-Sender-Auth: pFRafwfKOeEHKo09MZpmwOVXwME Message-ID: Subject: Re: [PATCH 02/15] ARM: pxa: add dma slave map To: Robert Jarzmik Cc: Daniel Mack , Haojian Zhuang , Bartlomiej Zolnierkiewicz , Tejun Heo , Vinod Koul , Mauro Carvalho Chehab , Ulf Hansson , Ezequiel Garcia , Boris Brezillon , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Nicolas Pitre , Samuel Ortiz , Greg Kroah-Hartman , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Russell King , Linux ARM , Linux Kernel Mailing List , IDE-ML , dmaengine@vger.kernel.org, Linux Media Mailing List , linux-mmc , linux-mtd , Networking , devel@driverdev.osuosl.org, alsa-devel@alsa-project.org 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 On Mon, Apr 2, 2018 at 4:26 PM, Robert Jarzmik wrote: > + > +static const struct dma_slave_map pxa_slave_map[] = { > + /* PXA25x, PXA27x and PXA3xx common entries */ > + { "pxa-pcm-audio", "ac97_mic_mono", PDMA_FILTER_PARAM(LOWEST, 8) }, > + { "pxa-pcm-audio", "ac97_aux_mono_in", PDMA_FILTER_PARAM(LOWEST, 9) }, > + { "pxa-pcm-audio", "ac97_aux_mono_out", PDMA_FILTER_PARAM(LOWEST, 10) }, > + { "pxa-pcm-audio", "ac97_stereo_in", PDMA_FILTER_PARAM(LOWEST, 11) }, > + { "pxa-pcm-audio", "ac97_stereo_out", PDMA_FILTER_PARAM(LOWEST, 12) }, > + { "pxa-pcm-audio", "ssp1_rx", PDMA_FILTER_PARAM(LOWEST, 13) }, > + { "pxa-pcm-audio", "ssp1_tx", PDMA_FILTER_PARAM(LOWEST, 14) }, > + { "pxa-pcm-audio", "ssp2_rx", PDMA_FILTER_PARAM(LOWEST, 15) }, > + { "pxa-pcm-audio", "ssp2_tx", PDMA_FILTER_PARAM(LOWEST, 16) }, > + { "pxa2xx-ir", "rx", PDMA_FILTER_PARAM(LOWEST, 17) }, > + { "pxa2xx-ir", "tx", PDMA_FILTER_PARAM(LOWEST, 18) }, > + { "pxa2xx-mci.0", "rx", PDMA_FILTER_PARAM(LOWEST, 21) }, > + { "pxa2xx-mci.0", "tx", PDMA_FILTER_PARAM(LOWEST, 22) }, > + { "smc911x.0", "rx", PDMA_FILTER_PARAM(LOWEST, -1) }, > + { "smc911x.0", "tx", PDMA_FILTER_PARAM(LOWEST, -1) }, > + { "smc91x.0", "data", PDMA_FILTER_PARAM(LOWEST, -1) }, This one is interesting, as you are dealing with an off-chip device, and the channel number is '-'1. How does this even work? Does it mean > + /* PXA25x specific map */ > + { "pxa25x-ssp.0", "rx", PDMA_FILTER_PARAM(LOWEST, 13) }, > + { "pxa25x-ssp.0", "tx", PDMA_FILTER_PARAM(LOWEST, 14) }, > + { "pxa25x-nssp.1", "rx", PDMA_FILTER_PARAM(LOWEST, 15) }, > + { "pxa25x-nssp.1", "tx", PDMA_FILTER_PARAM(LOWEST, 16) }, > + { "pxa25x-nssp.2", "rx", PDMA_FILTER_PARAM(LOWEST, 23) }, > + { "pxa25x-nssp.2", "tx", PDMA_FILTER_PARAM(LOWEST, 24) }, > + { "pxa-pcm-audio", "nssp2_rx", PDMA_FILTER_PARAM(LOWEST, 15) }, > + { "pxa-pcm-audio", "nssp2_tx", PDMA_FILTER_PARAM(LOWEST, 16) }, > + { "pxa-pcm-audio", "nssp3_rx", PDMA_FILTER_PARAM(LOWEST, 23) }, > + { "pxa-pcm-audio", "nssp3_tx", PDMA_FILTER_PARAM(LOWEST, 24) }, > + > + /* PXA27x specific map */ > + { "pxa-pcm-audio", "ssp3_rx", PDMA_FILTER_PARAM(LOWEST, 66) }, > + { "pxa-pcm-audio", "ssp3_tx", PDMA_FILTER_PARAM(LOWEST, 67) }, > + { "pxa27x-camera.0", "CI_Y", PDMA_FILTER_PARAM(HIGHEST, 68) }, > + { "pxa27x-camera.0", "CI_U", PDMA_FILTER_PARAM(HIGHEST, 69) }, > + { "pxa27x-camera.0", "CI_V", PDMA_FILTER_PARAM(HIGHEST, 70) }, > + > + /* PXA3xx specific map */ > + { "pxa-pcm-audio", "ssp4_rx", PDMA_FILTER_PARAM(LOWEST, 2) }, > + { "pxa-pcm-audio", "ssp4_tx", PDMA_FILTER_PARAM(LOWEST, 3) }, > + { "pxa2xx-mci.1", "rx", PDMA_FILTER_PARAM(LOWEST, 93) }, > + { "pxa2xx-mci.1", "tx", PDMA_FILTER_PARAM(LOWEST, 94) }, > + { "pxa3xx-nand", "data", PDMA_FILTER_PARAM(LOWEST, 97) }, > + { "pxa2xx-mci.2", "rx", PDMA_FILTER_PARAM(LOWEST, 100) }, > + { "pxa2xx-mci.2", "tx", PDMA_FILTER_PARAM(LOWEST, 101) }, > +}; Since more than half the entries in here are chip specific, maybe it would be better to split that table into three and have a copy for each one in arch/arm/mach-pxa/pxa{25x.27x.3xx}.c? Does that mean it's actually a memory-to-memory transfer with a device being on the external SRAM interface? Arnd