Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5087660ybl; Tue, 4 Feb 2020 07:28:57 -0800 (PST) X-Google-Smtp-Source: APXvYqxheqbS1x8PJn/3gCIYH1RnBLMkzlpX1U5NMA/Dq/gEMWEUeNuLWdHuilKVyoph9l+kAPN5 X-Received: by 2002:a05:6830:3153:: with SMTP id c19mr3870655ots.39.1580830137081; Tue, 04 Feb 2020 07:28:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580830137; cv=none; d=google.com; s=arc-20160816; b=Fbc5szU5/qlgq87+f/1sloezOlohdynV2prU35r/O+oGTpprDGn7sM5v5rMX+ENCog 6yFKCpwcUqd/MgB/EkzE+shhBd7Y52bDpkZfMRn2Y01P7A2og3c3k1KimFo0/+ckLXcK FBo9wTyzBrlIjIXM01YI2+/fB6Aq69WpYqPCCTVeFWB6xVIFu1pEDftE/A6xVl3iDLQ0 mnbTzLqZYP5+XQgYock1uKGGMZXwzKV51YSItq1p1DHs8EoWR8ikLY7zsipcoCGyjGyL GqM6j6YUGUzvERQEpuYJaBtpu6eiQv/r9eWtmje9xoQM82ciDKWeH2LE1V2Sn4Oa5s5W z0nA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7ohJufnILIxZcm3PcCuQhH227PBpkXDcQq7pUT/qD8k=; b=pi2mN+NH3YSlQCGNazK2nIwaH3OG1nIOJjMFvTYwwt81HJ3RMfc7/8Zr1RzlV0L5o8 AjKdIhs3s/7zjG3v1NznJnjp7U5KtY3IWuzKCc6DVlD4i0zrCXub3B1bsewXMhrFHS9d GK0zklG+dZXrtdqUg5aYPEEt8s9MeG5cOmLOjiF5FjvoJKvZTtK2CqGwu5nazmvev8ni WdzyXYdIdXHK6QfgqjbTPsTqy2JO7SoAeDCRDg9Y97tFy/Ec8nlzfhKPGGiUi+v3Oitw sCTAFFZhM2zEuk7Khyxo6Ca7Q/sQRMh7f+VyN1RiVHaSvrvPtYq2H514e37Ya8pVWlu4 FGJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=bCtGzaAl; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si12300369otq.96.2020.02.04.07.28.43; Tue, 04 Feb 2020 07:28:57 -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=@ti.com header.s=ti-com-17Q1 header.b=bCtGzaAl; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727408AbgBDP1p (ORCPT + 99 others); Tue, 4 Feb 2020 10:27:45 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35552 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727394AbgBDP1o (ORCPT ); Tue, 4 Feb 2020 10:27:44 -0500 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: , , , CC: , , , 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 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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); -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki