Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp1091816imp; Thu, 21 Feb 2019 18:35:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IaO7aydQwFG0mbGhaAvOVlq5Hine+tS2jW3QePNnSUzmYcP4BH9t5cG3k8s1QUoYTwbsfda X-Received: by 2002:a63:698a:: with SMTP id e132mr1712889pgc.136.1550802919986; Thu, 21 Feb 2019 18:35:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550802919; cv=none; d=google.com; s=arc-20160816; b=KFbQ2ICZY8iVRYp57U+EuemG1gBam7tLQHacLoOwcVwISOHyq9N751mQApCIhmLyvR +4cGD4kJJfwb6u35G4AtehoY7eaa7Q+ORBpYDTaopNtUnsCxc+j3U1HEjnel4J9Fr0LK xUi9E6X78k27FOZbT41d6X7gDyZ4oL77vPNOIMwExPIEVWzVyIDu2vwzdGemn6kN8qfV pBrJspSyZGK4EQQ/ZhqbnMKSllwOXvsHBtJHocKmZJ1ZnMGNwYfNs2kVo9C61pecihg/ kFdFyk5xdlnl8H1Z0qSFzFEWhF9yDMWUDZps49Md4uohPz3Ho/4P6VO/4LFy9XrVtg5P Cv/g== 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 :message-id:date:subject:cc:to:from:dmarc-filter:dkim-signature :dkim-signature; bh=m6bO0WF8tns3wRJMXPeOWaC87XuIBHJWVZVXbuAjEKk=; b=ZgT4GsEkVnAoc2cYN/TwcjzLpvtuAnbDaisCJTrSH6Jrx3CyDf5E1xgbnWJWr/dwi2 AAck6azuutxQffMyPEtQSRBtGGVsiNKeTH1yA0IwiBrzASevdQuqfo1iIyeujDhW/1I7 ON4dydKCzNMBSZRZxPECdGQWm5vwPqWeDnpJ8VFwqWcE2AEtBTeo4jgM4pFP5I9rTMJq ClxlUoUsevNsvsq760/5C9T4jCOGAcYMTdB69KrQnYEl3cDESRKIz2RCjzuc+uNZa4Dg rimdijB6iZGiIWax/fayY/EXi3jtqR1Tx6qIbmBlR3yGf/4ObplKJ2SzEnImsTVEk7PI taUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=N+0PJt3T; dkim=pass header.i=@codeaurora.org header.s=default header.b=iPJP9ncz; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si170689pgu.381.2019.02.21.18.35.05; Thu, 21 Feb 2019 18:35:19 -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=@codeaurora.org header.s=default header.b=N+0PJt3T; dkim=pass header.i=@codeaurora.org header.s=default header.b=iPJP9ncz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726794AbfBVCe2 (ORCPT + 99 others); Thu, 21 Feb 2019 21:34:28 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:35132 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbfBVCe1 (ORCPT ); Thu, 21 Feb 2019 21:34:27 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 9B7D060910; Fri, 22 Feb 2019 02:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550802866; bh=r8UIRezX+WeLrO0TT5YggxxvbSUCelgK2h8XTj2j6lw=; h=From:To:Cc:Subject:Date:From; b=N+0PJt3TKplHBx/pknpd/JWLbQF5IVVe8PY+X9t0BUL5RYztOcJNRC8MnDaJTpSju 055zlqFehKz8HRAHvNooIpDzeIhfdrtevss3vdHUA8wqa4HoCtpJCBZYzyq41EPJkG Hq2d0axlf8IXmhw0+kFk0gtu/ezJQWyThgQlQ2/s= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from clew-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: clew@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 498FE6075A; Fri, 22 Feb 2019 02:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1550802858; bh=r8UIRezX+WeLrO0TT5YggxxvbSUCelgK2h8XTj2j6lw=; h=From:To:Cc:Subject:Date:From; b=iPJP9nczrm8mJkXY3WJ5DhB0re0H5AqEzrBXReKpTb3wPCQQ2D518G7ymkTzRDFJZ X33imvlqek8MDWl2ogHBiIHWU2lYRuRuQBy71EtW2OanBbOGNtqYsGig7y5HRKo6Rs eLapIFEEJr4Ve1YpHFrjHipvokv/8jIF6IU3bszU= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 498FE6075A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=clew@codeaurora.org From: Chris Lew To: bjorn.andersson@linaro.org, andy.gross@linaro.org, david.brown@linaro.org Cc: aneela@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, clew@codeaurora.org Subject: [PATCH] soc: qcom: qmi: Change txn wait to non-interruptible Date: Thu, 21 Feb 2019 18:33:39 -0800 Message-Id: <20190222023339.30454-1-clew@codeaurora.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Current QMI clients are not userspace facing, if their threads are signaled, they do not do any signal checking or propagate the ERESTARTSYS return code up. Remove the interruptible option so clients can finish their QMI transactions even if the thread is signaled. Signed-off-by: Chris Lew --- drivers/soc/qcom/qmi_interface.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/soc/qcom/qmi_interface.c b/drivers/soc/qcom/qmi_interface.c index c239a28e503f..f9e309f0acd3 100644 --- a/drivers/soc/qcom/qmi_interface.c +++ b/drivers/soc/qcom/qmi_interface.c @@ -345,8 +345,7 @@ int qmi_txn_wait(struct qmi_txn *txn, unsigned long timeout) struct qmi_handle *qmi = txn->qmi; int ret; - ret = wait_for_completion_interruptible_timeout(&txn->completion, - timeout); + ret = wait_for_completion_timeout(&txn->completion, timeout); mutex_lock(&qmi->txn_lock); mutex_lock(&txn->lock); @@ -354,9 +353,7 @@ int qmi_txn_wait(struct qmi_txn *txn, unsigned long timeout) mutex_unlock(&txn->lock); mutex_unlock(&qmi->txn_lock); - if (ret < 0) - return ret; - else if (ret == 0) + if (ret == 0) return -ETIMEDOUT; else return txn->result; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project