From patchwork Fri Jul 26 07:20:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 169782 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12647857ilk; Fri, 26 Jul 2019 00:21:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYvK3GWNX4Rb7BgXNuGG5hrxjpPOTGGRq6EiIBcGXA82/3FagFFYlIuyO6XYSL/X/a31V3 X-Received: by 2002:a17:902:fe14:: with SMTP id g20mr89762182plj.54.1564125686619; Fri, 26 Jul 2019 00:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564125686; cv=none; d=google.com; s=arc-20160816; b=usYPm3EuNYyd072+wS7UzFihsnhaPJaOCue+VFG5XAtigjPlXy5Kjkkpi7luvj8c+D tQmDgK1oHjksRcH1CJxCZCCD42bvjdJ09PpYXkPCm4plVwcLNFgfqq6f9Pmih5Sp4p/P nLS+PTisSoVA09lD27qxXMbH2L85BaMZ4SVgN1voTajHjEfg3oJg1pomdWSc2DBVQ7II lEHlDvmb85AB1oa9h5rDlhDFgHhfDuQXnrtG9zo7Qk1QC+vT0xZ/Q4QDLlSCf8UUjujm NRJSZ6bEXwL09/saq4HMIPLqrWcJEyIpOWX5ROercaVezUqqGHaAixCPneoxO/YjrXCp 3NZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=bryuP5AdFGVr6HHrw1EtAVKw7WCYNq7V2nl1DGECvfA=; b=FH+bAT0MR0neuIxvVaExK4FNProDv7lhonD059wJHTYNth8qWQOgFVf/K0MruoVrZY XuyHHWp9IogwFKMAG+/hqLaophHXlT88gQw10UfpyKxPLTMPBNItDU+IzgmzcYx5wu9x zpxMfUWCnkAMwk7JT3qJLhu9oGuHpSQCUHFZzXTpDPqGLcO8sjdUs1xjRvp0yCfy43Rt CKH5AdTT2pJgFtCDDCrleu0VIs/niYbQM7lXBlFGVyNMN/FQcx44zwR7tix6WTF1FeCf Xws8pIUAMz6x/nwatQPno0ZSqh6H+SXrEsUeGlE3RSyolQhICBBZI2sYaDyqJWsdRq9b BZug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gps6OGJT; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-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. [209.132.180.67]) by mx.google.com with ESMTP id u1si16185011pga.381.2019.07.26.00.21.26; Fri, 26 Jul 2019 00:21:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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=@linaro.org header.s=google header.b=gps6OGJT; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-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 S1726393AbfGZHV0 (ORCPT + 1 other); Fri, 26 Jul 2019 03:21:26 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:43216 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726351AbfGZHVZ (ORCPT ); Fri, 26 Jul 2019 03:21:25 -0400 Received: by mail-pg1-f195.google.com with SMTP id f25so24321419pgv.10 for ; Fri, 26 Jul 2019 00:21:25 -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 :in-reply-to:references; bh=bryuP5AdFGVr6HHrw1EtAVKw7WCYNq7V2nl1DGECvfA=; b=gps6OGJTOEXQrFDHI9KKDyeJAzkYfi0TmbZdKCbEVIfNPXO1MGIyvHCxKJZKZ2908D 8XhglJ9iu97qcWacqggfiZbM3MgPQAxKVysMA1FLX022aoa88vdKAroM1s8uWc2h0PT0 Kpn0ecFWdL5evyDt/j6yMWM6Q8Zng4FpW/EpDk/7uSf7lrykUAdOTdU5J+vuOry7coOp guNCY1bzr+id756TYU4TSqeXOb4oOORc+SXP1I6ZwkiyJoYwtMbjooqI2nfXC9f5jwVi uINDC8XBa8bXnc5pzc8jVs3S/HmX9owAqK91YB8T0EPBFtqSV2efYSE6gkZN9fd9bKVg 5COw== 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:in-reply-to:references; bh=bryuP5AdFGVr6HHrw1EtAVKw7WCYNq7V2nl1DGECvfA=; b=cteFTCm1rnTpYL7oRFJ9qV7YHg9cskxFlaSb9i/C+c/qvCfGACANPz4iIcCs8HdLCJ VmxslIdMOKW5mbcIlFo9h0A9CSNBcq0wDUSz/SSl02vcn5LZqgmta9xBjXMf70v7mdS1 9wO2/K6D52Lp4eioC3YhzGZzW+JjzcWf4dJ7Gn1zJgcv1osEnQnXH/abXXvjuixY4wte hcSQVXBd1VZHcAMxI3Bqw2byrA12DK4xpUgUQb7Tf12Ig8iIvxguQ6u7fYdEme2lpGlr QUgPf49QIr9AlUfBPftGs+a8WaxBFzra2E0PPfe1Az5EhRV2ij2UZUZhfshcr+jGmvqc TJ3A== X-Gm-Message-State: APjAAAVwV7x5Wt+fuu4UEbFHjLtGwQDbPim/R7iY0LDsfjoQpkNxAog8 C63moNx3W67lTcM/MFO1hE0adQ== X-Received: by 2002:a17:90a:1aa4:: with SMTP id p33mr98101963pjp.27.1564125684991; Fri, 26 Jul 2019 00:21:24 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id o12sm39216152pjr.22.2019.07.26.00.21.21 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 26 Jul 2019 00:21:24 -0700 (PDT) From: Baolin Wang To: broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, orsonzhai@gmail.com, zhang.lyra@gmail.com Cc: weicx@spreadst.com, sherry.zong@unisoc.com, baolin.wang@linaro.org, vincent.guittot@linaro.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] spi: sprd: adi: Remove redundant address bits setting Date: Fri, 26 Jul 2019 15:20:48 +0800 Message-Id: <3cb57b8aadb7747a9f833e9b4fe8596ba738d9f6.1564125131.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org The ADI default transfer address bits is 12bit on Spreadtrum SC9860 platform, thus there is no need to set again, remove it. Signed-off-by: Baolin Wang --- drivers/spi/spi-sprd-adi.c | 3 --- 1 file changed, 3 deletions(-) -- 1.7.9.5 diff --git a/drivers/spi/spi-sprd-adi.c b/drivers/spi/spi-sprd-adi.c index df5960b..11880db 100644 --- a/drivers/spi/spi-sprd-adi.c +++ b/drivers/spi/spi-sprd-adi.c @@ -380,9 +380,6 @@ static void sprd_adi_hw_init(struct sprd_adi *sadi) const __be32 *list; u32 tmp; - /* Address bits select default 12 bits */ - writel_relaxed(0, sadi->base + REG_ADI_CTRL0); - /* Set all channels as default priority */ writel_relaxed(0, sadi->base + REG_ADI_CHN_PRIL); writel_relaxed(0, sadi->base + REG_ADI_CHN_PRIH);