Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp801047rwe; Thu, 1 Sep 2022 07:51:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR7P9gaE4DGVxtuHdjyAh6m92bjX+3/wOoEBkVay0rDU3jsY7wPzeq/toZy1j/oLjjWencup X-Received: by 2002:a17:902:ec8c:b0:175:7ca:c45f with SMTP id x12-20020a170902ec8c00b0017507cac45fmr15129713plg.117.1662043866083; Thu, 01 Sep 2022 07:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662043866; cv=none; d=google.com; s=arc-20160816; b=A0WtIDsNdp5CGRUqg8YjegXbCdIvVw04Vui0ZRicBPrA2omhReDLG5kDjoaiu7IuSh sIeYu12DYkXFSNM+sj9ab82Rf7tS0inPKMSZtun2hXI/vvU4kRqP4BUNnUM6StK0KuvZ LdY07ahIX4E75L/EMNY0XiWjXxQa3jj1QrAq+Mes7VX8m6AO6o+S9nGDt5wkHPfGiK31 iwHakGJfg7UbAaS/aPtATRd185g1iuvOtATcxyJTuBRzHfdmo65pl90i5IXNvCI52VmX i5oLA/gU2QI+NQB+I60WhdWzKqi34Spe/fG7gdnEJTkFSTP1n7EGt9Ewe3Ft8Aq4o+/6 8i2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=aZBPE6DMNAFlBqKdUEe5JcHYVpgWoEvFSyO4NoP+JOM=; b=RX/E3yMwSAQiPV2lArpU9FidsaNHkE+mmKdp9ixn0CMZxMGeuvt4+LtkVCsxChBEOa QxPGCM/hXJkohE1lefSo6bA33dDIy3a6qHMo2e18Uy6Fn7F4+EewiXortYM9yDNJc0Dr LZvtON1pv6UEL3lAOvvytCON+FuObiXo8Vnm15r3QOnEDaRwHsq/tR7xUztqWtXsoFUB oCoRUchk0EPPXH1z2UDWtXjGKZztS4hSfTSi7CoQBc7pTmJtwG0KchDwOZkwZtA9ww4c ZfjMMLEiIhoCr+y343VlT0/kdkFfjWZh7W+aL90XWhU+Lj2eqxzVN77RbqwB6xhWHtNo ObbA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020aa79497000000b0050cfb4ff72dsi17896585pfk.52.2022.09.01.07.50.31; Thu, 01 Sep 2022 07:51:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234965AbiIAOkz (ORCPT + 99 others); Thu, 1 Sep 2022 10:40:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234970AbiIAOkh (ORCPT ); Thu, 1 Sep 2022 10:40:37 -0400 Received: from netrider.rowland.org (netrider.rowland.org [192.131.102.5]) by lindbergh.monkeyblade.net (Postfix) with SMTP id 95FA64E624 for ; Thu, 1 Sep 2022 07:40:20 -0700 (PDT) Received: (qmail 235838 invoked by uid 1000); 1 Sep 2022 10:40:18 -0400 Date: Thu, 1 Sep 2022 10:40:18 -0400 From: Alan Stern To: Yinbo Zhu Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Patchwork Bot Subject: Re: [PATCH v3] usb: ohci-platform: fix usb disconnect issue after s4 Message-ID: References: <20220901015446.22384-1-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220901015446.22384-1-zhuyinbo@loongson.cn> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 01, 2022 at 09:54:46AM +0800, Yinbo Zhu wrote: > Avoid retaining bogus hardware states during resume-from-hibernation. > Previously we had reset the hardware as part of preparing to reinstate > the snapshot image. But we can do better now with the new PM framework, > since we know exactly which resume operations are from hibernation. > > According to the commit 'cd1965db054e ("USB: ohci: move ohci_pci_{ > suspend,resume} to ohci-hcd.c")' and commit '6ec4beb5c701 ("USB: new > flag for resume-from-hibernation")', the flag "hibernated" is for > resume-from-hibernation and it should be true when usb resume from disk. > > When this flag "hibernated" is set, the drivers will reset the hardware > to get rid of any existing state and make sure resume from hibernation > re-enumerates everything for ohci. The patch title mentions "usb disconnect issue", but the description says nothing about it. Please explain what this disconnect issue is. Alan Stern