Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2926661pxy; Mon, 3 May 2021 11:03:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx26jp2QLPnAsTKeFkGecCo//K2K5yhyFW/kEHrBTLEe2Um11HpukthbQfmtXeh8643Y+VF X-Received: by 2002:a17:90a:8548:: with SMTP id a8mr22520596pjw.48.1620064996166; Mon, 03 May 2021 11:03:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620064996; cv=none; d=google.com; s=arc-20160816; b=dvbdfnVQUnyXgsE6SiAlqsQ5ZiOpL9enRGlcdQCQb/n2TTPx/bwb0M9PuSyExGHaWt iLsloHe7ZECTtIuxlmeKHs5M8QmRDe3AwvsN1T4Dpe7PY4D1qhj95PMrUNVyBJ9BwMxp 23Z5h2fOICQt3Xou81iSOLu2o8SlsiX0QRJ5AgtIsOdD0/FUKZXlJIhjyxMJZo9eVC7d Ag9YVqn5hsqFKAul/2IdIF1Nm42K47yTcPqsYWvzwhNJcdEOesO8fveyfuMG57RpfrB9 okRgBvWjWxVUNdz4IKPXMGlbK00XTarxhSvrrIQqwV1jXhiuuxQ2YFIR34IdGlli1RtB NUHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gnPLJRqc6wLinvGJYVgJpXxuqqDFgdCXgvtPzeTviRc=; b=vK00V09aNajLCrFAV4qbislrrpecfcr9ZXr0cYmtGfrEARIuZ0+Tx32p5pGrhDugVP 9Av7lEzpo2PiuHx2IjIxNwttYHvKZP6AIgFO+o2y2TiprSsc7jZTVIk2JHauKKlN9bid gg3cXQjrOdoAeyTboQ48lUOTWRyJBzW7m07bwHLM69iJhiihfieLVvbaU/qZWjsWDe55 BiKsyJaWGFt0ojPhTySYLYyCRhezMMU+47Wyk/hqhgpt7/5JclkAQzSA956TNSheKOjp X1NRc4ZbCXaB2hFzzcjUUKPYEvzRPCl6BezwLrMzMMWzx6TM9THYNx+FlLNDO5uzUBZj mwKg== 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 s9si404449plr.125.2021.05.03.11.02.57; Mon, 03 May 2021 11:03:16 -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 S233495AbhECMXs (ORCPT + 99 others); Mon, 3 May 2021 08:23:48 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50822 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230009AbhECMXq (ORCPT ); Mon, 3 May 2021 08:23:46 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1ldXb7-002HuR-9P; Mon, 03 May 2021 14:22:49 +0200 Date: Mon, 3 May 2021 14:22:49 +0200 From: Andrew Lunn To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Gregory CLEMENT , Marek =?iso-8859-1?Q?Beh=FAn?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 mvebu + mvebu/dt64 1/6] firmware: turris-mox-rwtm: fix reply status decoding function Message-ID: References: <20210308153703.23097-1-kabel@kernel.org> <20210429083636.22560-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210429083636.22560-1-pali@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 10:36:31AM +0200, Pali Roh?r wrote: > From: Marek Beh?n > > The status decoding function mox_get_status() currently contains a dead > code path: if the error status is not MBOX_STS_SUCCESS, it always > returns -EIO, so the comparison to MBOX_STS_FAIL is never executed and > we don't get the actual error code sent by the firmware. > > Fix this. > > Signed-off-by: Marek Beh?n > Fixes: 389711b37493 ("firmware: Add Turris Mox rWTM firmware driver") You have put a fixes tag here, meaning you want it in stable? How does dead code elimination fulfil the stable requirements? Do any of these changes contain real fixes? Andrew