Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2111215ybh; Fri, 24 Jul 2020 04:50:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvhitNiqOXtWSUkJOsbuAqz0J2CnQ9NcTU7dR2X9wCgST2/IMs6Pdh1VCwqKYcxMFyVXHC X-Received: by 2002:aa7:d0c5:: with SMTP id u5mr8399728edo.163.1595591453647; Fri, 24 Jul 2020 04:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595591453; cv=none; d=google.com; s=arc-20160816; b=v7dz86/8bnkpqIF+M6Dz1OgsBaTw//fibvGSa3/UToYBRPrQGrho+cZUODasryMaX6 mqFwx+KaieQyJJ/CbbfHvnSNgKGhq7G4mTG4i5FGjl79OEVf0LKY5QzlvLRJ2OXKZzY8 FW0rp3rllQ0et4/XRENySCTTDF57K+pPgnwxCnZF1GC98ZjbfzN7uWpuTZw/k4yUW57W 6EkFdSlRpiPvWTOAid6aqELbTTeF0An0Qppl3706JwfYqQ0l+iAN6VjGpCqnopCw4Rmm ZhkXh2toOdyr99ixoAxMtlgO3Qma50D14aLUVggqAGZrh8USR2KkhKQUZgg96vBdeXUi RXRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=QfSY3pZ2MAggpSyG21FJPZsQN7OW0uWhuLHAY3wZBD4=; b=lczphvuFm36E1STc/pwtNM7PCwHpbYrUXC9M8+5GeyuVyJYHtSnpGnXb7UyMuUrfyF isfiuQcvX8Y1BBAZxfiuCGOvLIuP0NlWLU0ouSBPpQ0GPZ48cTvxg4PlRFzWWCzBTnBV Onyvbei7/3sRDt3l5IC1MoFvXL+rKQN8mjFdyFJDXHHtXGeaORMpPIhgZiq9LoVCXRHr MpNQ4o2GlkEeb62Bb5CHEu8TNqFqZeqUFMl7MFRpPHWEgmh7k1bBosVkt6LXtjFugRIx h9MxqXel5sEss3sMjlG4E0v8RGoA1qL8n2ozYa+xkkR2Otdedwmt++jzuJF0n3Hv3r2V 6GLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n15si466031eje.190.2020.07.24.04.50.31; Fri, 24 Jul 2020 04:50:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726488AbgGXLsG (ORCPT + 99 others); Fri, 24 Jul 2020 07:48:06 -0400 Received: from elvis.franken.de ([193.175.24.41]:47133 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbgGXLsG (ORCPT ); Fri, 24 Jul 2020 07:48:06 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1jywBI-0003GQ-01; Fri, 24 Jul 2020 13:48:04 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id D1AB0C09A9; Fri, 24 Jul 2020 13:09:48 +0200 (CEST) Date: Fri, 24 Jul 2020 13:09:48 +0200 From: Thomas Bogendoerfer To: =?iso-8859-1?Q?=C1lvaro_Fern=E1ndez?= Rojas Cc: f.fainelli@gmail.com, jonas.gorski@gmail.com, bcm-kernel-feedback-list@broadcom.com, linux-mips@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] MIPS: BCM63xx: improve CFE version detection Message-ID: <20200724110948.GB17183@alpha.franken.de> References: <20200608092835.3377581-1-noltari@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200608092835.3377581-1-noltari@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 08, 2020 at 11:28:35AM +0200, ?lvaro Fern?ndez Rojas wrote: > There are some CFE variants that start with 'cfe-vd' instead of 'cfe-v', such > as the one used in the Huawei HG556a: "cfe-vd081.5003". In this case, the CFE > version is stored as is (string vs number bytes). > > Some newer devices have an additional version number, such as the Comtrend > VR-3032u: "1.0.38-112.118-11". > > Finally, print the string as is if the version doesn't start with "cfe-v" or > "cfe-vd", but starts with "cfe-". > > Signed-off-by: ?lvaro Fern?ndez Rojas > --- > arch/mips/bcm63xx/boards/board_bcm963xx.c | 22 ++++++++++++++++++---- > 1 file changed, 18 insertions(+), 4 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]