Received: by 2002:a4f:b056:0:0:0:0:0 with SMTP id m22csp1416078ivi; Fri, 2 Oct 2020 09:33:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhGxJ5jGxmiGuLJkJcPqkGp/y5c8etspuvQfJ/18URfKuvpowLGXoEi97b80z4SK9KlOcE X-Received: by 2002:aa7:d15a:: with SMTP id r26mr3271514edo.181.1601656383122; Fri, 02 Oct 2020 09:33:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601656383; cv=none; d=google.com; s=arc-20160816; b=A153j/WOAXOKsRGt1Zwws/OnpK39nUagM2F2dw0eCSNF8Dc7074Nwe66oDEJ/exKi5 HqLvpY02kqZUcJYfMEMmbzIe0MFXd/LRaY/osthyD/mITHkxpGtu66jLBIjtTmZAdMs/ 4ZR429rAD1Xb4q2aUWYOTMKMXGZw138gxPbpBzZvEhH+7sWNIkX0PVb2pyLIcvUPTXWI 90Veob8POUD2cN3xeKLXWLNXa6uTXSob7xNO1cPslfjSEGmQdJDM67opuYC20A2LOyS1 PFhGolwnVTnFHIQ6uuwXMFGQKr2vaCfYWPoine5NXw47mb/GDxbH5Q03Q5iAtqP5SAW7 DP2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=NmuASYfCVRDr2iLzydnzYtbC57t7PWn5hJ24ngFnw+A=; b=F45aG0pqN74sINCEVT9m5lpcVHV7YtGeqei8xTo4mEE3BdzCBtAD4XlI1APR74Cx3Q w1ElUOt4lxYtJDPG2w4yuc4wUNhWqJy3t7H8LHbPJlHa0LnC0Ba5IKIG2yer1tShG7iL YsBaEL6kjWbvgtuW9Et1DtBQVZuhnVaxQ1V0nu2BWIQdA/o26le9iP1SZRNQeVpanz3D cOzDhPv9bDCOuejssegy2rUWaaU3E6BHtJ9KCoiQW+5DxxtDLUeiBLSRA+5WGe4d0fJ3 ywS2xXfAfj2l/TSmHYJk7zieh3TrVI+1rJj2dmv6nEr3mL7LhDem9vMKjTgoWNkwimZd najA== 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; 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 p61si1378816edd.188.2020.10.02.09.32.40; Fri, 02 Oct 2020 09:33:03 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387789AbgJBQaF (ORCPT + 99 others); Fri, 2 Oct 2020 12:30:05 -0400 Received: from mail-ej1-f68.google.com ([209.85.218.68]:33353 "EHLO mail-ej1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbgJBQaE (ORCPT ); Fri, 2 Oct 2020 12:30:04 -0400 Received: by mail-ej1-f68.google.com with SMTP id c22so1481468ejx.0 for ; Fri, 02 Oct 2020 09:30:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NmuASYfCVRDr2iLzydnzYtbC57t7PWn5hJ24ngFnw+A=; b=eiocrGcZGRRB+xmJQgs8HDQFjbY+BLd406ir/st7nCcwho716BKOxfVBByaGgl3NTg A6YW6cT5CRviCkIQI9p9/M9N0Mi+OrSx5gvj7ebAGVV4GJ7j7c4cFhRiXg47IlDlZN5T WMSkkmIby6MhEMw2u2EaSY3Fw3l7VQAGhab7+toRQz9b4PcaM1qd3oOR+D0EEQprw2yb bDeFKhJMrSc78ryO7YqcYJJRwmZjBLzXyOaLRpQ68q3EyIpGLf7+9bdmXe63PW146AUz 4eJlJYXWmx2KqQjsJtTSckQy6Wz0iMw909lr9mfCHL+Ejwho3ktCr4WTE0Ump5zAkd9W p65A== X-Gm-Message-State: AOAM5304SG8PW5VBSd1csMlOx/bXdJ+Vt8Js0MCojcpCdkTmwjDQSM8H awhyeOYlHnCveFaVltt6D5k= X-Received: by 2002:a17:906:4dc7:: with SMTP id f7mr3173601ejw.261.1601656203038; Fri, 02 Oct 2020 09:30:03 -0700 (PDT) Received: from kozik-lap ([194.230.155.194]) by smtp.googlemail.com with ESMTPSA id t4sm1444928ejj.6.2020.10.02.09.30.01 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Oct 2020 09:30:02 -0700 (PDT) Date: Fri, 2 Oct 2020 18:30:00 +0200 From: Krzysztof Kozlowski To: Jassi Brar , Matthias Brugger , CK Hu , HS Liao , Houlong Wei , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Frank Wunderlich Subject: Re: [PATCH v3] mailbox: mediatek: Fix handling of platform_get_irq() error Message-ID: <20201002163000.GA6464@kozik-lap> References: <20200827182507.4938-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200827182507.4938-1-krzk@kernel.org> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 27, 2020 at 08:25:07PM +0200, Krzysztof Kozlowski wrote: > platform_get_irq() returns -ERRNO on error. In such case casting to u32 > and comparing to 0 would pass the check. > > Fixes: 623a6143a845 ("mailbox: mediatek: Add Mediatek CMDQ driver") > Signed-off-by: Krzysztof Kozlowski > > --- > > Changes since v2: > 1. Fix subject. > > Changes since v1: > 1. Correct u32->int, > 2. Fix left-over '!'. > --- > drivers/mailbox/mtk-cmdq-mailbox.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) Any comments here? This is a bugfix. Best regards, Krzysztof