Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6410344ybf; Thu, 5 Mar 2020 20:17:25 -0800 (PST) X-Google-Smtp-Source: ADFU+vs7BsnOMXzw/9BHVx7qxytMqldJPfn5GOWPMZE/CEOxxZl+2uTcPmRzPjilYCY1dgmIZPWs X-Received: by 2002:a05:6808:a0a:: with SMTP id n10mr1338030oij.10.1583468245817; Thu, 05 Mar 2020 20:17:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583468245; cv=none; d=google.com; s=arc-20160816; b=ng3yjSHkRI5gKg6bMOioChNdjkJjN3bHou2Lukgo+Y2mxhyPczYI3dAh8rEzwLtgLm /hfm4k0oEUs18a1rWiqDvLYOaBovnxN0DtZpRuRyeK6Bwt5lC0hcHx/BCg8yj8SGdDBz N1mV+tnuMSdwF2A70Jzke2L8gjokuQ12sAbtnunHOVQLz4JT+rnBzjaw31wMgcoOZN8r jgpbK2agQyqmgc4Wh6QgGPYFcclfLCNY014MMVs0KYJioitnwrrVdAhl/fHvAsomO8QC adobmpuTKNzF8nvIBzdo3XVPlWaORTOiSDoQ38Kl+VoMHQgxS2Qk+TJ3dLEFZOHM87pd oIVg== 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=OETmZOWuYxzqpD4nN0IaLvhHG/zD5kORW1mWO5A2/z4=; b=Q5iqAJZeGZnSjR5DnsZHHXv/SgPCurspdQuGGOTAOs0tVoPUR+yCQtUJ3CxYnUdZeX gXbTf/3zRZNme6FtKxPf/VErqPkxICxdYjxeNAxIinlpKQMux1P57UADxoV1oCZAaXYO WPL55NCWW3LMAE1vyJeGyHIRF2dNy92SDtZ2V3bqfqJ6ZPJPS4TY0RFcEZ2O9PCTFnCd 1StXD/PbM9/+fpuHWBfFWSUcIdVqO2fxt9seb/mj2WV1YmPmqvl0JixJx2MTR/JIRCuR bT0EuUAIisgxc1FdmU96x8dxlgOI/+saNWjfplJImDdA5mVJZPqu0kfTqGp5KMoDT2iV io8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OvmNNoNN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si694950oie.187.2020.03.05.20.17.13; Thu, 05 Mar 2020 20:17:25 -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=@gmail.com header.s=20161025 header.b=OvmNNoNN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726676AbgCFEQq (ORCPT + 99 others); Thu, 5 Mar 2020 23:16:46 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:50427 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726378AbgCFEQq (ORCPT ); Thu, 5 Mar 2020 23:16:46 -0500 Received: by mail-pj1-f67.google.com with SMTP id nm6so510860pjb.0; Thu, 05 Mar 2020 20:16:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OETmZOWuYxzqpD4nN0IaLvhHG/zD5kORW1mWO5A2/z4=; b=OvmNNoNNY790wtUMMvLft86Sx9H7W55ZIp68NrnAoOWkBJ/sKf+QcnvGJ/1DdmhL6g C2Anul6xRkSPJhs4i0lMHwhRhnj8OS230at0IIeFkZMm/p/kr3Olx7yvXiG/BjAbjhV+ A+rACXQQqYUpduuzBj4HN3kQ/ykRkbhPBSBWbPJaNabuyWOCrlKWpvoS7v44dXRS9YGV uHQ+/A+wvdslISBWCMkk3QXiihwg4M8ZvTeViJnT61gFzRQDqCoqNGb3pUTiGG4DwJhW HEuliT/ZfW3SqOvmUacS/yCUF3NX0qziedav5MdnWR7V4hExpgvghc0DzBpXkVM8o/nI uaXQ== 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=OETmZOWuYxzqpD4nN0IaLvhHG/zD5kORW1mWO5A2/z4=; b=gJgL0Pby1nxz/C60yjdpHnDHIjZAVfq2g7rMjgyD4efxin+m+mIP+akWXYSScxuhx8 //OhWLVNwsYBIeG6Q4n2o6MgU25VBeuJsTq7V2bX8TYnWCkr6jj0sUk65JH8IHM5juj6 QJivz8JFSJb6W8OW/NjpqvvPAuqTMzuKvhMzNalDLrx1Muw3M61SPKNm5o74/SzVBnmY 68gyjqBNqqUbgqLWKHHWZblVU7OzfdCfNxGFdXEU87AdaOBwlJPhv9LZEBlKXT5kxTfM TU+3K5R0SSxrt+b6DoHmxrPRr3u0awxj68+qepk9HvVF/vNRvLdUIPP3xCtNtU47L4l4 nyMg== X-Gm-Message-State: ANhLgQ0kw8VTczAo1KOvQjIX7lJ926KR8chsWympfuE4b1XiMnbexYXe rvzH5Si4qC34j3w9LENRqWg= X-Received: by 2002:a17:902:8eca:: with SMTP id x10mr1144516plo.94.1583468204939; Thu, 05 Mar 2020 20:16:44 -0800 (PST) Received: from dtor-ws ([2620:15c:202:201:3c2a:73a9:c2cf:7f45]) by smtp.gmail.com with ESMTPSA id m59sm7967420pjb.41.2020.03.05.20.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 20:16:44 -0800 (PST) Date: Thu, 5 Mar 2020 20:16:42 -0800 From: Dmitry Torokhov To: AceLan Kao Cc: "Rafael J. Wysocki" , Thomas Gleixner , Allison Randal , Enrico Weigelt , Stephen Boyd , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Input: i8042 - Fix the selftest retry logic Message-ID: <20200306041642.GD217608@dtor-ws> References: <20200305064423.16196-1-acelan.kao@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200305064423.16196-1-acelan.kao@canonical.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi AceLan, On Thu, Mar 05, 2020 at 02:44:23PM +0800, AceLan Kao wrote: > It returns -NODEV at the first selftest timeout, so the retry logic > doesn't work. Move the return outside of the while loop to make it real > retry 5 times before returns -ENODEV. The retry logic here was for the controller not returning the expected selftest value, not the controller refusing to communicate at all. Could you pease tell me what device requires this change? Thanks. -- Dmitry