From patchwork Mon Jun 10 17:11:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 166354 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp1273983ilk; Mon, 10 Jun 2019 10:13:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqymm7jbxQmbQNzCmrkXTaEMKmtGsSOBE9KBKjYmXsN3hWt5igZbeuK2Xm14/pGLwrZSK0vt X-Received: by 2002:a17:90a:ca11:: with SMTP id x17mr17047736pjt.107.1560186801717; Mon, 10 Jun 2019 10:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560186801; cv=none; d=google.com; s=arc-20160816; b=Pi2Z8d+HPeOLO0OeYWNkqcYRw8Y5aQOCqL+6wt7Y+xnlxo76MVbm0l51iFyx/+bYJj mcl+YRNNTVOTFrebaD3X2RL/dxUK3F55xJ8skiBASqoW3vf20zwHauacs3Enct8yCSlW i/OQLEkcWFkcwazXOyx0edHdwd9PTX37EKAGnFqIhsI3bLqX21TYku5pC7D3RVzELjwP g5vNA2FaaWslHg1xGWlHZHn7lnsitr5R689M9E5f66PH+GTkGqUOYtgULVvVFTolYtJe BC+0TWtJGEyXf7o+nAqtn3rlvATPQkCTWKrWlWxvZ2rqzpF2RioNZarmlvatzIh3Xkod ptZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=SNBUl0AgT9mDHDFh2idiGb/Cxs8x27UMIHDIZ9dVyA0=; b=z2UMDGWZIR/dEG/9n55hXpxykDAqHO15k3V7kIvWxNhcSthSiqcjBkGrXCetY0OPOE UlG7Sj7Qx3y9oFGhzgYzOI1mp9Q2hJAyAM4uLPEYN3aMqBgeLizKzt+Ikr+F6TU6gE9S IDYqXBMgcnJ4fBaWnw2nUE/or22w7uvfW71T59SS0gfgC7WUfOHxd1AEuNlag9ZuzaG4 N2SQIALKeTWRSXNFFPRQvftoZ958rYyP9v0MN3ZhSP/gAPYh/gKLlShl3D2HY9tx/j/R Hf5Q6CPRBHPHTtWrpcnzQiEPYj3crSOuN3yLcSOpW7+Y9olaFViYMMSZ0DjMlscng8zr 1WDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="bk/jLN7J"; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cj14si10503411plb.141.2019.06.10.10.13.21; Mon, 10 Jun 2019 10:13:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="bk/jLN7J"; spf=pass (google.com: best guess record for domain of linux-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728584AbfFJRNV (ORCPT + 5 others); Mon, 10 Jun 2019 13:13:21 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:44604 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728549AbfFJRNU (ORCPT ); Mon, 10 Jun 2019 13:13:20 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x5AHDBKD121923; Mon, 10 Jun 2019 12:13:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1560186791; bh=SNBUl0AgT9mDHDFh2idiGb/Cxs8x27UMIHDIZ9dVyA0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bk/jLN7JU0Xwhpv1oxdpoIqxrYHN0mmIkWOUuyHSkPnX7Iy0b/CX2pdRKgdZJlo9X iUOG/vnrJTs8sX/Sh+CH9BAWQVbHcmbFOFQ8+9FkkKMogcmkmr29K/cZ+jWNYHwRsa GDzxciiiJaBIMTr3GcIgfKh0sPrpGkDm+CZ74HLw= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x5AHDA4b047205 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jun 2019 12:13:10 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 10 Jun 2019 12:13:10 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 10 Jun 2019 12:13:10 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x5AHD9fs052679; Mon, 10 Jun 2019 12:13:10 -0500 From: Grygorii Strashko To: Russell King , Linus Walleij , Tony Lindgren CC: Bartosz Golaszewski , , , , Santosh Shilimkar , Russell King , Grygorii Strashko Subject: [PATCH-next 20/20] gpio: gpio-omap: clean up register access in omap2_set_gpio_debounce() Date: Mon, 10 Jun 2019 20:11:03 +0300 Message-ID: <20190610171103.30903-21-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190610171103.30903-1-grygorii.strashko@ti.com> References: <20190610171103.30903-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Russell King Signed-off-by: Russell King Signed-off-by: Grygorii Strashko --- drivers/gpio/gpio-omap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 94b10dfbff3f..52592eac0895 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -181,7 +181,6 @@ static inline void omap_gpio_dbck_disable(struct gpio_bank *bank) static int omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, unsigned debounce) { - void __iomem *reg; u32 val; u32 l; bool enable = !!debounce; @@ -198,8 +197,7 @@ static int omap2_set_gpio_debounce(struct gpio_bank *bank, unsigned offset, l = BIT(offset); clk_enable(bank->dbck); - reg = bank->base + bank->regs->debounce; - writel_relaxed(debounce, reg); + writel_relaxed(debounce, bank->base + bank->regs->debounce); val = omap_gpio_rmw(bank->base + bank->regs->debounce_en, l, enable); bank->dbck_enable_mask = val;