Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1084125pxv; Fri, 25 Jun 2021 05:14:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7Tk13VG1US6UGEFA1VM7MGv8mWMwAUMTbA/fjH3aOXxV9Vu+t03Miff50kKqfOevmy8YX X-Received: by 2002:a17:906:36d5:: with SMTP id b21mr10449186ejc.258.1624623248551; Fri, 25 Jun 2021 05:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624623248; cv=none; d=google.com; s=arc-20160816; b=smI13/6slJPxmEmnnKLINhHdzedUYWo4hXsdVTZVuzh19od/3LlHNmcbqLsEa77PRH ygWaUrD4cLyUHUNMflaP7WhGD8oNu4PhQegARxRKxUD36tF3PtltMc92Kt+I3WLNvWFv 2B/4OntNfdqn6/OdIHCbjieTQMVl8pkW6ey11Fkq/Yys1WHJSghcCOHA2q8kcmU9isuD T7ryOXPnevOd4NG/waAe7QgnuO9eJbbjm6crMCbcuIgjQ138D+x+ife8yXsRwN0ThMDc N02ibkQzimZDLyI9fEQkQa/ifGx+jxWEHQa8c8T/uRVvS6rD9U2UpQxYUA++rX0NOd3N BixQ== 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=GWkD/4vIqADHazSZzFcg4LEyBLJS88EuON4kU0NzG1w=; b=DZruKyFLkf2ST1IIKFmx/obcy2fQsBVyevmGWL2RgLgJMqJHaXzYlkKOubYYI0Zle0 pD70AO/B5qnsYkpyzK3eT9yPGQNsJLRqrZHP9GQVU4gp6nQm785Y6iIqpddRSzWNk8du 4UVQQ6hjVr/yeXfay61mKUmV6htRJ2pkyCEVI5SxGvhd+cOLCkaqxxNy2RzKgik5Vmip w2dEnXXju7YQTqelsTF1vbS+Lv30Cyns5gZdE0r0JH7FidkroqbrmeNn9Mphli+ViPfp RRBhOesoAZdeqXM9045qHuoatVTTscJVGuhNLaRqAsr7FN9lYAua2tV8koCD6yOgyk7R QWWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UGgB6fyM; 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 g22si5968556edv.402.2021.06.25.05.13.45; Fri, 25 Jun 2021 05:14:08 -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=UGgB6fyM; 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 S230232AbhFYMPE (ORCPT + 99 others); Fri, 25 Jun 2021 08:15:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:59194 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbhFYMPD (ORCPT ); Fri, 25 Jun 2021 08:15:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E13646162A; Fri, 25 Jun 2021 12:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624623163; bh=QJxnAfgsv7H0MV05wG2ckfEIc7HWo8yYqaLFkp2QqyM=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=UGgB6fyM4242VjL09luaOMZ7Q6mBrU/5I3WODVWo645g9gDCp6p+e0orNtfE+kOWi zHB8fDAcz0BzbWXADlI8ei+aADZ3XBzXGD4jj3AHtS4HKPRMR1r+bpgQBTgeThi9vO 3qU4g0DkV5o5ITprv0Mu+HttzPJaDTZ8tMqIq1i/U1wFVhk+y6Dbav1BepN7uynyXh RgsAwWBvGegijylkgiKQjvtCHiy/CxospUeqnZOpWyz1pw0bj6d/9u2EGwDWN8neto jJ4g6ZrDgUd7txGyooK7vMvhqKdkOjMHHXU1pojn94GmsWsMHApXMTyCwp8ZCEcj+x O0nlP2VktwFOw== Date: Fri, 25 Jun 2021 14:12:39 +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 Srinivas, can I please get your Ack for this one? Thanks, -- Jiri Kosina SUSE Labs