Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4921279pxv; Tue, 27 Jul 2021 21:34:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwU43Uzb00TAzhkx7qnFtBiCCoyTL1yyG2ExFRdorT5WjQcQat2oxMwxYS4r58BEni+h+9P X-Received: by 2002:a17:906:f11:: with SMTP id z17mr25402880eji.385.1627446867831; Tue, 27 Jul 2021 21:34:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627446867; cv=none; d=google.com; s=arc-20160816; b=mz02oeSsrTNhjNFBgdZZsmUqrbcg7pCHutj0kY/g7ejQhHBtGD+QYOxvDPiR2B8jFs oXNW8l+wb8YAnxJQMtP0C6aZpnIvQTshXsjK9eg/uqnJVxAvVfRum4a64mUuFC+tONHd WUbBeeuFXOGly6LZSoaCiVBJ20V0/sXe/zqA7pngssa4UDuhtUrAlbekPkgDtAtH7p8E G/2pAOee747FO/9iH1l+s1+z+CaBGw1kShH+MOVCG7+JTniVZGJ1X8su5HBXHTR7OV9T zx8VoX1dLHyt4zo2fcvziRxOPZRN5OtvT6wSUH+4f8lVLKWO7tvuNKNWQwuT4lVmShRE X3eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yJVlqQ4lTcQdt8aVplyrvQC8hWd4V+x7YamMYCxgX+E=; b=bMp0uZQ0hEZwa94L429f+R0lktPwK0FcEO1Elj9AB5SCacjgPAQRK2pkBablwwKjJ4 cj7V0ga/PzVgbVVYBy4/KZiMZvmhdJFKYIl8KE8Z1legwFHfSiWSMD/VavIyXljfCh1l QlegQ08XlX2bj+Xkm2G4QhPjdMOp4DDhZl5nk9rNT5Kxtvla4vQ0tl9KkXVtP1bs+j0/ IVtkp2Af3wCuZpG7G9bTgAakBnLcvqqTmg1g4+IFyDEMStY+/gFExLJ4YR+UsjGOaavs 52tYdd7TvMle+wLgXqPahYV69wwsDkMbjcvxa+/Qvl8LgELDLU3oMtGuRKgF4Oym7JtV tc8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=gadEFcW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si784906edq.93.2021.07.27.21.34.05; Tue, 27 Jul 2021 21:34:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=gadEFcW8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234919AbhG1EbK (ORCPT + 99 others); Wed, 28 Jul 2021 00:31:10 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:40665 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234563AbhG1EbB (ORCPT ); Wed, 28 Jul 2021 00:31:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1627446660; x=1658982660; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=vWwEvArIAhoutDVPC+RAhs2Lierm8rahTWWjKXhsZnw=; b=gadEFcW8dmkUd5jPQyHUvaIi5M/Br5sBw7bBieGKusEfcGE2yJRoA+0T YPIMegIcA9oA0pohGqp14IsNddBsK3WUTV1YOok8IE9icqd4W6TZnvT3n D1bKjGyT2kM0o+AhKRrTeDltePTTbZCpn4sPItRinLAFsvmZ1UWaeGNXj g=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-01.qualcomm.com with ESMTP; 27 Jul 2021 21:31:00 -0700 X-QCInternal: smtphost Received: from nasanexm03e.na.qualcomm.com ([10.85.0.48]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/AES256-SHA; 27 Jul 2021 21:31:00 -0700 Received: from fenglinw-gv.qualcomm.com (10.80.80.8) by nasanexm03e.na.qualcomm.com (10.85.0.48) with Microsoft SMTP Server (TLS) id 15.0.1497.23; Tue, 27 Jul 2021 21:30:58 -0700 From: Fenglin Wu To: , , "Stephen Boyd" CC: , , Subject: [spmi-pmic-arb fixes and optimization patches V1 9/9] spmi: pmic-arb: increase SPMI transaction timeout delay Date: Wed, 28 Jul 2021 12:30:09 +0800 Message-ID: <1627446609-9064-10-git-send-email-quic_fenglinw@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1627446609-9064-1-git-send-email-quic_fenglinw@quicinc.com> References: <1627446609-9064-1-git-send-email-quic_fenglinw@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanexm03g.na.qualcomm.com (10.85.0.49) To nasanexm03e.na.qualcomm.com (10.85.0.48) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Collins Increase the SPMI transaction timeout delay from 100 us to 1000 us in order to account for the slower execution time found on some simulator targets. Signed-off-by: David Collins Signed-off-by: Fenglin Wu --- drivers/spmi/spmi-pmic-arb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 55fa981..08c2566 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -91,7 +91,7 @@ enum pmic_arb_channel { /* Maximum number of support PMIC peripherals */ #define PMIC_ARB_MAX_PERIPHS 512 -#define PMIC_ARB_TIMEOUT_US 100 +#define PMIC_ARB_TIMEOUT_US 1000 #define PMIC_ARB_MAX_TRANS_BYTES (8) #define PMIC_ARB_APID_MASK 0xFF -- Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.