Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3535161pxb; Mon, 4 Apr 2022 20:17:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLKlSeCKUYbpU+DZMeaa6PHmAs7EgBIGlMl9dBBi5ty060zyW5aIeDjK++6svDEtfhS49s X-Received: by 2002:a63:d149:0:b0:384:b288:8704 with SMTP id c9-20020a63d149000000b00384b2888704mr1118907pgj.112.1649128674575; Mon, 04 Apr 2022 20:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649128674; cv=none; d=google.com; s=arc-20160816; b=dHvOoFCVDHgtv63QtMl0LUax98+GE5UUzxbPdOt8SVo3bkyZcj3SyFOQjP8B8D153m YhQt83lIyAMOSm9vvCQ68n5yug8aOipl4BTrwv0kfl0xhvNmtfrtAobJ43v4WI5MDAbL QCjNO9ppGPEQwPJkQoIjm/aeVnGzdub5+XT934v4wLMcgKuiyUOAsXO6NOism61zYFfD rmhPA/Z0w5VGXh0Z2c2nYbFdh/8GPz+nwKo21BfT2s3M46SGGu9syAbfuE/pX8N5KLL7 BavhKTZjRiu0TjEJMqWxEqRFBVgLgxQkqpaAEpKUtlmH8xI/MXkFhHg7wZZbR/nGeWb1 h0yA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vClqe9uBo36pGKXxmPi8s/qWOal1QNpnkRbQGBruZH0=; b=eWckksW4ci/AB369rHOoXJx8RKQokLO2ylaaFr7j5QJSAlMZ4lGgIL8J0yF8qr478i lOaVNAHAVP59Kcq/oyhLUOAdGmUdy0ZA4P/j6e6vH50Yl13E2v5eQJRHZ12TLanR/MDo TTZ59BYbM8kVohIOTXVbMNAf8SaZG5dvm1uuXztPt1cvGISqK17obWvsQoMWPbL7IpBr cTUBm5518j+A4uOGr4yWRWaQ5vQ80OsLqib4MiOHZeMVnVLIC1bVpWQsNa6yKPJr2NKQ 11XPV7i9w6D6jkji4TbHuM+Wav2EhKCsuYU8W0EJIn0BSZspjfYADcxoYGk4YwtxttfQ 7ijQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pylCjjYQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k13-20020a170902ce0d00b00153f969542fsi11299603plg.436.2022.04.04.20.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:17:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pylCjjYQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 90F791C4068; Mon, 4 Apr 2022 18:17:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347015AbiDAO2d (ORCPT + 99 others); Fri, 1 Apr 2022 10:28:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346965AbiDAO2U (ORCPT ); Fri, 1 Apr 2022 10:28:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F1281E1105; Fri, 1 Apr 2022 07:26:30 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 015ACB82500; Fri, 1 Apr 2022 14:26:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 059ACC3410F; Fri, 1 Apr 2022 14:26:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648823187; bh=SyTOn7y6nyPh5CZweMHgg1YlsPXWzamM40RkWEELlmY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pylCjjYQAH5egynesWfl4aTGWNCCsUAOQfND58X+wMA5QpIY2feWPZDmfj+OGCaVD 8O0a4Irp489tJlsQD8Ihmu6EtN0rg9XjA9uaFD0siTP/O4CNc7Bj1b6kX1b0mlzwDl rooEOljNbzLPQKzleir9mOq85zl91lGQBByXKc6963pieyzwBzxpT/i47ZnqK96hNI JGdQIY9cNMJ/5eK7hVtaIkehPASup0CsB+iGza2M3zbHbKydDimPm7UvxHt7uXTnBk k052Pq77sV5llhT2923e5fP/LcCv5DY67HK3Aosuwq07YAFo+3bTMy2V66isPY/Tfm YNUlB3D5S3bLw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Wayne Chang , Greg Kroah-Hartman , Sasha Levin , balbi@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, chunfeng.yun@mediatek.com, zhangqilong3@huawei.com, yangyingliang@huawei.com, jakobkoschel@gmail.com, rikard.falkeborn@gmail.com, linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH AUTOSEL 5.17 014/149] usb: gadget: tegra-xudc: Do not program SPARAM Date: Fri, 1 Apr 2022 10:23:21 -0400 Message-Id: <20220401142536.1948161-14-sashal@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220401142536.1948161-1-sashal@kernel.org> References: <20220401142536.1948161-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wayne Chang [ Upstream commit 62fb61580eb48fc890b7bc9fb5fd263367baeca8 ] According to the Tegra Technical Reference Manual, SPARAM is a read-only register and should not be programmed in the driver. The change removes the wrong SPARAM usage. Signed-off-by: Wayne Chang Link: https://lore.kernel.org/r/20220107090443.149021-1-waynec@nvidia.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/gadget/udc/tegra-xudc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c index 43f1b0d461c1..716d9ab2d2ff 100644 --- a/drivers/usb/gadget/udc/tegra-xudc.c +++ b/drivers/usb/gadget/udc/tegra-xudc.c @@ -32,9 +32,6 @@ #include /* XUSB_DEV registers */ -#define SPARAM 0x000 -#define SPARAM_ERSTMAX_MASK GENMASK(20, 16) -#define SPARAM_ERSTMAX(x) (((x) << 16) & SPARAM_ERSTMAX_MASK) #define DB 0x004 #define DB_TARGET_MASK GENMASK(15, 8) #define DB_TARGET(x) (((x) << 8) & DB_TARGET_MASK) @@ -3295,11 +3292,6 @@ static void tegra_xudc_init_event_ring(struct tegra_xudc *xudc) unsigned int i; u32 val; - val = xudc_readl(xudc, SPARAM); - val &= ~(SPARAM_ERSTMAX_MASK); - val |= SPARAM_ERSTMAX(XUDC_NR_EVENT_RINGS); - xudc_writel(xudc, val, SPARAM); - for (i = 0; i < ARRAY_SIZE(xudc->event_ring); i++) { memset(xudc->event_ring[i], 0, XUDC_EVENT_RING_SIZE * sizeof(*xudc->event_ring[i])); -- 2.34.1