From patchwork Fri May 3 14:32:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16654 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f198.google.com (mail-ve0-f198.google.com [209.85.128.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A720C23905 for ; Fri, 3 May 2013 14:34:23 +0000 (UTC) Received: by mail-ve0-f198.google.com with SMTP id 15sf3030006vea.5 for ; Fri, 03 May 2013 07:34:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=e9R1WNmRFeGyzH37tVrhgSZyT9l+8aPDmK6pXhwmS6g=; b=JzBHqZMk/lFsAtY5SsyBgLSkVsav9xNbf/6S5VqP8rBVNbh0oNn4vvtGKzeD1+rbJ+ uolrQ+m5kbxUO3hrqvMpuQ4698LX1g172RWRH1pTYAkoS3durBsqWZPzv+tosNJ3UhQx cKVP60mdebHkpiumXeqoip6TM0kMeRs4zt+lqaOGL1Z5jNd4Z0TTM9q5nYS09iNnAkXM 0yidv07taPdCs7eN/NPmBDLckaRT2xeNpd4QkFR85KeU7bODIRaVq31U+XKoX4UTclvZ L45O3jGI8RhrY74IaBZbCr0pw3fxwBv9RvPOWkwRqXFdwBFZbwlsnkDLuvfXh6dE4lJw +tDQ== X-Received: by 10.236.91.206 with SMTP id h54mr8294086yhf.27.1367591653604; Fri, 03 May 2013 07:34:13 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.85.226 with SMTP id k2ls188919qez.32.gmail; Fri, 03 May 2013 07:34:13 -0700 (PDT) X-Received: by 10.58.85.134 with SMTP id h6mr3753482vez.18.1367591653301; Fri, 03 May 2013 07:34:13 -0700 (PDT) Received: from mail-ve0-x229.google.com (mail-ve0-x229.google.com [2607:f8b0:400c:c01::229]) by mx.google.com with ESMTPS id gr7si5146998vdc.142.2013.05.03.07.34.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 07:34:13 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::229; Received: by mail-ve0-f169.google.com with SMTP id jz10so1536837veb.14 for ; Fri, 03 May 2013 07:34:13 -0700 (PDT) X-Received: by 10.58.173.36 with SMTP id bh4mr3765792vec.9.1367591653191; Fri, 03 May 2013 07:34:13 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp25196veb; Fri, 3 May 2013 07:34:12 -0700 (PDT) X-Received: by 10.180.187.234 with SMTP id fv10mr8126860wic.29.1367591652200; Fri, 03 May 2013 07:34:12 -0700 (PDT) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [2a00:1450:400c:c05::230]) by mx.google.com with ESMTPS id en13si3591770wid.125.2013.05.03.07.34.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 07:34:12 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::230 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c05::230; Received: by mail-wi0-f176.google.com with SMTP id hq12so675818wib.3 for ; Fri, 03 May 2013 07:34:11 -0700 (PDT) X-Received: by 10.180.77.12 with SMTP id o12mr13827055wiw.0.1367591651712; Fri, 03 May 2013 07:34:11 -0700 (PDT) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPSA id o3sm17516019wia.2.2013.05.03.07.34.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 07:34:10 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, srinidhi.kasagar@stericsson.com, Lee Jones , Vinod Koul , Dan Williams , Per Forlin , Rabin Vincent Subject: [PATCH 23/63] dmaengine: ste_dma40: Also report the number of logical channels Date: Fri, 3 May 2013 15:32:09 +0100 Message-Id: <1367591569-32197-24-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1367591569-32197-1-git-send-email-lee.jones@linaro.org> References: <1367591569-32197-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQk1hlB2N8A6Op0AiWr9bMl0fd7YcLfc3hnU1SuttcrNAnjJFwVzHZkcldQjNgmMEmdZ5S/L X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Now we know the total of physical and logical channels, we may as well report them within the information log. Before: dma40 dma40.0: hardware revision: 3 @ 0x801c0000 with 8 physical channels After: and 256 logical channels Cc: Vinod Koul Cc: Dan Williams Cc: Per Forlin Cc: Rabin Vincent Signed-off-by: Lee Jones --- drivers/dma/ste_dma40.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index e5f0e3c..6d81f44 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3213,8 +3213,9 @@ static struct d40_base * __init d40_hw_detect_init(struct platform_device *pdev) num_log_chans = num_phy_chans * D40_MAX_LOG_CHAN_PER_PHY; - dev_info(&pdev->dev, "hardware revision: %d @ 0x%x with %d physical channels\n", - rev, res->start, num_phy_chans); + dev_info(&pdev->dev, + "hardware rev: %d @ 0x%x with %d physical and %d logical channels\n", + rev, res->start, num_phy_chans, num_log_chans); base = kzalloc(ALIGN(sizeof(struct d40_base), 4) + (num_phy_chans + num_log_chans + ARRAY_SIZE(dma40_memcpy_channels)) *