From patchwork Thu Apr 18 10:12:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 16209 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f197.google.com (mail-qc0-f197.google.com [209.85.216.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 558A223974 for ; Thu, 18 Apr 2013 10:13:49 +0000 (UTC) Received: by mail-qc0-f197.google.com with SMTP id b14sf1863403qcs.8 for ; Thu, 18 Apr 2013 03:13:12 -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=ho4EQA/eMdREgoqM8UqQ0JmuZDQMkuBFZ11saW8KD34=; b=btH4qswmWBqNi8bmkTZ6ytjSqQ8jajK4y1/1Uhsog3q81+7o3Hc8sjkj0R9DSY4LiL c0EORLAB3VqXPh9+6keHkwPTxS2kS7otCGztcu12sxCKidlnXwAzSwBYa48x1cdkOlT8 g1ow9/neDWNnNfEGNelfg7qHED9I/aB9yblVXklCn0nui++H97tS859HXSWOFWC+eA6t mNTnm87XBF0FHm4EZdpD2bxnfPF6hCeBvXKHSRa7kMhkOylD0/aqG2OoUa1IckaIoUw1 FY1bBNEvwxL0EKv8Lw3i94mlmWwEUEYvwXmXHb1VSLBMblZJYbqKgZ+4xZf3+2tiS2h1 4AfA== X-Received: by 10.224.18.132 with SMTP id w4mr7577712qaa.1.1366279992371; Thu, 18 Apr 2013 03:13:12 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.36.69 with SMTP id o5ls1231148qej.55.gmail; Thu, 18 Apr 2013 03:13:12 -0700 (PDT) X-Received: by 10.52.35.110 with SMTP id g14mr6490681vdj.61.1366279992244; Thu, 18 Apr 2013 03:13:12 -0700 (PDT) Received: from mail-vb0-x233.google.com (mail-vb0-x233.google.com [2607:f8b0:400c:c02::233]) by mx.google.com with ESMTPS id a9si1659667vcy.8.2013.04.18.03.13.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 03:13:12 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::233 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:c02::233; Received: by mail-vb0-f51.google.com with SMTP id x19so2120952vbf.24 for ; Thu, 18 Apr 2013 03:13:12 -0700 (PDT) X-Received: by 10.52.166.103 with SMTP id zf7mr6550068vdb.94.1366279992050; Thu, 18 Apr 2013 03:13:12 -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 nf2csp115757veb; Thu, 18 Apr 2013 03:13:11 -0700 (PDT) X-Received: by 10.194.121.129 with SMTP id lk1mr17325499wjb.45.1366279990964; Thu, 18 Apr 2013 03:13:10 -0700 (PDT) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [2a00:1450:400c:c05::236]) by mx.google.com with ESMTPS id h6si3435023wjx.90.2013.04.18.03.13.10 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 03:13:10 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::236 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=2a00:1450:400c:c05::236; Received: by mail-wi0-f182.google.com with SMTP id m6so2686787wiv.3 for ; Thu, 18 Apr 2013 03:13:10 -0700 (PDT) X-Received: by 10.194.143.50 with SMTP id sb18mr17334526wjb.44.1366279990440; Thu, 18 Apr 2013 03:13:10 -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 ESMTPS id t7sm30483773wij.2.2013.04.18.03.13.08 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 03:13:09 -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, Lee Jones , Vinod Koul , Dan Williams , Per Forlin , Rabin Vincent Subject: [PATCH 21/32] dmaengine: ste_dma40: Also report the number of logical channels Date: Thu, 18 Apr 2013 11:12:03 +0100 Message-Id: <1366279934-30761-22-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1366279934-30761-1-git-send-email-lee.jones@linaro.org> References: <1366279934-30761-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkDyOob2/yDOxO+rBMwBlBonaTlmx+brfc0YzdVrCKrkeg2VwoZUsuI05WKhsAHtV3oaflQ X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::233 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 282dd59..805049c 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3200,8 +3200,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 revision: %d @ 0x%x with " + "%d physical channels 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)) *