Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5592998rwb; Wed, 7 Sep 2022 05:21:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR5RB9aD4bDty61qXmY5E8giHCYeieeB/OHUok8oqU0K9/Ng9BWZPu4ZxwrAY8YvAveAJEWr X-Received: by 2002:a05:6a02:281:b0:42b:748e:5d90 with SMTP id bk1-20020a056a02028100b0042b748e5d90mr3119431pgb.422.1662553288256; Wed, 07 Sep 2022 05:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662553288; cv=none; d=google.com; s=arc-20160816; b=NIS3Wv2TCQmQ6k+jY8S8w6CmV7DjtJ/kJIv9RSHDKsJeq/EC56ysmVzVnXyEFhY+Ta PyHxOBnVXZg7fNJ5Y2deBGSUPftbesTw2TjD+11cmqZHTNIkpAyHDZYnUJBdCpJZctcY OnKk0uYLxpeVkQQjRi6wr6JFqVjWwCjkZzG7VFbA535hMrp7iY9QpJgxRe/qCVtAHE5j KOtc4Y6cA6xb2bKa/5txL6Zu2nE2gJ0tCvfoV/J14HEe6M5LlRi/s3eVOXtpEp3updFL I/RBgpbjPg0iDf8oeL3LWBO98ZOAhtFNWuXguJ8qbNEHp5yR/F9J8VsRplMI17QOQJ3x mP7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=KRkt0glFn+xu07ydfB/d2Wv38p8r8RVeegLU6xslPcQ=; b=CkootYqt3AjrUpJxa+7Q5LVRcm5/14VySPqTfxrt/F55YfGWmn63BuqVbsKA71+45s TZpP8/jMHN9Iu/nLhJqi0/1j43fwWIkR5/nVfHrekfN0eqMhzrQgrPuIXIZ9LGqZmoO0 CaVOY/+iOS1PgJbJPg8nBlKLeCk1ZxRy/TT7681vzzO/i0YbH65rkW6h+axA6Ax097kq PX84nT4TiFD1D6iSMSjJhzouEFit2smYHqFgKIzU0JIpen7ISfa1RU4WGChQbbaoFHpv G+9c3G3pprZc6GrP+ff965YqDWm0Mq4Q+FIHxVhfNyl6UhximnPjT0wd2KgDt9dFAlzw mwsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MXBU9ShA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on13-20020a17090b1d0d00b00200668493ffsi3472128pjb.44.2022.09.07.05.21.16; Wed, 07 Sep 2022 05:21:28 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=MXBU9ShA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbiIGL4Q (ORCPT + 99 others); Wed, 7 Sep 2022 07:56:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiIGL4P (ORCPT ); Wed, 7 Sep 2022 07:56:15 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5D8779A7F; Wed, 7 Sep 2022 04:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662551774; x=1694087774; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Gdw6dbZpo1DaAaGY0fNLdu4Ie3rJKx46x9yqgZ/nX+c=; b=MXBU9ShAj83QB7nYcSBxpYNDrK/Je64FVrtf9AAHsQfrxNDJZWNmRzh8 cdWpgwbj9D6c0EON2lc0pctBhAQNFLqYJZZVdH4I+PcZUdtwM9rbsDJyH AytXj30eZzWKe6k6RH0J6Ml6pdFjVvpXXtvU7LjOUaIIxBJ7l1671QJ5X 7Ze1jr9S0I9QoQaIhUHxjZVH0n8jYp2VvfagUU40GGDuHZtnNC7DiwX1X vbIgXNoOJ95tbxNT7SddJ2e0mkaQMqb049sUUcv+yv0HCYGgnuZSe+NfB 26N6EDcaVXXuiQ/UqxeuGWigGlZlZBCqoTN1vhuSaQhJDuptWMErJSX9p A==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="296851202" X-IronPort-AV: E=Sophos;i="5.93,296,1654585200"; d="scan'208";a="296851202" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 04:56:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,296,1654585200"; d="scan'208";a="756742642" Received: from black.fi.intel.com (HELO black.fi.intel.com.) ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 07 Sep 2022 04:56:10 -0700 From: Heikki Krogerus To: linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org, grzegorz.alibozek@gmail.com, bastian@rieck.me, andrew.co@free.fr, meven29@gmail.com, pchernik@gmail.com, jorge.cep.mart@gmail.com, danielmorgan@disroot.org, bernie@codewiz.org, saipavanchitta1998@gmail.com, rubin@starset.net, maniette@gmail.com, nate@kde.org Subject: [RFC PATCH 0/2] usb: typec: ucsi: Check connection on resume Date: Wed, 7 Sep 2022 14:56:24 +0300 Message-Id: <20220907115626.21976-1-heikki.krogerus@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi, I'm sending these as an RFC first because I'm not done testing. I made a small modification to my original proposal (in the bug report). Now also connection during suspend should be covered. I would appreciate if you guys could test these again. If everything works, and the bug is fixed, let me know, and I'll add your Tested-by tags to the patches. thanks, Heikki Krogerus (2): usb: typec: ucsi: Check the connection on resume usb: typec: ucsi: acpi: Add PM hooks drivers/usb/typec/ucsi/ucsi.c | 42 +++++++++++++++++++++--------- drivers/usb/typec/ucsi/ucsi_acpi.c | 15 +++++++++++ 2 files changed, 44 insertions(+), 13 deletions(-) -- 2.35.1