Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4536132imb; Wed, 6 Mar 2019 16:15:30 -0800 (PST) X-Google-Smtp-Source: APXvYqz3dDCxKVGdxm3bxwN7A7UVuFTLubscwPQejQGAGVAu4KAwWusK4r06sOY7BXaNPVkAoLlk X-Received: by 2002:a63:b0b:: with SMTP id 11mr8872147pgl.187.1551917730396; Wed, 06 Mar 2019 16:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551917730; cv=none; d=google.com; s=arc-20160816; b=bDY5yMJiATEmH/tGvRmB8r1mAx86qLMVcSeYMt0YYGs16x6nkFJU6Ce3OvoAWoJ+1H w0ycHwXtJsuu0RSGQTBa02OqiJmvzMB4uL8LbsVmI3IYH7ZesHWsAs7Lak5bXdcOt3nt 7FGNQn/FiHMh/57v92C09Cv5NDvwi0VYy6M96tI/3fyEmWGCbuqqHcf6C4dJSB76eoki hqUZmZ2hGS2oYTUIRlL6mJd1nxk5PkhTWMdzoWshtdHEot2V978YiRL/d6ZPRa1MBAHP WJC4H+YYbl2I9TYgyDeIjxKU7EKAa0oV8GK8Me1Hjn9ypLnSc6oNXjQoNpDrGTv9fEOH psjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PUzbM1w33kgF2Apb2Ln4T2hpMUd459RNOQ0o3syzh8w=; b=SnZk7jb1C6vgxF3SLMDkeDGG8PEjqfLUHyiJQx9F0m+KMeYOfgMFwaDJjkbBCmLDyQ 9XLMrPaMQCRunkgjOd/ruTAkLXIX5IhnOtXXcThYN1xqZb1SLnWGr8+IPe+ega4zd1Sj 2dSKuYBemVERY1AAn2zNrE1FK0Hbwh4J03k4s+vTz2DFv5pIXrm3FHswq+KDZabFVn0j qJf6P+2OR083QWXL211in2C2VvKSdg9afci9jm4I6bB3FcY0ce7/QuNedIt1Pr7+zukv j1PO1Ukhe1QgbtEV3M0hjf0Zqo6fR3/X+rh53JHJqRt8UZIKHW0zVByNTGx5lc0CjWJ2 fCXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DDK2lGeA; 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 f1si2784037pfn.10.2019.03.06.16.15.14; Wed, 06 Mar 2019 16:15:30 -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=DDK2lGeA; 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 S1726216AbfCGAOz (ORCPT + 99 others); Wed, 6 Mar 2019 19:14:55 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:45251 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfCGAOy (ORCPT ); Wed, 6 Mar 2019 19:14:54 -0500 Received: by mail-pf1-f195.google.com with SMTP id v21so9932537pfm.12 for ; Wed, 06 Mar 2019 16:14:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PUzbM1w33kgF2Apb2Ln4T2hpMUd459RNOQ0o3syzh8w=; b=DDK2lGeAb1hATcxmJfto6l/JRF6LP/7U0etDBV3FNoPIRhL8mMsnT0IBwX/BjAo6u1 NfBLnq6+/7+D4W0P/FYkULau5j5qQwjT29s3uy6xq2N8hqKyTINfY9QD5U2JUf34EiB4 Wq1TO97MdA4YkIXS3MWBabcdCutTdSqYmrnJqzot3KAxMyZ7b+JfOTbYNFCLKcmsYY5i 2N9T1t/O28Ha7ZNgJjV1A0kc6AoUuc0zGVudcLNB9f48Zxyzb0QwdUqCs6XkjFIUypE0 ZfejyBkxf0YXLPKUotr05b+b1U9SsZVRYLm6lQODpB1MzrKFqpVfw2tHh9yNmlppAuOg HhJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PUzbM1w33kgF2Apb2Ln4T2hpMUd459RNOQ0o3syzh8w=; b=j5eAdCsOkFLDTVeOWjWXLHzNhCCfw03LnyprPxDQvAey8U28Q5AFJoUNHk2/Rl0/W4 MPFpqC/m7oUXK4mMqzLdv0qeRaFc7m+urQMD2botFV3XgMnyYOAEM7ajKwlOmGmLUROe pIwFinzBQ43qDyldz+Xy/jnEvxd4nbU4nMgDMbHwoBBrN0NsRIMVyKP+jCJlwa14efHJ k83HidiaWUGdOUC8q0EiSYFlG+b6Eov9OhhT/Zbc9Lu0OM3S2z68g6+RP8RTU4xDSVof /G1jdfyuyIBoTJwOmmTUEq0WIbycYZtzj9yCsB/mPlX3Z5/Eti5BnKfq/fi7USd5ewNk rbHg== X-Gm-Message-State: APjAAAUDnSfEsi9X/UJI10DjIFQjnW35Ht+/nEjYitys1oyN1dmtJqfo b/NzSj58AuBaFPCEbQNU3ZHi9A== X-Received: by 2002:a62:e216:: with SMTP id a22mr9878084pfi.20.1551917693903; Wed, 06 Mar 2019 16:14:53 -0800 (PST) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id l79sm7934549pfb.102.2019.03.06.16.14.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Mar 2019 16:14:53 -0800 (PST) Date: Wed, 6 Mar 2019 16:15:42 -0800 From: Bjorn Andersson To: Chris Lew Cc: andy.gross@linaro.org, david.brown@linaro.org, aneela@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] soc: qcom: qmi: Change txn wait to non-interruptible Message-ID: <20190307001542.GF27005@builder> References: <20190222023339.30454-1-clew@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190222023339.30454-1-clew@codeaurora.org> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 21 Feb 18:33 PST 2019, Chris Lew wrote: > 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 Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > 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 >