Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp635084pxv; Thu, 15 Jul 2021 12:05:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWVYK6+2bu6NJiPO1lY6qWt4BzcdQ1mXLn4GwLpePvSghqpUWMYnouccIQMMnNRU4ZXhdi X-Received: by 2002:a17:906:f6d5:: with SMTP id jo21mr7180482ejb.444.1626375909568; Thu, 15 Jul 2021 12:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375909; cv=none; d=google.com; s=arc-20160816; b=s4N4NJvrhl2VRcn2AUqFj4cFQBFiDVBuFls5kY9bxijD3XgOPoPtLyl9M5uBZBklVn Eaflf+2nei6XwGw88h8ukj/9czIY1OKEDQE6KWs4aUrZrxA8c1vyG7wYy/z2AgBlF11e HMQDpuGwKKL/xG/j/azeYMy1K4z3EDsQz0H/jebJl+hwIQKupgLkqlA2Tc5l0OfkgBMl fs3C06PAVSzX2HG7N1fuPwE9g2HDThJ8Cm1MhGyxCHpDtMmHTwhi6dAiMJiTaLWkltZl yMQUuJc5mTX7l0SlsbJ+G/2T2k8584MFpyjK/73s3Ms2+1RRMcuIGeOtzycsPHABqQIC 7HEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=E5Hv0LVghESqT6SXZ+xx1CpioEpdKY840zyRwaR+SXI=; b=pAicTWfbolCuyj1ghldqGqVo0dSx2JCeTnNtyc8EA1JQftxYomFRqbmzjhMmkDnpX4 E7cywgkzt/MzJ6fQolF6tMv9v5HEzyYvKiG/1yHt/FyLZnJX6YSemLhj+TgH2qBKENBU xQ1KdLF3Vzp07xkH8xv5s9+DmTdfdq1Xsxop5HIIqc8AIwyAIEksVMZ07CRDMeVwXryp sxBS28IwM11dJM5X5ZebdapNFhL430ZBr/LFY5JGdyCfrJ0GK3Kiz5Rb68PYKiak2AAN L00zj+lKoqprxAkaj5oE89IK3uXoNQCLKtmyWP5VUjUhSPShHKxoFe4LreDlE9B/DLO3 eRVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=I+KseXXF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw28si8083884edb.299.2021.07.15.12.04.46; Thu, 15 Jul 2021 12:05:09 -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=pass header.i=@kernel.org header.s=k20201202 header.b=I+KseXXF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242454AbhGOTDo (ORCPT + 99 others); Thu, 15 Jul 2021 15:03:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:59012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241889AbhGOSyj (ORCPT ); Thu, 15 Jul 2021 14:54:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E8178613C4; Thu, 15 Jul 2021 18:51:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626375106; bh=szkVf8VkFhpsu4g2RfO3cWKYx15qXcEHUrQf1gZVuSc=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=I+KseXXFVkAI6iRsrO6p00SQfeIODEVfHNgDKPpFMo+QRwTe9a/5QrQqX0YxKJbN5 ClN+5l6BaxqIU+tOZNTqZooTsvzsq4kjb0kwCtgKGA5YJ6scea/Ym1TpSZXqvNNmsk 6WDXGY+xm0Y+t1Ve4mYle3PuG/XOQKVkCCrKh/b35FMJaTIHRU/MgFoZpTq5VA4BxT tATYrpkbLttt+k1VNJa/wBHsuFfy2M81d+1cMnkzI/jRCOmqpJiQcVOulSHi+Aswqv LPcNqJAreoNsoBIsguGwdIXv2PtYAgRx0gB8zePArT/g0dmsPO+YIVOFZU1EwDZFxY 7Qgq1GHeshA5A== Date: Thu, 15 Jul 2021 20:51:43 +0200 (CEST) From: Jiri Kosina To: Ye Xiang cc: jic23@kernel.org, srinivas.pandruvada@linux.intel.com, linux-input@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] HID: intel-ish-hid: use async resume function In-Reply-To: <20210613032507.7474-1-xiang.ye@intel.com> Message-ID: References: <20210613032507.7474-1-xiang.ye@intel.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 13 Jun 2021, Ye Xiang wrote: > ISH IPC driver uses asynchronous workqueue to do resume now, but there is > a potential timing issue: when child devices resume before bus driver, it > will cause child devices resume failed and cannot be recovered until > reboot. The current implementation in this case do wait for IPC to resume > but fail to accommodate for a case when there is no ISH reboot and soft > resume is taking time. This issue is apparent on Tiger Lake platform with > 5.11.13 kernel when doing suspend to idle then resume(s0ix) test. To > resolve this issue, we change ISHTP HID client to use asynchronous resume > callback too. In the asynchronous resume callback, it waits for the ISHTP > resume done event, and then notify ISHTP HID client link ready. > > Signed-off-by: Ye Xiang Applied, thank you. -- Jiri Kosina SUSE Labs