From patchwork Wed Dec 6 14:41:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 120853 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7138238qgn; Wed, 6 Dec 2017 06:41:31 -0800 (PST) X-Google-Smtp-Source: AGs4zMaZ9uKGYnAth20Svfl/pE3fNDv4TIcEXk96zfbhv+UF0sMmer7clfw5dQ0RCbqAjuo06AvM X-Received: by 10.101.73.12 with SMTP id p12mr21476482pgs.37.1512571291737; Wed, 06 Dec 2017 06:41:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512571291; cv=none; d=google.com; s=arc-20160816; b=Ig5RdrpbAIOiwyJw+oP2Ji7qar3tXpOFks8KY530VAfAuHQQx4oMTM5/b7T1eON6fE A+otbmElFNlr2oBVae332PQy3YoqD+boYfNOOpjZtsXxqFhTGp1Epw0SFnRDCfFCU7sK 7phSWKIqeEflCsc0ffJq2T4JIrERT91IsJ/MdLZKfQwcuxFulSzkrI0gZbd6q2kSGiJh iDKXe9dHsRy1CTMX4I0jD/W4E8XATL+yk+5vbAyLgtRLEAem6Ma00ekpI09k/1EGOP/0 omaroztpsNlTO3gxPDILqUSfT0vJ3tKvuP6vug5U+rICfExrKJ2NufZggcnqlT2mRA3p fjJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9VnqICUFtk3k4hUO3TfZoTK8qYkP6d+A2Hdn++JYj00=; b=YK+cRQpcZ8lkSzykRW2h3CUJnrbqegS6A9CPCOi/gbACqcXsNaQu7JGbboA/FbiG4U RsxKOFDMtDhygOmKJ9zTL7Koy2rFMgOyIO3s9GTniO/n3kDTv6GPst+lQ5Dk8EClyk7O RZXXI7Wz+296WVwz3KSdCWtImOKJliiDeB9aME5uG0FpabK/mL7nGDBobsj20hyXwCl6 R6A0ZFDMYJIIiaLrpN0lLIbujjlHekJt/gnT0cTFmBlyhncdopVXVTbGBCRYRmLN9PSQ WgVKxWXa/hXkQZoFD6/I+BLRNMf+z0SBQ/apehVLX2cpZVPtni318ZhgTtC1W8ezYVSl trRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqKLZR0c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si2028848plo.623.2017.12.06.06.41.31; Wed, 06 Dec 2017 06:41:31 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=SqKLZR0c; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752606AbdLFOla (ORCPT + 28 others); Wed, 6 Dec 2017 09:41:30 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:46406 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbdLFOlX (ORCPT ); Wed, 6 Dec 2017 09:41:23 -0500 Received: by mail-lf0-f66.google.com with SMTP id r143so4475145lfe.13 for ; Wed, 06 Dec 2017 06:41:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=9VnqICUFtk3k4hUO3TfZoTK8qYkP6d+A2Hdn++JYj00=; b=SqKLZR0c/W/cY8Bjv6wNjs4/1K+t1wlYSV6lRGfnhiUUSrZPbqvJPNKVd/Z3Zhb9YA eI6aatUVBED9wjmZMwTP7dCxW9+kfcrE8YxQ3nTzVYDBNevq9HlEWyAu5yT0meLYQL6h jl6roUVbvkdugVqMlXiW1YbktC9WXzbh0vtF8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9VnqICUFtk3k4hUO3TfZoTK8qYkP6d+A2Hdn++JYj00=; b=SRtEb+5NRmsFBoOT1DyOKC+S6x4EBl1pQTJgvS2yrWurZCYD+DjpTFsGSfed1e6GWP fT/XXvjujH35iNZmETmzpUTgr4HtD4JSW2JjL5qLFaB8w8TH/HtSoKmEdRHhxLbh0amV WvP9S/RFpq4KIwNMxKK/cBD7BUE+zCYkhWtMLH2+7hZnmQzMpBensrlrfiFbSbqawWcK pYiT99mXcBkzG1bJJe0iKciMbjDWrzs21ovxFOYZ0Rhj+bfoR9xXV9LZKiR74VOxvWx2 z+l5f2IjHOXYX+N/9dcRPTdIDBhUxKXC1u8XWfHCtBE9WTIQWomEVtUIEOs3D1kLCR9V eIRw== X-Gm-Message-State: AJaThX73QbDTwomFiiunhz9dpFON6WNuNByhppA7lLvZr4jsl+lqgl8m i3Ft3U37XdsjdJeqoaTmbfGqNw== X-Received: by 10.46.17.70 with SMTP id f67mr12459630lje.160.1512571282273; Wed, 06 Dec 2017 06:41:22 -0800 (PST) Received: from khorivan.synapse.com (59-201-94-178.pool.ukrtel.net. [178.94.201.59]) by smtp.gmail.com with ESMTPSA id u11sm534947lfk.75.2017.12.06.06.41.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Dec 2017 06:41:21 -0800 (PST) From: Ivan Khoronzhuk To: grygorii.strashko@ti.com Cc: netdev@vger.kernel.org, davem@davemloft.net, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH net-next] net: ethernet: ti: cpdma: rate is not changed - correct case Date: Wed, 6 Dec 2017 16:41:18 +0200 Message-Id: <1512571278-13196-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If rate is the same as set it's correct case. Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/davinci_cpdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.c index e4d6edf..dbe9167 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.c +++ b/drivers/net/ethernet/ti/davinci_cpdma.c @@ -841,7 +841,7 @@ int cpdma_chan_set_rate(struct cpdma_chan *ch, u32 rate) return -EINVAL; if (ch->rate == rate) - return rate; + return 0; ctlr = ch->ctlr; spin_lock_irqsave(&ctlr->lock, flags);