Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp579454ybe; Fri, 13 Sep 2019 02:46:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvWVl+cA6S3J5fY1dEgV1U5IUPg+o61pU4NcP/qbSJaeehmXXU7O9cjYqNld8OZs8Q9u3Q X-Received: by 2002:a17:906:560d:: with SMTP id f13mr12655263ejq.168.1568367972896; Fri, 13 Sep 2019 02:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568367972; cv=none; d=google.com; s=arc-20160816; b=ZucnL6AuvkGy69fgsLEMXgvd4iEzHrxrcTQuowkzUYMx/NOTGbQ7VJWGmwnNcDXYjt fMCZ/kuT9ZTzodsJVfz5IQyOMzIKCIeozSwJGZs95i6tF/dlNYyYG7qTohbx05aV02dY 75WNhK39QHN1d/HyXO/W490NZoaf6hDMd+6j0KggrFEpsuvbv9pm9vb1ovb2FolzmIJY 72YqjIojrUrNaxQTcmIGbOuxl/MPFMIbW9xc1yIsY4HJDCk43YNtnav794+ntYG28GZE y66lCHbKlSDtDNoa18pvywHSoKmzvKgyEKccPQAVqRiKQxNz5GooT4eQqi7Kr+97zvl7 5G4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nLz30nHc2aImzQ80XlbgvLpLcGQhV2qdWRveWGU4Pgw=; b=TagdiUhKUBGBe/owYbFwoWIX62Y5G7fS3MDZoSY47Eq4EvZbNZ0cLIeVSustWFsYip Hm8c9K/2AH423jxenNdZfnoWvyzLG/+n/HDJF3HenuQYLNosZ7mlWvNSh1LzW3VP5KGc lLSbZb1qykeTfXghvK7VDktI3GSBw8Oce0aBrqi6PXgZVUJQ2G90KT2cuqurwoqQ3rcL Tpmi4GWiubJ6g6l6tV7dzxpzE/wTxXKQK2zSFoymtsj5v4XfnaPIwfOwEwLPqIz5/eIA nRLekLmxUO2v9nhOF2PMcFhFfKup+tM0U+TynIJNm2ivOIvLWNCKIU+Yzg8JQGXcarTN Ep7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U3AyRFzE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id p18si15692820ejn.370.2019.09.13.02.45.49; Fri, 13 Sep 2019 02:46:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=U3AyRFzE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729105AbfIMH5O (ORCPT + 99 others); Fri, 13 Sep 2019 03:57:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:47316 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbfIMH5O (ORCPT ); Fri, 13 Sep 2019 03:57:14 -0400 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 367AD20830; Fri, 13 Sep 2019 07:57:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568361433; bh=p7cjNFjW8pPTHEfP9s6WMR26sSINsqGMJq16WsR6ntc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U3AyRFzEsTvHtIKhjb/IKQmhEmEBxOk2DXyK+R6MoAP/b2aWL+H/cCPH4YNMEvdLF kymz08dFHy2WgNzTqemgeLLiMsWxp/O7K3Syj3WPNXr0NcjjrybFLRGBUN77X1qusf BjnIuPP7ToNd697XuTWyomufq3xuieJPqnvXdCpU= Date: Fri, 13 Sep 2019 09:57:09 +0200 From: Maxime Ripard To: Christophe JAILLET Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] media: v4l: cadence: Fix how unsued lanes are handled in 'csi2rx_start()' Message-ID: <20190913075709.t35ggip624tybd6l@localhost.localdomain> References: <20190912204450.17625-1-christophe.jaillet@wanadoo.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190912204450.17625-1-christophe.jaillet@wanadoo.fr> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christophe, On Thu, Sep 12, 2019 at 10:44:50PM +0200, Christophe JAILLET wrote: > The 2nd parameter of 'find_first_zero_bit()' is a number of bits, not of > bytes. So use 'BITS_PER_LONG' instead of 'sizeof(lanes_used)'. > > Fixes: 1fc3b37f34f6 ("media: v4l: cadence: Add Cadence MIPI-CSI2 RX driver") > Signed-off-by: Christophe JAILLET > --- > This patch is purely speculative. Using BITS_PER_LONG looks logical to me, > but I'm not 100% sure that it is what is expected here. 'csi2rx->max_lanes' > could also be a good candidate. Yeah, csi2rx->max_lanes would make more sense in that context. Could you resend a new version? Thanks! Maxime