From patchwork Tue Feb 4 15:27:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 11364859 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AA8A092A for ; Tue, 4 Feb 2020 15:28:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7EFF020730 for ; Tue, 4 Feb 2020 15:28:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JbVyK2hk"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="bCtGzaAl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7EFF020730 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=ofU8NZ+zpiKgFA13hT5Zof/LFBXHywbiPaytLsuKP14=; b=JbVyK2hkzzQLsL zWJTZbRQsD8PcdfbTFpM1vBw4Qou5Oau5lYpJ5kSehjKE7iYIRXCzMnyzuVgABM4P65rOanEKKuEA yNAqy81sz2wW3dNEKZ8ZMfyEQLkB0IGUZfXzws83d+iLEG+6cMEoSj6IuHovPAvkd9b099cHu2gYu V6MYkKFYDwK4WdT+JNtD7CzKa83tVRnB9uhabPHtJ3u3pilF6eY2v9raFX9W/DLAgcxCvFY+nFVYB /Sc7zRP1a3DvcwFOJsfjOKl7KlHe1jf8J2Yypy5JHdI1Mohp81n7/PcBwnZbH1Q/WQQ2I0Wgxuuep mco7JKsv++NKsXAryftQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iz07O-00055c-06; Tue, 04 Feb 2020 15:28:02 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iz070-0004fS-NB for linux-arm-kernel@lists.infradead.org; Tue, 04 Feb 2020 15:27:40 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 014FRbaZ018558; Tue, 4 Feb 2020 09:27:37 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1580830057; bh=7ohJufnILIxZcm3PcCuQhH227PBpkXDcQq7pUT/qD8k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bCtGzaAlAoqyEB3v2rDsqbzg9p7Y1ZLfbF5DHUNSUAYJf1KbEaZ3HV1PoFshiZ2BB S0XmYSWZTYKqL2JxkvfP1hs1pxA16NoRzdfKnGFxtMCP+fEt45pKWWQpAm/9xsrlc+ WGQOqtGcIULfjaceN6yDsur7TBmIWfH3uErUQf/k= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 014FRbRt010606 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Feb 2020 09:27:37 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 4 Feb 2020 09:27:37 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 4 Feb 2020 09:27:37 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 014FRR8m118803; Tue, 4 Feb 2020 09:27:35 -0600 From: Peter Ujfalusi To: , , , Subject: [PATCH v2 3/3] firmware: ti_sci: Correct the timeout type in ti_sci_do_xfer() Date: Tue, 4 Feb 2020 17:27:27 +0200 Message-ID: <20200204152727.26028-4-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200204152727.26028-1-peter.ujfalusi@ti.com> References: <20200204152727.26028-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200204_072738_790173_D02A6EC9 X-CRM114-Status: GOOD ( 13.60 ) X-Spam-Score: -2.5 (--) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (-2.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [198.47.19.141 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: lokeshvutla@ti.com, grygorii.strashko@ti.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org msecs_to_jiffies() returns 'unsigned long' and the timeout parameter for wait_for_completion_timeout() is also 'unsigned long' Signed-off-by: Peter Ujfalusi Reviewed-by: Tero Kristo --- drivers/firmware/ti_sci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 3d8241cb6921..361a82817c1f 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -422,7 +422,7 @@ static inline int ti_sci_do_xfer(struct ti_sci_info *info, struct ti_sci_xfer *xfer) { int ret; - int timeout; + unsigned long timeout; struct device *dev = info->dev; ret = mbox_send_message(info->chan_tx, &xfer->tx_message);