From patchwork Wed Aug 23 15:41:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 716094 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp870657wrp; Wed, 23 Aug 2023 08:41:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/K1AFy3vzYl/xxudTYwGfdrsEBUo3I1FdTIsfhMGq3c1+kQ8thhxSHPLXmQ+/tCDiUI0N X-Received: by 2002:adf:e990:0:b0:319:6d8a:75f8 with SMTP id h16-20020adfe990000000b003196d8a75f8mr10872942wrm.44.1692805301233; Wed, 23 Aug 2023 08:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692805301; cv=none; d=google.com; s=arc-20160816; b=tVhsk/9hk1bF55zIwW0JMCbEoTb1pQE9fuBKjPEPJYA5ISOfrleZ8Tx4QOV8wZN2ff /xQskTxzclRLXRTCp4ZVV+xbkaK2xjH2T0ms3v7+Iyof2Xi5nt5FPmC2iI/Vkwsku8MN 3NCKhEzCvAqsp33q8ziyuGWHh5tsbSbH1MtWGfDCClHyjhiHVnENINQebuvbk35+oMdh 94dHREWwNOI2Z2jz8bWFGr8fwKUkkm0dhbg5cJiWJwJmsxPEQTW9GNVGZD+if9irylS9 yhHAaj7Fy0ifx8WjtBEXY/I9oeEz/FuEFxZoBv4oFszA2nANL4omN6etL9YuKO98VgRo Sefw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=Ua56PexO0PB0WocLx4bHYVCVu0rkt9kVrEIylXM8wI0=; fh=c0SF6LOgePrqzoYYS5fef7trt+HcqGZixdRF2F9RS1c=; b=wD+F4VkPH7vMw9tOO4EmQWEbkLWUoRBzjJgshMcuD/6ZHY9R7zzOAkoPErXTIOhQ0i IAIe3LemdhETtLDbWhUfnRhkD4QU2id5QPtAmOfn/6dld4XXvwb+Le6cJkM+gXA2X9mn H1wCwj0OazHoS1yty7/faI83sNjReitgJQGchcfIgQvQtNJkFBiJcnCTdjD7jGY3WRal D9tcYKH2E9zmaH2TnKZfeuUQxonghmmsFqIAMkuw3wSACH6bCenKQvSLAQCbVbTCpipI vZuZLJCoK5q8qX/0p/8ynGnXYy1u/qOJ/QBT/S91ob8IFO1fMwefAa5aSEvMLsxb0GXb aYLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MXLpgqzQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id f18-20020adfdb52000000b003176002b4aasi5019692wrj.569.2023.08.23.08.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 08:41:41 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MXLpgqzQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EF8F986403; Wed, 23 Aug 2023 17:41:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="MXLpgqzQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 11E6C83F7F; Wed, 23 Aug 2023 17:41:39 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 042F786403 for ; Wed, 23 Aug 2023 17:41:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bhupesh.sharma@linaro.org Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1bdf98a6086so45636175ad.0 for ; Wed, 23 Aug 2023 08:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692805295; x=1693410095; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Ua56PexO0PB0WocLx4bHYVCVu0rkt9kVrEIylXM8wI0=; b=MXLpgqzQtWVS21mHj4ed4Md2LpO/xBQLWIdu94n/ngJOgd8F/SbyUcuXtJG074JIWf bExFM0N12yn9iucrCDfH4QbWsQ6q2DjyZuEAgISi3IqMQCgHsZ6EiBDDEljzHZiu+fF3 xICvIjUaTxIvuu1Ly3AWe1BQ2eftJWLwJAsBtpqQMGf8vH7cucN7l0xjGYUYsmYOH9ij EOELkyfJTb4j+MlukBxsCL44JS8EKKhJUoes6TyPxcgz24hA9CmmpAddqKYrbCfLwYMl ngLhE5rstli31lq1ak1VhqDIK03yPNi4z0AiVtxZRV1KJ+WJ+eUqFE2JTqm//Oiwxv4u oVAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692805295; x=1693410095; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Ua56PexO0PB0WocLx4bHYVCVu0rkt9kVrEIylXM8wI0=; b=JN1aEMvOUgqiJwTX2kHzN3rLKWWDJOoqQH8lGmJsb41Caxd+rAzI5Hwd2JvkfsS0CJ x06u05hLgQwgoEt2k304jkEmg3VYz1YTdAK7Im7cfoZphtSTgsgFhXCMoW3tyUwOAamJ veqZ5nO3enLWAIqA8Kn5MoJXbvmU+q+Q/2dZLbgirFca5bvHf1wPYayAQV1DgMqdWJqu FDQ3Ejj6YrnNvXXsD0SBZNwj1HEnJlHgvK5vmMUtJEFw3L9kkB0ed28vCpMtLGHMtNuA xqxbGtWTBcHlztZTg7uPcEWPXqoISwOoSKu7an9Vbqncl5lHu2jc8mxgJhnNfWmMCsKp 8t4g== X-Gm-Message-State: AOJu0YzF4HcwcbOfEpL7UK/vZ9YArpmIG69du1csvuWMEatmE1xSP2yA BiqAJKQ2Ddf7d5GHl6+8CHMHdTRiY7wN/r+nFf0= X-Received: by 2002:a17:902:ced1:b0:1b8:33d4:77f8 with SMTP id d17-20020a170902ced100b001b833d477f8mr17041518plg.23.1692805294983; Wed, 23 Aug 2023 08:41:34 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3b:3924:9994:72d7:d8ae:7ab6]) by smtp.gmail.com with ESMTPSA id g7-20020a170902868700b001bb3beb2bc6sm11033034plo.65.2023.08.23.08.41.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 08:41:34 -0700 (PDT) From: Bhupesh Sharma To: u-boot@lists.denx.de Cc: sjg@chromium.org, trini@konsulko.com, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, marex@denx.de, bmeng.cn@gmail.com Subject: [PATCH] usb: xhci: Define 'XHCI_MAX_HALT_USEC' macro only once Date: Wed, 23 Aug 2023 21:11:23 +0530 Message-Id: <20230823154123.859927-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Right now xhci header file defines XHCI_MAX_HALT_USEC macro twice. Fix the same. Cc: Bin Meng Signed-off-by: Bhupesh Sharma Reviewed-by: Marek Vasut --- include/usb/xhci.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/usb/xhci.h b/include/usb/xhci.h index 4a4ac10229..958c94bfa7 100644 --- a/include/usb/xhci.h +++ b/include/usb/xhci.h @@ -1136,8 +1136,6 @@ void xhci_hcd_stop(int index); /************************************************************* EXTENDED CAPABILITY DEFINITIONS *************************************************************/ -/* Up to 16 ms to halt an HC */ -#define XHCI_MAX_HALT_USEC (16*1000) /* HC not running - set to 1 when run/stop bit is cleared. */ #define XHCI_STS_HALT (1 << 0)