Message ID | 20170310024617.67303-1-briannorris@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2617F60417 for <patchwork-linux-rockchip@patchwork.kernel.org>; Fri, 10 Mar 2017 02:47:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A8EA2846A for <patchwork-linux-rockchip@patchwork.kernel.org>; Fri, 10 Mar 2017 02:47:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F86D285A4; Fri, 10 Mar 2017 02:47:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1876528504 for <patchwork-linux-rockchip@patchwork.kernel.org>; Fri, 10 Mar 2017 02:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=sXu4w8cK1Wi5abEM+yeVKvPXlDtvVyDI4wxfOXRW/zg=; b=GVS 0r2j1OiwUWA+oKBActJte4Q5SsDj0m8tz29Xv5CREpaOw4jJV18Mah3xegv5EnRiRtnVcy3vOg0Tn jzvYh9T4IgIRIy1wFa0Fj7muwlhbMI6yFv93ya+fR6JTVrZU842oi2rf/km3cQwGxFvyLvmcRZ3Om bAf35PKRYD422w0jnyz3n3xM+6ZtX17wuStceAT1+HBkwQhv5ti6bHAn24C//CXFUJ3Ks9QqyNoz4 ec6JNoo0pOQiYjCiFpWUS8Lt+WRlHDUS0ChKiO+//GZ6VPykJJoIXmaWEIyiyhoJVIUuYuGb2dHzk 9rhrD81HuAa3DLzy6IbzG7ZOUJqySqw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cmAa0-0006Q0-Ii; Fri, 10 Mar 2017 02:46:56 +0000 Received: from mail-pg0-x234.google.com ([2607:f8b0:400e:c05::234]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cmAZw-0006Mo-GJ for linux-rockchip@lists.infradead.org; Fri, 10 Mar 2017 02:46:54 +0000 Received: by mail-pg0-x234.google.com with SMTP id g2so16043923pge.3 for <linux-rockchip@lists.infradead.org>; Thu, 09 Mar 2017 18:46:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=cO2lB+S3DOQb/rjpwYYpIDFCVL6H+Meu3OAIlxJW+ho=; b=KvrqtRvnzjk0MXmwwafklI22da7Liw8hzd4q/r4cpyNJuDWVi/5NbygqT/BL/VM0N2 wMxFMTZyZoeVKJE3p7eOGVFbJO7Ad0MjQb4qqcZuYYiR4j+1Y19PS4hS1P8hY9A0bSdS ElbhQkAboFbq5vOWuWT4t3kEhrItw36QvolR0= 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=cO2lB+S3DOQb/rjpwYYpIDFCVL6H+Meu3OAIlxJW+ho=; b=n0h0kte+E6Y4wNSEBDxRZj2tuS49Xz9VA0DVeGdqxQi+dHbKKico8cq84k3lPbjOQf 8NbStVmrua01bFM2nJSq68o2yTu+zo8C7Euobar/kQS1bXsEjzoODtuPhmdJ9oxLWkbo UHqX0/Za+SaDS0WX2xXJSr0P+bhTj/q+TnrWv/557rgmef15qAC5KNLE7OT+8PIeuwfc ChdxRfhkPyiFYel7xGMZbNTtMY6+cqe6SfWkQUJ3MFSnQWsml1xpnQo0ogVI73kUcuc1 ahRkvKdi3M2Swe4bMxEZnKyVY6E9H3cZEY9WnXnVgySleexu3PWB3cdU8P4B6C58RenV 0JIg== X-Gm-Message-State: AMke39kKU67XtLyGotSveTZQGAv7suD7wKbgWAg3DLiosJMEza03QZ+Xv0+jxE+DsK+tDTHi X-Received: by 10.99.125.23 with SMTP id y23mr17671407pgc.79.1489113989117; Thu, 09 Mar 2017 18:46:29 -0800 (PST) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id w29sm14830573pfi.131.2017.03.09.18.46.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Mar 2017 18:46:28 -0800 (PST) From: Brian Norris <briannorris@chromium.org> To: Bjorn Helgaas <bhelgaas@google.com> Subject: [PATCH v2 1/5] PCI: rockchip: fix sign issues for current limits Date: Thu, 9 Mar 2017 18:46:13 -0800 Message-Id: <20170310024617.67303-1-briannorris@chromium.org> X-Mailer: git-send-email 2.12.0.246.ga2ecc84866-goog X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170309_184652_607943_72068AEE X-CRM114-Status: UNSURE ( 9.75 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms <linux-rockchip.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-rockchip/> List-Post: <mailto:linux-rockchip@lists.infradead.org> List-Help: <mailto:linux-rockchip-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=subscribe> Cc: Jeffy Chen <jeffy.chen@rock-chips.com>, linux-pci@vger.kernel.org, Shawn Lin <shawn.lin@rock-chips.com>, Wenrui Li <wenrui.li@rock-chips.com>, linux-kernel@vger.kernel.org, Brian Norris <briannorris@chromium.org>, linux-rockchip@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" <linux-rockchip-bounces@lists.infradead.org> Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/pci/host/pcie-rockchip.c b/drivers/pci/host/pcie-rockchip.c index 26ddd3535272..d785f64ec03b 100644 --- a/drivers/pci/host/pcie-rockchip.c +++ b/drivers/pci/host/pcie-rockchip.c @@ -425,7 +425,8 @@ static struct pci_ops rockchip_pcie_ops = { static void rockchip_pcie_set_power_limit(struct rockchip_pcie *rockchip) { - u32 status, curr, scale, power; + int curr; + u32 status, scale, power; if (IS_ERR(rockchip->vpcie3v3)) return;