Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp604908pxy; Wed, 5 May 2021 09:21:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTH8UPY8K4pw6pNYi4V8V2FXnGGNBkQZCNdxf1+jzEd4qTp962lcilejHPK7IJK4wCScEA X-Received: by 2002:a63:f311:: with SMTP id l17mr28554983pgh.405.1620231706453; Wed, 05 May 2021 09:21:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620231706; cv=none; d=google.com; s=arc-20160816; b=UvtiC7LJ7s191MzJgvNrBi25VebemD7cEdMZg/pPvSIBm2m5/V1Bkm+gxZGAuBd9H1 GiOqMQbNVTtLvTHkTmq3Gy1M06HPdMs0eaMH67AHY+rY77rUAmfhBRnn7SH0mk4iHuva 1wG9DfjhGd/7j5GcIXJIwWDlzKbFZEZ1ABVwLEnNtR93VLJARaLttPSpjY5zR+htxjWc 9yXSg+/EDkVZAHFyGE4MY7fzSxRJAcUAJV0WCV9eT10s4bYeIUoIZq3vn1Jhg2RQnEi4 87fdt/IfzVZXO8Rskt56KqldmH+f81/lh/e1XAMvaTNQ5OUnvbdbxVcm/cpI4PC3hHxi eX3g== 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=g+W/KpJBW2WS82/AmcqNW4oSpKgKEka+nNgMcwDJrOQ=; b=fsUzkQMimLPv5e6+uVogx7zY25rk7MJypWPFMREvlTw2wrELT4VpDPFvoITXSu6Wum 77zIeD9tBKdpeJvhllFF77qgV9laQLSOyPAL5tRgByArcdxQX+GQ7lidJQGKg43Q/l7H DGpNWSA8ND26M5DusLd4Zh8kiTr1tHSbZSa9ZqW3rMU51aQ1CDSe+zHqN2enDh54AUUs mHJe59crRselEtmRS5oaQzKtaFFYQFMJ62inMtvVVbjNaFqxVzGlX6j85S25ZaJFiXfd QCa7quMJuwHJO2H7EYmQa9R4AgS1QHS3qSKP+vp3SrW3JqlnEixltVJFDPxe/0+5NskS mWcw== 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 v35si1326582pga.193.2021.05.05.09.21.26; Wed, 05 May 2021 09:21:46 -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 S233970AbhEEQVr (ORCPT + 99 others); Wed, 5 May 2021 12:21:47 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:54640 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233857AbhEEQVr (ORCPT ); Wed, 5 May 2021 12:21:47 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1leKGU-002hN8-IW; Wed, 05 May 2021 18:20:46 +0200 Date: Wed, 5 May 2021 18:20:46 +0200 From: Andrew Lunn To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Gregory CLEMENT , 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> <20210505180433.550178c8@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210505180433.550178c8@thinkpad> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 05, 2021 at 06:04:33PM +0200, Marek Beh?n wrote: > On Mon, 3 May 2021 14:22:49 +0200 > Andrew Lunn wrote: > > > 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 > > Andrew, this is not dead code elimination. Please word you commit message differently. The status decoding function mox_get_status() currently contains an incorrect check: ... Andrew