Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp263049rdb; Tue, 31 Oct 2023 07:01:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEiYeOxzRZaK6B1dKc3e/s9j1tJ3wMy8iPJLZc8WKET4y8WovLf1Pq0kTl8aM2LIXZpyDYK X-Received: by 2002:a17:903:1cb:b0:1c9:e77d:62d3 with SMTP id e11-20020a17090301cb00b001c9e77d62d3mr3488594plh.10.1698760871545; Tue, 31 Oct 2023 07:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698760871; cv=none; d=google.com; s=arc-20160816; b=LDqR6cHBOBdK/3/HtbwmAsObg8Cv6LePqxpb0RDURvcE+NrvWOOIE08KITX4qqrBhl 6AZnWgsjC71IXwCMoUIEG9y+8ge3eRqWpLpo7xnKNkh4YezwyBX11FB/GJzJK1qKz9fJ VUQ0bBxGxo8H6iT6P1C47VE/GWMoK9HXrqQLObplY/A7IWXd4C9b9BYpgIbfNRkiLfmz z1vRP2XqGY8kqB0+1Iy/ZLbMjjuG8yA1LT0ySpUu8gTC9bXzExkE4NOvaSwUqXRygCA1 6iyuanGF6n0rw8hEUUk+ZX8Axy5QJnySpvSsZgW4JV/qkcUyww6VehkEec1iBNCwCPJe 9ORQ== 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:dkim-signature; bh=komFA17hyKI+4NsLiudUqwdc3bNY1LojxHd3YOGcS4Y=; fh=VoYDN6BoA3bnJgjwK87+JvRyU6Lfixp9xonGNfFd47c=; b=X4spo23PstxX75DVaJ3GHQ2zYtneDhM+yPCHIuS39vc5ex2V+z4Zf+X0msNGPdYcOc tVf2LSYhl5TkhB3CvKVQ1ujpixvSsno9360yHzld972Q4XspJEM0T0Bb++8tH7s5CF7S YVhgvaJxARAcee/as9qiFYb5aAm+Uj9EfnNS/j5Gk8KD4CrmDhrM9qeJGfp2GI5Ni6nh u8sXg86caoSpI1DSr0X8dO4Xez4LY0O4bFsQuTMYF/6HEoz+8nu24ZhWnHRypTER2CsN zCJVNB5gPdb8JbBpuV4B5FrI9CuSm2C0NdwnFBM4vO3U51aWRvlU7FUAEzgVh1huiBgq feIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=je0ejQ5o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id jj1-20020a170903048100b0019c354055d0si1021023plb.304.2023.10.31.07.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 07:01:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=je0ejQ5o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3AB69808725A; Tue, 31 Oct 2023 07:00:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344756AbjJaOA1 (ORCPT + 99 others); Tue, 31 Oct 2023 10:00:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344758AbjJaOAZ (ORCPT ); Tue, 31 Oct 2023 10:00:25 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B308F1; Tue, 31 Oct 2023 07:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698760822; x=1730296822; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=BZtdB+YuiWI031gK4fsYrU57cmwezQDYcGMWaSImpTU=; b=je0ejQ5oa1KDqOEztqIuSngaEFfvBGjwWQ6KXMkj/HBoLmN/r+dXWNWv 7/paRUdBiDf4tzGOhvociuI5DxcBE+TVR7oZshB+hxWeppz42AHF0GMSv zDBtmI7XJi10UsqsobkcAuOljHiqTcjYbWdrhpEghIKlYFWuEsbhZQAOl 6XkRAhAW8qJIFYvKtpkhPsXQkkQDo5u4LimJiRkG+dOms6Pvv3zr/vcac MzYt2vIqgjuJcdRVw9Wn1PiqKIHOr9EEVV1GpLzJhOT5EY7aTTdOyDp23 sGsQz/gbvSPOFhv2EQj8KBpR7gy6mupfOLgZCWt/w2stQQ5QnQ7Ed9oLN A==; X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="373341782" X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="scan'208";a="373341782" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 07:00:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="934118568" X-IronPort-AV: E=Sophos;i="6.03,265,1694761200"; d="scan'208";a="934118568" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2023 07:00:18 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 9A8DB12033A; Tue, 31 Oct 2023 16:00:15 +0200 (EET) Date: Tue, 31 Oct 2023 14:00:15 +0000 From: Sakari Ailus To: "Rafael J. Wysocki" Cc: "Rafael J. Wysocki" , Linux ACPI , LKML Subject: Re: [PATCH v2 5/6] ACPI: scan: Extract MIPI DiSco for Imaging data into swnodes Message-ID: References: <2187487.irdbgypaU6@kreacher> <7609686.EvYhyI6sBW@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 31 Oct 2023 07:00:34 -0700 (PDT) Hi Rafael, On Tue, Oct 31, 2023 at 02:46:51PM +0100, Rafael J. Wysocki wrote: > Hi Sakari, > > On Tue, Oct 31, 2023 at 11:33 AM Sakari Ailus > wrote: > > > > Hi Rafael, > > > > On subject: > > > > s/DiSco/DisCo/ > > Huh > > Thanks for catching this! > > > On Fri, Oct 20, 2023 at 04:39:27PM +0200, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > Add information extracted from the MIPI DiSco for Imaging device > > > > Ditto. > > > > > properties to software nodes created during the CSI-2 connection graph > > > discovery. > > > > > > Link: https://www.mipi.org/specifications/mipi-di > > > > This URL is broken. The correct URL is: > > > > https://www.mipi.org/specifications/mipi-disco-imaging > > OK > > > > Co-developed-by: Sakari Ailus > > > Signed-off-by: Sakari Ailus > > > Signed-off-by: Rafael J. Wysocki > > > --- > > > drivers/acpi/internal.h | 1 > > > drivers/acpi/mipi-di.c | 240 +++++++++++++++++++++++++++++++++++++++++++++++- > > > > How about mipi-disco.c? I wouldn't mind having mipi-disco-imaging.c either. > > Well, mipi-disco-imaging is a bit too long and the meaning of > mipi-disco would not be clear IMO. > > What about mipi-disco-img? Seems fine to me. > > [cut] > > > > + ret = fwnode_property_count_u8(port_fwnode, "mipi-img-lane-polarities"); > > > + if (ret > 0) { > > > + unsigned long mask; > > > + unsigned int i; > > > + > > > + /* > > > + * Total number of lanes here is clock lane + data lanes. > > > + * Require that number to be low enough so they all can be > > > + * covered by the bits in one byte. > > > + */ > > > + BUILD_BUG_ON(BITS_PER_TYPE(u8) <= ARRAY_SIZE(port->data_lanes)); > > > + > > > + fwnode_property_read_u8_array(port_fwnode, > > > + "mipi-img-lane-polarities", > > > + val, 1); > > > + > > > + for (mask = val[0], i = 0; i < num_lanes + 1; i++) > > > + port->lane_polarities[i] = test_bit(i, &mask); > > > > This works only up to seven lanes. > > True, but then ACPI_DEVICE_CSI2_DATA_LANES is defined as 4. The spec has no limit and in practice 4 is relatively common while 8 exists (but is somewhat rare). I actually think it'd be a good idea to bump this to 8 already. -- Regards, Sakari Ailus