Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4489010rwb; Mon, 21 Nov 2022 08:10:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf65nvB3K+UApYx+vHkmaJ78Hn4sv2oe1GTW7X7xUrntmZ4/NoU9zbmh9/7/H2qOP0brzYeB X-Received: by 2002:a17:906:19d2:b0:78e:11ea:8528 with SMTP id h18-20020a17090619d200b0078e11ea8528mr2344691ejd.190.1669046999935; Mon, 21 Nov 2022 08:09:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669046999; cv=none; d=google.com; s=arc-20160816; b=jlYZDU0byuvcrvGzG58HKLDYuQZg+EGhCuXn7jLzYOja/PZHTjv3F2iVQ83kuvFuYN gfbTnxxgmLkUCRbttRyZ1KaSSeR6fP0/c/W4h3/mHgWESHGuyZE5ObrgIWxiodcJIq3y MLDH6B0gGUDTiFhE2pe52hxfoHok78Iti29JYgOKFT00bN6dKsSz9b6bhgOCRqMeHcC+ 8juMUYFNrdJahmgeLS8qY+EhHGkwX+UD6QHVIRTPgQmaQCLLCiaxCLNVk+2u93Sk6sX+ YvSiEPIjEq+CBdTS8XCK1WAGrI2pR/jh0mZtbhV3KWVPm1IOsWPftBdnIdjxeTbcQdcl 3bMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=13bL6LNTHjc49hw1t8dd+cr8coUyb0jg/mTexC5rZYA=; b=0yQigmlRMDnKwFAExkXz5wxfTbiks4XpfHJIyqD8l4Itp/xK5aVQnHhnRM2VJIWqEh dczP9Kr3FzmKJZ6gnrkidcLyF776h4+ySSEs7ZkipwDi4ZoYOj0FotbYJSLSN3a+caa6 tYYewWT20esytMuJMOfzB+2eyq/MHsoS+NJuGma2vfGln+ShvhM3mNJ8uelsRcvAxtue UFZ8RIx0p73eNcEo+/0JsAsglOskh1kKQOw9EL3QchtySku8dz7qQUGg98MCP5GYWLym l07Tu3KNJ4dztEkEtisu3nIokF65eEb+kdVcRX15/8IsFMON3YgeZvmqANdKOj3VS3os merg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=LcYJEoDu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xf9-20020a17090731c900b0078e15c30a6csi10879304ejb.559.2022.11.21.08.09.33; Mon, 21 Nov 2022 08:09:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=LcYJEoDu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230154AbiKUPyb (ORCPT + 93 others); Mon, 21 Nov 2022 10:54:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230083AbiKUPy2 (ORCPT ); Mon, 21 Nov 2022 10:54:28 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79974CB95F for ; Mon, 21 Nov 2022 07:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=13bL6LNTHjc49hw1t8dd+cr8coUyb0jg/mTexC5rZYA=; b=LcYJEoDuLEA+iEp2XldIp0x6sO cDK4ViwOPzWS0atHVRmRJIYugx1i71XJQTD3UD6xEv7YKU5H3+68xoDQ4ydlenqRUWLXsq6MVzbMq NHk2YvgQz5znt9jedC2wmP7fhgee9cuI9YoHT/YdDUD35fFshRGEPYwry6YYF1WVlkWsSxyWo5lXL NusRF5QwzT1c1Www6dY/rE13Xz82CXwMu/oOzPOw5tPtkZt1oXMNNJrFPcT7zOe3rhm03NiHUnORn i/fFa/63F7+6TSN/nO9vZ4omDuV0E7raom7v8GBZhTi5ktCX3Qpg0bSvgMtpaBRzHsk/JpPrwYWMB ME3Xf2xg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:35360) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ox97j-0000H6-L8; Mon, 21 Nov 2022 15:54:19 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1ox97h-0002UN-VG; Mon, 21 Nov 2022 15:54:17 +0000 Date: Mon, 21 Nov 2022 15:54:17 +0000 From: "Russell King (Oracle)" To: Geert Uytterhoeven Cc: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH resend] drm/armada: Fix off-by-one error in armada_overlay_get_property() Message-ID: References: <788e97ac9b2aeee1941f274bf7b279b68c7592b6.1669045360.git.geert+renesas@glider.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <788e97ac9b2aeee1941f274bf7b279b68c7592b6.1669045360.git.geert+renesas@glider.be> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 21, 2022 at 04:43:14PM +0100, Geert Uytterhoeven wrote: > As ffs() returns one more than the index of the first bit set (zero > means no bits set), the color key mode value is shifted one position too > much. > > Fix this by using FIELD_GET() instead. Reviewed-by: Russell King (Oracle) -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!