From patchwork Mon Jul 13 20:06:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 11660977 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2AB5D13B1 for ; Mon, 13 Jul 2020 20:07:19 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 022F120674 for ; Mon, 13 Jul 2020 20:07:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kqIky76y"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="SYLbgEMZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 022F120674 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=IqLoR67QlmqqdMO08C5EBWadww9sUJSAg4ooDB1i7ME=; b=kqIky76y5zNdSh0xi+o6ZsqNSP xTwjTMDSzKbLDm0SN8noeF0SITRoVlPRXqMIc3vQiVT6yqSwVu/fLeArGitbCSS49T8uj3zrMb5H/ 4pNSy0eZlAAmFvclGZ+oj4kkoXBN5gEE2gdIaW1Yt5Zwj+PY9gVEG85k76YvVQbFIZ8g55NWXyX5e lwM/N0zDRzjTnmBgLWoUeD357UqdXaXKwLV27lnDuWyq99qou0snOtjZoKXPhekbGZLblqwX2hfV0 9tgmKRzNQlulzgUE6ZQ8pKPGPsoDo0yT2r4yRvZPwtXRLmpb3fN3UAwgsgl5wtjgalcfNx+lyRsmD oE3hgNZw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jv4jM-0000i0-75; Mon, 13 Jul 2020 20:07:16 +0000 Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jv4jJ-0000he-Pa for linux-rockchip@lists.infradead.org; Mon, 13 Jul 2020 20:07:14 +0000 Received: by mail-pf1-x442.google.com with SMTP id u5so6502565pfn.7 for ; Mon, 13 Jul 2020 13:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QGTSFSdpTBf0Fj8/mHCXDFFUbdRy7kfdpCQddOFvWZg=; b=SYLbgEMZrRlt7pKm59SgteTdIJhScB0iDAGRTe7Bo5eanQU6OnqycpyNXFgzaGx3bt +s6gC3t2otH9uyaRkszMg2BOQAFH0aGsHmQpydTl55F81OW28XCgJJZLpJ6CQPnyrrVi vCDXzFn2w1H4OJ+yk84hASCfJ82xyIS8KmIJM= 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:mime-version :content-transfer-encoding; bh=QGTSFSdpTBf0Fj8/mHCXDFFUbdRy7kfdpCQddOFvWZg=; b=Jt6izSeuwYm3wn8Pn8XjVk7NwJXMR7BRo/5BomZOjgPkBfg0i5BY69fRhBj+hr0Ran 6hGywxS1aAqGzkvFrZBp+6y+rvKtN1Zc0RaPn8wmAhVd87H4nZYXx7LOzqMN+inM7Hth YZaNvadJ02Ve+mGgaCz9a1kYaBf131A/pp1gxD/HeGxZ0E4p+aJjUs33PX/ymyBs0mGf imv4l1vToE/EwOscWWHEgVhRNM2WOrb8EilMYbpmOSvxoLheCtFveI9Wbtf2lF1pI68H G3ILavPFuzMgUSCG0xuP2bmLaqTX3m73CaHTcXjnXGrSrI+fVy2q+qROX1uR+KkzESBu YKbQ== X-Gm-Message-State: AOAM531W6ZybxoZkLALQvwRK/uUO3sjdYlnx786eamOVHnzISgwL1+70 HECZcfmFaZQaHcSN+Wxn0njJoQ== X-Google-Smtp-Source: ABdhPJy5uz/HM1n4ttQdsTQ1GtYikYeXmdbFyZacd4qTj14+ENVO3xqg4i7hkbKs+4hp4CfU/Q7NZg== X-Received: by 2002:a63:7d08:: with SMTP id y8mr666632pgc.224.1594670831507; Mon, 13 Jul 2020 13:07:11 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:1c27:6fcc:7acc:eebb]) by smtp.gmail.com with ESMTPSA id e10sm400126pjw.22.2020.07.13.13.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 13:07:10 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Subject: [PATCH 1/3] ram: rk3399: Drop debug stride in driver Date: Tue, 14 Jul 2020 01:36:33 +0530 Message-Id: <20200713200635.651032-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200713_160714_111905_CFB22153 X-CRM114-Status: UNSURE ( 6.55 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:442 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki , Suniel Mahesh Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org stride debug is already present in sdram_common.c via RAM_ROCKCHIP_DEBUG. So, drop the redundant debug stride code in rk3399 driver. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- drivers/ram/rockchip/sdram_rk3399.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index 60a1ab8b51..d2f3fde236 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -2875,31 +2875,6 @@ static unsigned char calculate_stride(struct rk3399_sdram_params *params) if (stride == (-1)) goto error; } - switch (stride) { - case 0xc: - printf("128B stride\n"); - break; - case 5: - case 9: - case 0xd: - case 0x11: - case 0x19: - printf("256B stride\n"); - break; - case 0xa: - case 0xe: - case 0x12: - printf("512B stride\n"); - break; - case 0xf: - printf("4K stride\n"); - break; - case 0x1f: - printf("32MB + 256B stride\n"); - break; - default: - printf("no stride\n"); - } sdram_print_stride(stride);