Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp751968pxy; Wed, 5 May 2021 13:01:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8h4eqpyrt6PIMRVogmmomZcTfZbQWI/lAosY17TtJsXQV4EtK07OROGV2cWlTo1YkeAGI X-Received: by 2002:a17:906:2c16:: with SMTP id e22mr427905ejh.395.1620244889101; Wed, 05 May 2021 13:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620244889; cv=none; d=google.com; s=arc-20160816; b=mXphlUOWegw+HmV0NF9Tmt8yU79oX0nUeZh355cLc5Tf9n4TwhiKflQ2qi8F6ap6A5 a26TbO1zKpPmurmqEsuKO5mFO982vOdhaejCwWiiIs/bdehXunrBjvRejRDek9oN8Kni gCxiUiqhZJeUwS1HmKiAxFSz7EG83fhAxiTOupF64ccYWUt1jdFg1so5wMD2IZPf4J/T R9+vAqzY7L5VsQBUGqrRSbRf6ViEFPj/J+UHujLpIybpp6cMy6q57rpgtLlunsCZ2F5q sChCE91Bmdup2W9V3nQpoFBWRAY3k9AlMFBYfaLVFSXYzE1HiKALq7kq41el7qSm2hsg 5qXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=r8/7ZtCLL1Va6vp5ewQew1YGByJVrv6DRDDNA1R0ZM4=; b=aijjdQkaFNcAlNl8+F7PHacfgzSdzroH2w0sMlSviDpG2PuCmp08SDYGsrUD81CKYm s3EmLb3qJLiq8iBzu4vc/J0BZaLCky8ZtUcUJDSchy/UcnlpBYmTDCMKepli8U3Y2rPT PuPVh8WM8sK8FPLwOfLZ0U0vm1khrP1qSL/ldr/+gE3plvkdXOzWP2hoXdR5P1/6IIod JDWOFQFZgDtFXybD1yHgmeTVPZAGMSD19YG/OOSTkzdnrnOZCp2w1/l2ejtRxfvguJXP ePeiMuVDuuxsVghfAeOYTcKJHFhZw/gq9D8pigzt+DX5jvD6LDhgTqN16Cu/ZzqRPphO j2qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XuD8VZzV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si315725ejv.362.2021.05.05.13.00.59; Wed, 05 May 2021 13:01:29 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XuD8VZzV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233717AbhEEQFf (ORCPT + 99 others); Wed, 5 May 2021 12:05:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:48638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233502AbhEEQFe (ORCPT ); Wed, 5 May 2021 12:05:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6893613B3; Wed, 5 May 2021 16:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620230677; bh=cTM8g/gKs3w7f3SKpfx5R9tQ4aTb7xARUcSs/9imTcI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XuD8VZzVX2EySNepWfffqri6VedVVZQGkeTDWQIzwXT+4xV3nRr7KQ3BaL8uBhOj2 oRdBt1iLLzQwLBt5vpJXTK60/knqkx87AJdwTvw1lhwhqWUMNTpUZnNmwtwgsvS+z/ hm2TUwUqepC+tiHwpX+VVcBc92bVuLPh53jiyy/sx3yJ7k+iY7i1PDH84ZqXKAij8z GbbUxf/HFT/GAqn9QTlgyR/vASAO3uu1lqHbO38tlWasAhe82wMc6XUmMUUMBD5uIi vRcezoa9KzvwWeN7ANAJHZ2HSiaprrmRSxELqbpibgeaL9SDVOdvgm5k9+A2/IdX1Y H8yRQSEHJwW3w== Date: Wed, 5 May 2021 18:04:33 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Andrew Lunn Cc: Pali =?UTF-8?B?Um9ow6Fy?= , 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: <20210505180433.550178c8@thinkpad> In-Reply-To: References: <20210308153703.23097-1-kabel@kernel.org> <20210429083636.22560-1-pali@kernel.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 May 2021 14:22:49 +0200 Andrew Lunn wrote: > On Thu, Apr 29, 2021 at 10:36:31AM +0200, Pali Roh=C3=A1r wrote: > > From: Marek Beh=C3=BAn > >=20 > > 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. > >=20 > > Fix this. > >=20 > > Signed-off-by: Marek Beh=C3=BAn > > Fixes: 389711b37493 ("firmware: Add Turris Mox rWTM firmware driver") = =20 >=20 > You have put a fixes tag here, meaning you want it in stable? How does > dead code elimination fulfil the stable requirements? >=20 > Do any of these changes contain real fixes? >=20 > Andrew Andrew, this is not dead code elimination. Rather it is that there is dead code path due to an incorrect check. By correcting the check, the dead code path becomes alive and starts reporting errors correctly. This fix is nedeed in stable so that stable will report errors correctly. Marek