Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1736042pxu; Fri, 16 Oct 2020 22:38:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfcrkb9D0iY1Wc0AqFRTvjLfC5kumfRFRs+vLmA/tYyudfAFaN3drvV5q08TXIMmop6MXm X-Received: by 2002:a17:906:9156:: with SMTP id y22mr7594468ejw.184.1602913113162; Fri, 16 Oct 2020 22:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602913113; cv=none; d=google.com; s=arc-20160816; b=v3iK9D+OyOqVBLgmGL8CZHsgIMEeu0hngQc57Kfqovx1g5AnzDq7x+n4Lvoid3Vnu9 G6X5SZl5ShCf2o4weIxFosjhfosk7xscojeRVKb2daZSbEGdayb5+GJCfI3CZGas+TwS nUHte3Yfi6hUdxFyDlwVLFSOLlmbMEGIq7GEAt1aKieyurX09kN8craGFDdYeSlOREie 933V4iO7mQqMnwEIbJBZhxK8fA+7QoxcxPijUsxsCb6+Ix2oQ+3TZVW5kj7aavBfzyC5 XjIbWeVfTV8F/2MWBP7UEGsP9tQDRVAQf8OiEr6UltsPpnZ/PKtwXj7z8LD4j1gwK/8l Dv8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=Rp+HSxm9PQZb0EstgFdqEA0nQ7TVt+YTi+fRH9zu4aM=; b=egLTcrDmT0PVNrjqU7CwDzcSXI6INXA1w93MWUc3N69VMCK1XDgi1T1Z/OzrkI6c6x R4qReUgABYUGXTKwqNhqHChB+iJBJj610LBIJeqlFAHi4bhBpwkCq5FHOIAHbM9zIU9f FQ7j1QggwK1C7S7tPAr6OplFwnfDs2vopLzSf6Rm3OKg0CrpB7J/HhBV8LMwY+cbFMJF lo07nVTwKQl9pKBzgKwzXgF5ywNbv2VjJ/aTO/FBlv3Wn1SQIMfCDr43UAARhcsPocox 2n1TtkJcFxi9PQDA54pGoeWJeXnCHEfJzR4KDt4XM9CXaP8vCMnxUzC8n6Dp5zjKwNnR VM1g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gu3si3072609ejb.617.2020.10.16.22.38.10; Fri, 16 Oct 2020 22:38:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2411493AbgJPXnE (ORCPT + 99 others); Fri, 16 Oct 2020 19:43:04 -0400 Received: from mga06.intel.com ([134.134.136.31]:23744 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2411464AbgJPXnA (ORCPT ); Fri, 16 Oct 2020 19:43:00 -0400 IronPort-SDR: colKsMvPgSEA7zkbiVsTiJ9kX/IO7b5wLQLFpWB5j6180uIMW/earkE15dPlR6YUlXh5FN97wQ XJ653NnvcyoA== X-IronPort-AV: E=McAfee;i="6000,8403,9776"; a="228362214" X-IronPort-AV: E=Sophos;i="5.77,384,1596524400"; d="scan'208";a="228362214" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 16:43:35 -0700 IronPort-SDR: 04QrJpbebCZp4aQMWzSV1N/I3Fcp/pY9SeLcJSdayj4Mic0FKIQptGkXgfMFyOWrJzs7aR5SMl XNwCOvoOHsNA== X-IronPort-AV: E=Sophos;i="5.77,384,1596524400"; d="scan'208";a="331316815" Received: from otc-nc-03.jf.intel.com (HELO otc-nc-03) ([10.54.39.36]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2020 16:43:34 -0700 Date: Fri, 16 Oct 2020 16:43:33 -0700 From: "Raj, Ashok" To: linux-pci@vger.kernel.org, Bjorn Helgaas Cc: Sathyanarayanan Kuppuswamy , linux-kernel@vger.kernel.org, Ashok Raj Subject: Re: [PATCH 1/1] pci: pciehp: Handle MRL interrupts to enable slot for hotplug. Message-ID: <20201016234333.GB103781@otc-nc-03> References: <20200925230138.29011-1-ashok.raj@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200925230138.29011-1-ashok.raj@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn On Fri, Sep 25, 2020 at 04:01:38PM -0700, Ashok Raj wrote: > When Mechanical Retention Lock (MRL) is present, Linux doesn't process > those change events. > > The following changes need to be enabled when MRL is present. > > 1. Subscribe to MRL change events in SlotControl. > 2. When MRL is closed, > - If there is no ATTN button, then POWER on the slot. > - If there is ATTN button, and an MRL event pending, ignore > Presence Detect. Since we want ATTN button to drive the > hotplug event. > Did you get a chance to review this? Thought i'll just check with you. Seems like there was a lot happening in the error handling and hotplug side, I thought you might have wanted to wait for the dust to settle :-) > > Signed-off-by: Ashok Raj > Co-developed-by: Kuppuswamy Sathyanarayanan > --- > drivers/pci/hotplug/pciehp.h | 1 + > drivers/pci/hotplug/pciehp_ctrl.c | 69 +++++++++++++++++++++++++++++++++++++++ > drivers/pci/hotplug/pciehp_hpc.c | 27 ++++++++++++++- > 3 files changed, 96 insertions(+), 1 deletion(-) >