Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D07CFC54EBE for ; Tue, 10 Jan 2023 16:22:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B5383855B5; Tue, 10 Jan 2023 17:20:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="SU/3ZAFN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C3B65854B1; Tue, 10 Jan 2023 17:20:14 +0100 (CET) Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) (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 EDF6585582 for ; Tue, 10 Jan 2023 17:19:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-4c9b9185d18so89551867b3.10 for ; Tue, 10 Jan 2023 08:19:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=PV7g52bnk7ZxGV9qVBaRrJhQk3g0QKwgEuyD4Miyjik=; b=SU/3ZAFNM7S6FT7lw5yS2SJsxFeYcAnF2up2Oza2g62ijRTL/Uf5/pR9CluYHECGLw iHFJGuEehKfwfXxUxrlOhJbVjx6aeBeAgIvIcFZBjAR+pcUaLBsHNhllKv0BCxfKrrAP Ni+F3Ues1qTXoPikgZBhHNODlpHTnxP/EIkQw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PV7g52bnk7ZxGV9qVBaRrJhQk3g0QKwgEuyD4Miyjik=; b=TAMaU18200Xh9nTRcabbF1R0SzuWx/ecWLmQlSseHzH4gujsWu58ziPxXV6ONEc/6o 4x6VloHqPURaKgYziz6fbhSJSA1jq+6sLLLS+skZshnBeQHze4SNL0zlztk/P4T/e5p+ vzkKiSwfmmrEbE+eNO4g36TjWpHX/6iwNQn6s7x0K6qg/7BVBtgPnr/0CoDAK0kEpzvk IMWnKzr6kGzq8FgI6Ien0SWWlM9QEkcWnDTCgzviQnEPtEHE+OtDURzgbpqE6Phwz+QG eYBb1z0G5wCFD2g2pcH1R4hJgiN0W12hCWfgk+TKsToLEIRTTqGap16icHUlUPwKjTCr Pimw== X-Gm-Message-State: AFqh2kq4jvowqwz8cAxFnqk7hoX0boyLyxB4BZSv7q4s4/o/Sfyqx5Jc PvPdRLyVUhy01iyTB/FiNcNxIKUYdlrw/kwwnSQ= X-Google-Smtp-Source: AMrXdXurGpAiy7QBBti6xZyAslOGUrtPoxfI15cidX7L7LNAS3SZpqOx4pBWkVcYYHHSJmnfP9fjhA== X-Received: by 2002:a05:7500:39cb:b0:ea:a79d:1cca with SMTP id lv11-20020a05750039cb00b000eaa79d1ccamr4286222gab.32.1673367596211; Tue, 10 Jan 2023 08:19:56 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-2c2f-ce0f-8dee-7136.res6.spectrum.com. [2603:6081:7b00:6400:2c2f:ce0f:8dee:7136]) by smtp.gmail.com with ESMTPSA id d12-20020a05620a240c00b006fcc3858044sm7557110qkn.86.2023.01.10.08.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 08:19:55 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: Marek Vasut Subject: [PATCH 11/19] usb: musb: Rename CONFIG_USB_MUSB_TIMEOUT to MUSB_TIMEOUT Date: Tue, 10 Jan 2023 11:19:38 -0500 Message-Id: <20230110161946.3816866-11-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110161946.3816866-1-trini@konsulko.com> References: <20230110161946.3816866-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean This variable has never been configured to another value at present, and was not converted to Kconfig. Opt instead to rename this to MUSB_TIMEOUT. Cc: Marek Vasut Signed-off-by: Tom Rini --- drivers/usb/musb/musb_hcd.c | 6 +++--- drivers/usb/musb/musb_hcd.h | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c index 17901704f521..4676cabae0aa 100644 --- a/drivers/usb/musb/musb_hcd.c +++ b/drivers/usb/musb/musb_hcd.c @@ -118,7 +118,7 @@ static int wait_until_ep0_ready(struct usb_device *dev, u32 bit_mask) { u16 csr; int result = 1; - int timeout = CONFIG_USB_MUSB_TIMEOUT; + int timeout = MUSB_TIMEOUT; while (result > 0) { csr = readw(&musbr->txcsr); @@ -180,7 +180,7 @@ static int wait_until_ep0_ready(struct usb_device *dev, u32 bit_mask) static int wait_until_txep_ready(struct usb_device *dev, u8 ep) { u16 csr; - int timeout = CONFIG_USB_MUSB_TIMEOUT; + int timeout = MUSB_TIMEOUT; do { if (check_stall(ep, 1)) { @@ -212,7 +212,7 @@ static int wait_until_txep_ready(struct usb_device *dev, u8 ep) static int wait_until_rxep_ready(struct usb_device *dev, u8 ep) { u16 csr; - int timeout = CONFIG_USB_MUSB_TIMEOUT; + int timeout = MUSB_TIMEOUT; do { if (check_stall(ep, 0)) { diff --git a/drivers/usb/musb/musb_hcd.h b/drivers/usb/musb/musb_hcd.h index 7eb65e6b10d0..a492e99ef9d1 100644 --- a/drivers/usb/musb/musb_hcd.h +++ b/drivers/usb/musb/musb_hcd.h @@ -16,9 +16,7 @@ extern unsigned char new[]; #endif -#ifndef CONFIG_USB_MUSB_TIMEOUT -# define CONFIG_USB_MUSB_TIMEOUT 100000 -#endif +#define MUSB_TIMEOUT 100000 /* This defines the endpoint number used for control transfers */ #define MUSB_CONTROL_EP 0 -- 2.25.1