From patchwork Thu Jul 2 14:46:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 192269 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1511947ilg; Thu, 2 Jul 2020 07:49:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTG6a6qU7AnSh/ueoST466Kfx9S7yVWWkaxFWqY5Q84yhQ2ieocqdaO8Zt1e0z72F9vNW2 X-Received: by 2002:a05:6402:1687:: with SMTP id a7mr34846692edv.358.1593701369403; Thu, 02 Jul 2020 07:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593701369; cv=none; d=google.com; s=arc-20160816; b=wsecYlStWhe3GuCqwI8cxyylvM+AjneEIM/vnuLy9pBPCDzwayCyPcvo3+WjM8ek6q 18+PlT3qoKtOIK7RwozRyFXnlbgSz0r1qGZ0I6wXXAzxlJhiY5kxZRLJdvjU1ajkNxB9 O4tjHt8qz+cHwAKYzrE3z/CxXXpSujS0McJ/40lTT9+9qgGdE9lslTe6H9O8TIQjWLGr YNwpwAwHlipY/jKtRWJI+LJumhgme9ot8O1qTaqiTBNOAvmet8lvK4X5xw888IGwNHN+ pfhmytfdJMVjxtnxCELhJfnbdwrndoDZ5MVCf6lFBy72dTGTVvEgu5goVIO2x/j8lTY4 yNVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zCvEYr43bmvAI4c/u02EnPe5wklhcOBr52WpV3Wdhnc=; b=ikrabo/JPmPB85PiHpWRdbYLmOikTDmKbnubVd92ZxVsf+UE21r7OwFZjErxdEdf5c QzSzvaUnVm6xgTvkG6rr2lBUMg4Nh7NgKXk/FNddUipnmoe1XKEtX5agrmE9VKQkNAlM iOal8XMWFxuGjM4lOXtkJiKWuUMAq3br2bNzsrOdTMjgy85wLqGZupOdaAJjOrPPB1YH eUf7XdRDaFOOKmoTqmn+MEyjpnxPASBg58rLANb0a1KshSd6rSyHsZFRd+AxiDGL3QOb +nDq/MraIQwvDNbALf7/B1ymxKSIZqo0Nm3ktgxfsn3L39Ys31b2TUo/aebTivv4AKU/ oxyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rnd7ZVz1; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n14si5692504ejs.745.2020.07.02.07.49.29; Thu, 02 Jul 2020 07:49:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rnd7ZVz1; spf=pass (google.com: domain of linux-usb-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-usb-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729968AbgGBOtU (ORCPT + 5 others); Thu, 2 Jul 2020 10:49:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729952AbgGBOqo (ORCPT ); Thu, 2 Jul 2020 10:46:44 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DCB5C08C5DF for ; Thu, 2 Jul 2020 07:46:43 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f18so28294692wml.3 for ; Thu, 02 Jul 2020 07:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zCvEYr43bmvAI4c/u02EnPe5wklhcOBr52WpV3Wdhnc=; b=rnd7ZVz1ZhbElscG9Bkyx7lA4/DyNELrmIlS9pFIxHeR0jZ64UUgjYI7/xmq7V/nBQ ZjeYBcOXpxnMVFhStvkm3qSrrk39Vbmp5EY9GY7i2drA52md+rN3AH5t9d8r0TgeFZNz tw/ORXRpXc9E6zjDPBTC35hNIHMr+7X2+Bt/wd9jC/lvPleiDxFGAMeKNMn6tZwOKAMw +Fr6OtBOW8Ck2cXOQadIEhvAe9qMjojndUc9IB+nRn8EfKDQNJv3QpZ+jbkkt3DrMn/x Qq4i23HE176PnzXDn8TVDQOGIPyiW8rEvw2ymMaPpVPUI/C+iiH4DcU3ekAl1SEKJ2/j EL8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zCvEYr43bmvAI4c/u02EnPe5wklhcOBr52WpV3Wdhnc=; b=THjZRN7mQEo+HhLfz1514i1QU9YfZ65MaMafb+iJKjUrDkT7MF9pryChsxZQItV03O 6yFIjGBxSAh4/DNDx/6sb71e+WlLBDLU5p08hH+7UVZcHhO/37Aen98CI1tDNWlVL4nI MYkvAUdqXk14vyOtCrtb66DzJ6snx5nc9ox+VAQTsDnJv1FpSHt3kxUl912W0ZfDfBVN iKHFXbq0DAmOJtmFp/Q+4L1q3kVFjY0ENrHQZ1GnjFMa5lSQysXTrPqD/0KmYAms1ud4 o+gP5yMtm1I8HpMHIDevOgr7HVnigKDOJ4WIl0BpoxayY8UORYYVsP2urhbbP7SizAEf Hikw== X-Gm-Message-State: AOAM531I4O/eVH88BMP8ADawWLczuXhIhLSgLzrppVDUseJU+AFpHUrh 5xEj69nQTMGPlMlF23bPzC3G7g== X-Received: by 2002:a1c:cc12:: with SMTP id h18mr30459205wmb.3.1593701202335; Thu, 02 Jul 2020 07:46:42 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.144]) by smtp.gmail.com with ESMTPSA id g14sm7002737wrw.83.2020.07.02.07.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 07:46:41 -0700 (PDT) From: Lee Jones To: gregkh@linuxfoundation.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Lee Jones , Felipe Balbi , Andrzej Siewior , linux-omap@vger.kernel.org Subject: [PATCH 08/30] usb: dwc3: dwc3-omap: Do not read DMA status Date: Thu, 2 Jul 2020 15:46:03 +0100 Message-Id: <20200702144625.2533530-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200702144625.2533530-1-lee.jones@linaro.org> References: <20200702144625.2533530-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Commit af566a0be6e49 ("usb: dwc3: omap: get rid of dma_status") rendered reading DMA status from the H/W even more redundant. The variable hasn't been read/used since 2016. Remove the set but unused variable and the call which populates it. Fixes the following W=1 warning: drivers/usb/dwc3/dwc3-omap.c: In function ‘dwc3_omap_probe’: drivers/usb/dwc3/dwc3-omap.c:460:8: warning: variable ‘reg’ set but not used [-Wunused-but-set-variable] 460 | u32 reg; | ^~~ Cc: Felipe Balbi Cc: Andrzej Siewior Cc: linux-omap@vger.kernel.org Signed-off-by: Lee Jones --- drivers/usb/dwc3/dwc3-omap.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.25.1 diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 8c3de2d258bf7..11288a370828c 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0 -/** +/* * dwc3-omap.c - OMAP Specific Glue layer * * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com @@ -457,8 +457,6 @@ static int dwc3_omap_probe(struct platform_device *pdev) int ret; int irq; - u32 reg; - void __iomem *base; if (!node) { @@ -503,9 +501,6 @@ static int dwc3_omap_probe(struct platform_device *pdev) dwc3_omap_map_offset(omap); dwc3_omap_set_utmi_mode(omap); - /* check the DMA Status */ - reg = dwc3_omap_readl(omap->base, USBOTGSS_SYSCONFIG); - ret = dwc3_omap_extcon_register(omap); if (ret < 0) goto err1;