Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7059230ybi; Thu, 13 Jun 2019 08:53:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3SDjz2u4ePYXcjIKk+wfCsfKf4l98tK7HlTPeitNQYfFWY7JrpPmq09yV8SJfhReFJQSm X-Received: by 2002:a17:902:2f:: with SMTP id 44mr26828508pla.5.1560441237294; Thu, 13 Jun 2019 08:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560441237; cv=none; d=google.com; s=arc-20160816; b=JJkSAr2B+E9YUUCeagmfSOrpyZZ+RSY+lYcVFr1MpK9vfNNtlFPc6uKQd43xCLFOIJ 9Egft9hnxXPKlbN72E7SRXg/H4aKdlYUmYLpo8Eigs1xHPa4ogmj7lu0kV9e4BxfY5Ls Qxd0qntOEdVU+hr3hiK7anZJDMRWZ2GBjYSG63HBtb8yT7LfOy+1dMPADvrhSwM/IGET wETYzaI1XgU1MjCSThaLSmoRtMeuPRf+Pndc5G67Sv/HGyW+49zwzj8DuEAE4toDTfkH lL8XmQJ+0layylb1XgXQAdvGMi101C6669WvMUj6GZmPL4Nxnm7jTVbmU9hgH3DJu5eX /tqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=FrwEFL562hO53reJv49dWHRcAR33QjLuPY2auIynv5Y=; b=yVcUn2fY3AqwXDM1wdrQ9ZgqCN/BemgCZur/Fn0bagm6+eQb9GRWQlV4DFu1+xOJWK lNuRVQ+SbMenh83nRh6yd5hoNQBBKq/BRBz6PjL62Gauysc0BPKyeOtANMUQVTb+PSPZ 0ptExYGujnjorS78kRnga7v1ePoXrtH+bx08nNmsl1b10OP7RycM9JmlV9AR3F0Z49YW K5W0y6fv+JU8IhRq+K7KMyrtyrC6N9Db+Db3aDGbkoxeHxqtce6X+pvYrURmoqWfKZN3 ooABDAz5zfmWlsNka5zKfYQjtAXvZ0DpL56y5hGwTsY6ohLD9pMi1mlDIVdbZEzeW9ZX OyQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=rkViw+3w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u13si120542pgp.332.2019.06.13.08.53.42; Thu, 13 Jun 2019 08:53:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@c-s.fr header.s=mail header.b=rkViw+3w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731753AbfFMPv1 (ORCPT + 99 others); Thu, 13 Jun 2019 11:51:27 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:52242 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731665AbfFMJL4 (ORCPT ); Thu, 13 Jun 2019 05:11:56 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 45PdKP4R07zB09Zb; Thu, 13 Jun 2019 11:11:53 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=rkViw+3w; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id WrNDjzbjcOT1; Thu, 13 Jun 2019 11:11:53 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 45PdKP3P8bzB09ZZ; Thu, 13 Jun 2019 11:11:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1560417113; bh=FrwEFL562hO53reJv49dWHRcAR33QjLuPY2auIynv5Y=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=rkViw+3wJS3ttg2O6k2EH3MrosXEES9oukmaA/ID9xKqrex9EJpyfrVio69UEQ2hU TsKuUoJVSfKSjDs2J5HCvgqUMnZHQmIOlxjzCF9HoWgbMdwkGw6vjuUZtDeyGsvdEf iFIzeIIFh556BcNJO/lhgFgnWPqTUo3Jh4/rtoiY= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 874BD8B8C3; Thu, 13 Jun 2019 11:11:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id No50a5lVEQ5N; Thu, 13 Jun 2019 11:11:54 +0200 (CEST) Received: from po16838vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 463158B8C0; Thu, 13 Jun 2019 11:11:54 +0200 (CEST) Received: by po16838vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 0C3C268B1D; Thu, 13 Jun 2019 09:11:54 +0000 (UTC) Message-Id: <3cdd2fdf053e3b6d96e5bfb099ce33b9d2a75dbe.1560416986.git.christophe.leroy@c-s.fr> In-Reply-To: <1930b7e67ab361e68f356e7fdeba403e32ce3ad0.1560416986.git.christophe.leroy@c-s.fr> References: <1930b7e67ab361e68f356e7fdeba403e32ce3ad0.1560416986.git.christophe.leroy@c-s.fr> From: Christophe Leroy Subject: [PATCH v2 02/10] powerpc/8xx: drop verify_patch() To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , oss@buserror.net Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Thu, 13 Jun 2019 09:11:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org verify_patch() has been opted out since many years, and the comment suggests it doesn't work. So drop it. Signed-off-by: Christophe Leroy --- arch/powerpc/platforms/8xx/micropatch.c | 40 --------------------------------- 1 file changed, 40 deletions(-) diff --git a/arch/powerpc/platforms/8xx/micropatch.c b/arch/powerpc/platforms/8xx/micropatch.c index 33a9042fca80..7bbaf9914f32 100644 --- a/arch/powerpc/platforms/8xx/micropatch.c +++ b/arch/powerpc/platforms/8xx/micropatch.c @@ -707,43 +707,3 @@ void __init cpm_load_patch(cpm8xx_t *cp) #endif /* some variation of the I2C/SPI patch was selected */ } - -/* - * Take this entire routine out, since no one calls it and its - * logic is suspect. - */ - -#if 0 -void -verify_patch(volatile immap_t *immr) -{ - volatile uint *dp; - volatile cpm8xx_t *commproc; - int i; - - commproc = (cpm8xx_t *)&immr->im_cpm; - - printk("cp_rccr %x\n", commproc->cp_rccr); - commproc->cp_rccr = 0; - - dp = (uint *)(commproc->cp_dpmem); - for (i=0; i<(sizeof(patch_2000)/4); i++) - if (*dp++ != patch_2000[i]) { - printk("patch_2000 bad at %d\n", i); - dp--; - printk("found 0x%X, wanted 0x%X\n", *dp, patch_2000[i]); - break; - } - - dp = (uint *)&(commproc->cp_dpmem[0x0f00]); - for (i=0; i<(sizeof(patch_2f00)/4); i++) - if (*dp++ != patch_2f00[i]) { - printk("patch_2f00 bad at %d\n", i); - dp--; - printk("found 0x%X, wanted 0x%X\n", *dp, patch_2f00[i]); - break; - } - - commproc->cp_rccr = 0x0009; -} -#endif -- 2.13.3