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: 1483 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D65193F03E for ; Mon, 13 Jul 2020 22:07:14 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id k7sf649303pjw.2 for ; Mon, 13 Jul 2020 13:07:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594670833; cv=pass; d=google.com; s=arc-20160816; b=EWhz6pVeWUxN6e2kcGwiBOgmMuImCYB+16qYneyHeqAodCyMwC+btS9qJzTAH2E21Z J2YelQMQQ28HTrvWKjdInImeVfQAH+O1Z6EnH8sZ8DPNJTc+5WmvEvU4T5xSbgkcRVYI DkCcJi8HL8intWwPUUtyTtC7QArq/4tjs+CrY74wTFv7fiSA7Ty1Mie8KcAYoNEgLUlf S0pFJAjNzRQKLV8m8lTISUo60CUI6mLsQX9WgszDexkkLVkJdzy/FOHQalVRc+c3cWc2 pQNiUjuAKoF0yx1U8CxVBv5U7o7JygCoc0NCAsmzgEUpNOduXhBBdOhs24Trvxzyx+Dl I5VQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=CzzN8U1u1yjAliDpNbc/FDwuGX3AfYLBZtxutAECOHc=; b=xHA8EOKBPhH7lj+wC9PNY8L1ra8MGlTkxdadAomBZ1iUwTaFVa8CB9mIehnHq56OAr vXdu7Xo39PVnf2CncHIpShECjz9I187J03qw/rkc3wXtdSTymhoPhLFrehBrKvWxP8R+ HHdrhuWYVvfQFUXvulqDqahjxN+sQVjtrDLooBpZ5qjM89kWhb1Bvc6lW9+mgFcR78xT wyXPAG35TXrOoSZRDol6o067UJbhJiPhfmIZv6cOuqJN+Xk+r5rA8bIpIZQAIdmEQQ/Y aGWeHjMBAHnCHowK8y4a0i9mZZxhVh27M5xVTpVxfBbevV8Mnp/QA3r2oKahr74dZjDG ke5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SYLbgEMZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=CzzN8U1u1yjAliDpNbc/FDwuGX3AfYLBZtxutAECOHc=; b=Z4du57bJJBl7AxgNRCXapHlfjM8bd9raHtcW5a/F0ZEGXwcENoCecb9j0h0m3tnrjt 3UT7MeXMaE6mSd/YCcKdy1NPC1WnRsIEZIdHqdz7zpUeBqN+uWVUW0PTvlHehOSI/7qj vbDf00aoX9Sd+i8G0wYJYoxAoDbmZTCJt/I0M= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=CzzN8U1u1yjAliDpNbc/FDwuGX3AfYLBZtxutAECOHc=; b=D0SXQpuGxzLdm2iG2HuT2ZLbaSHNm46DT6cO1TFzU67yDiLpEDAOzM2DwksAT87lMT t9fVprKskXotEMpBZuoICc8odfaYIZKX4o1j1O2mQCf1nTJ0goOrSQffyVsX7gG+0hlF 325SYfbeSyZRZJHi+vW+AF5prDlxFnr6zK9q1UZCEFZUHhcizDt4LHj4FuNWf0wahVmP ga42qEtveJEP5laagsbVV1aL3im1rKv4iik+ESR+dAgf4TJEMFynD8OQ3S3OHIX1Jg+H QcuhjZjHchABppIsk3eJeoi736jdFnrwgWeV/z908Xbd//aq/SpGql2zjTshTjnmSBpS JfpA== X-Gm-Message-State: AOAM532Gs/T9OiWtoQO/a2N3Zj5f0QEYxAiuLOWqkyIgJaVYgBLvuHts U1yjaCcwgsosx87jAI9Q0+I7Y0eW X-Google-Smtp-Source: ABdhPJxfnEn3ua/HdPzipyH8OV0xzU3G6REPYIdzSfbzfE3wDGDKcYHFWcSMvRqpyPALdr+xxplllw== X-Received: by 2002:a17:90a:6983:: with SMTP id s3mr1041515pjj.55.1594670832650; Mon, 13 Jul 2020 13:07:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:be03:: with SMTP id r3ls7028299pls.11.gmail; Mon, 13 Jul 2020 13:07:12 -0700 (PDT) X-Received: by 2002:a17:90a:aa8f:: with SMTP id l15mr1053483pjq.123.1594670832152; Mon, 13 Jul 2020 13:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594670832; cv=none; d=google.com; s=arc-20160816; b=yZvOfDLwe9B9sYdmIDWdg+7C3Vb5ZU5WU+50hoNaCmiKmOVS6b5eYGfRo5DdROtCbx SOadjEfqMEn6M3m5XDC70DceVKSXTvTk3or0CyAuM0AqsogrGBQkYOOl51l7z1j+C6AP /nMWBMWXi95XDjmOSVxCN1qgKQQfknpS1uMIuYWgFqFfxXp+I+vh5X4UebvLogiMZ8YR SzJDGNbXOreEt6V4hC33sc+u+KBXV0BtPE9pE88YRn7LPo5xouX7nANLTKehSJJc3Glb MUtUUMMyPA5OGiiREDJg+DmSLiIz4oJGPcO/Hdxrr793Piy5Dxu9qqfpRknELWmgG6u2 aYIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=QGTSFSdpTBf0Fj8/mHCXDFFUbdRy7kfdpCQddOFvWZg=; b=yCfjK22Ae9xUkTcdikC6qioJB+Kv6bXmMbFHO6+H2qRNJouejtND4v4ypaH9zCzo/K 5216GE+5wpWA92A6GBRaG8rNOHIfgGBgeXJm6uTyBjZLEj93oPnDUyH8m+l8w4Z+ftff 9UGkiPdHEagH17h9Z7R48qLYGlixrR+cuSuTp0jMQu6+wdwcJ1ZqfuStkZCG95Mle/5D AZUS9B1IcAC6HxeJQiIR8roat3HYKvOTBs+nB9zpn+zepn5sXqel2Gi/0MrjpAzu4g4v uqSkoDjdtkTMeJZ7uSUMXHEecXrUsQ8z+hFdDoOYhwwzcvAqfOjAhE0KASNRTG4vM/Eg 60Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SYLbgEMZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j3sor18230184pgh.72.2020.07.13.13.07.11 for (Google Transport Security); Mon, 13 Jul 2020 13:07:11 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; 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 Cc: Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki 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-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SYLbgEMZ; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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);