Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp518168rdb; Thu, 30 Nov 2023 10:36:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ7m2eFoIQhWe4fXANE1XPc1fSie+DebCmp10H+af9ERqIZuCvUp/5qqKfbdaRiRlBxTT2 X-Received: by 2002:a17:902:da81:b0:1cf:b1e7:14b6 with SMTP id j1-20020a170902da8100b001cfb1e714b6mr21052439plx.31.1701369366045; Thu, 30 Nov 2023 10:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701369366; cv=none; d=google.com; s=arc-20160816; b=XqQLc55GEGg12ZibhSX5/s1ELoN5ld2TeinFryOsATzW7iq7Rx0nCeZlDGh1clSh/W 73XG64TYyuZ8ivx25bf1otu2tjcKiilXF/N0+xVX45hU7NhN4lH6UyLbxK/ttwAWJm91 jDM/VvovYen/XFgM7GY/5fQZKpgo49cenZaELezodn40A4TcSOJbvYrL1wkoHzQ/mnNp IgymsEvf2/eG+SxxsS/TkKunba/y4KRjtCeiJOo4aWeHRlf0CH6tLEyFxbs1w+yEcroW 9UrLbVlQOd2DCyoRsKBSq/Rj+2rDoBGbu73BlEMdhyFxOf94TN4TDcEuq2Iw3KP89uGj 5l6Q== 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-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=i770h8iYfYpFnBl1odCRID6PRJcYXKCFqfC3tfWjhK0=; fh=cN/WNadKQ17Ve9nvb1w5HqEJy5EVJl/bACIsnLZBQh0=; b=V/Bx8864iv9VOHCTIV1peHZRtItrdtEhc0PmDHJmZxkgvzCrzhqpF1tDdqTpGCX/y3 JjvmnhVllB7pgwRc22GXXSZN+WlbpRoK/Kyg2d2mwmloBfvmTzwT8V1esS2qZJT9bO0s 9xD7L6R448op+2YwNLndbk+BEiWiMLrBC1QMBFOIB8o2DTcmetZdLdcK1st4BTgXaBAz PPbZL5KBD4rAk/lrVEfYykKlmCxpr5LNPRTTo58m4uRSP19ds+KU1ZiJpbIU7uZY0f33 aexjQICbgt5CUcViO3Sqi9/S1cJiZm+m9GXUsjiFwSM0BKsywm0JmAlOagRbdEXd2eG/ t8Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FvXPQNey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id e21-20020a170902d39500b001cfa37f9a6esi1662217pld.531.2023.11.30.10.36.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 10:36:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FvXPQNey; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 221618079631; Thu, 30 Nov 2023 10:35:15 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231959AbjK3SfC (ORCPT + 99 others); Thu, 30 Nov 2023 13:35:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbjK3SfA (ORCPT ); Thu, 30 Nov 2023 13:35:00 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85AB1C4 for ; Thu, 30 Nov 2023 10:35:07 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F2AFDC433C7; Thu, 30 Nov 2023 18:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701369307; bh=1KLmnXj3oH57djjg5RXbttA8qHBNJ7pmAovpuDi+A9Y=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=FvXPQNeyANpdmDNj5C/xy3Or4/5l8FHT4OClrcmkIXl+IxeILBCmrYKMT/ITT2Vd7 WBUKG7691rCWWVy0fuIUU5av1YqoToCl8SJQ09wF44UlcbPry22JAQv8DTgK/hWqr/ sd6y+3qCGKh/e0NOwr7b+PFT6vrmHAwtlzPNVF5C+IzFQ59e2QLY+zhJKQbj0NS2nB yYcVu/0EiQSLL66ltpF92a4eDtClUrxhRN/vbsI5riJmgHUb82ylPOohbY/AYK/5Zp D4ENY0bTlquG7xTJpDXs8aOKLVBMmXRFitDd9X8QwbN+3HvTRx3wxA2PYbDPYaWqFN nYFsAuY8e0wHQ== Date: Thu, 30 Nov 2023 12:35:04 -0600 From: Bjorn Helgaas To: Kevin Xie Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, mason.huo@starfivetech.com, leyfoon.tan@starfivetech.com, minda.chen@starfivetech.com Subject: Re: [PATCH v1] PCI: Add PCIE_CONFIG_REQUEST_WAIT_MS waiting time value Message-ID: <20231130183504.GA487377@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 30 Nov 2023 10:35:15 -0800 (PST) On Thu, Nov 30, 2023 at 06:03:55PM +0800, Kevin Xie wrote: > On 2023/11/30 7:21, Bjorn Helgaas wrote: > > On Fri, Nov 24, 2023 at 09:45:08AM +0800, Kevin Xie wrote: > >> Add the PCIE_CONFIG_REQUEST_WAIT_MS marco to define the minimum waiting > >> time between sending the first configuration request to the device and > >> exit from a conventional reset (or after link training completes). > > > > s/marco/macro/ > > > > List the first event before the second one, i.e., the delay is from > > exit from reset to the config request. > > OK,I will use "from A to B" instead of "between A and B". That's not my point. My point was you said "between B (config request) and A (exit from reset)". "A" happens first, so it should be mentioned first. > > I assume there are follow-on patches that actually use this? Can we > > make this the first patch in a series so we know we don't have an > > unused macro lying around? > > Yes, we will use the marco in the next version of our PCIe controller patches. > Here is the link of current version patch series: > https://lore.kernel.org/lkml/20231115114912.71448-20-minda.chen@starfivetech.com/T/#u > > Do you mean that I should put this patch back to the above series as > one of the separate patches? Yes, please. Handling them as a group is less overhead and helps avoid merge issues (if they're all in a series there's no possibility that the user gets merged before the macro itself). Bjorn