Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp320417rdb; Tue, 31 Oct 2023 08:22:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9U3QYPoNz/eJ+60BNv8EJK9wtJSItVw/tDEhHN504J8dOZ9nfYh4FBVZRvt7EqEw4v/ng X-Received: by 2002:a05:6a21:35c8:b0:181:10ee:20c6 with SMTP id ba8-20020a056a2135c800b0018110ee20c6mr1408680pzc.42.1698765766533; Tue, 31 Oct 2023 08:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698765766; cv=none; d=google.com; s=arc-20160816; b=Hrf24rKJgNrTNzHX2hLUW9SlWK3s8QAekSVYwb5fpwTBJcbuYcLtNfQjk9vDcTrKA/ muxD33yCdzwJhGo0fEVeHS3JuI6tiMFsulujEqEgJrzuq0c8n+5TFo2P7W5nTmtuQZ+V FISks68XB8f3jGShGXLQ+q7nU7ktQS+S4Jnvz1J5u/MJ0Z9RDpL0E0jQNKKz10Yggf2d 7TZj6g4fYwJfpcfVtznI3DA6p4/hCO96bbI7XUbqWwK0GNZFbL46xUAo2fXJ4UcVNsNj PViCEjNmNuIp3SuAZt2+Vnmoze5sclUYRIiAilwRnTNisl4lHs+R4DxjiFKa6dB90Qjb 2UBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=x1G9UsMXOwpKgAdcY6kwgZNHnLAQPLkNNyWLq+SE2e8=; fh=fwBArdXZ/TqfQHDcIlQDQJnP//1Tn09luVO3IBFer+Y=; b=tiW3ZrsRJi8d/PCUD3SWfAclCwGvwgQ8DFiAO+k9aj/8UiMED/E3FC1CTzqVxAvlHk T6YedteCZZQIBfRQ9331X/luZ5N4LyRrMJySfiL6tieqljfQuVqlWzBpQejeRKP0aDSb 915xrNHh+V69ZAKL8lj/U5WA561maGlcss4yYnbp0bILTYP6DN+0DR7tFiX9Sa8tOOiw TRdRJ3b7YTTClT6Js4QGKPN1EHBtrQXIkb0exr2nioivL84qSqpsqerAYsvqAJNEtGeA 425L7iiGzBGsQQd6nIa6HMy5skL7Uc9CSZ4y06qpW7G4+7HhAV/w6kkWRe0+QuS7EaX+ 5Oog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ka38-20020a056a0093a600b006933e8fec67si1143269pfb.227.2023.10.31.08.22.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 08:22:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 5FF9B806114D; Tue, 31 Oct 2023 08:22:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344717AbjJaPVu convert rfc822-to-8bit (ORCPT + 99 others); Tue, 31 Oct 2023 11:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344726AbjJaPVr (ORCPT ); Tue, 31 Oct 2023 11:21:47 -0400 Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75A4619B4; Tue, 31 Oct 2023 08:19:32 -0700 (PDT) Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5845b7ee438so529064eaf.1; Tue, 31 Oct 2023 08:19:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698765571; x=1699370371; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=O5I+wv0AwpA/9AOWmahw4PTxgF8CLhlJBYtL+4HP13M=; b=q5lcjTaUfNRTDUUChtGFLJj0bfnqlHepZan3oHV8kVyyF73fQg1qAEo9HxcLzEMhJQ baYMTR463G3TiUQUavYDQmjaxBJADW128PxDvVb2vjhk/xe1jMk8MPxcGNBoHXtqfNxW IW50sdVMRh5IEVx7T73g1Jg6eSK6m2MnQRagBBcs9URFRrfCOqVZoGEKNcQBrERC5lmq Nj+IxsbG5CSnqeHFlQk7UtDSwjOPigKFUEcLhEWBXIhe2Ftt9D99VhnYoM0dWh3X5oEZ fKaaAIE+/HFrDA2O+UTUGNXwN0e+ZqWof6dUbSSRiWLc0/uT+lnMgUCO1WRmewaY2du2 mIvA== X-Gm-Message-State: AOJu0Yy2A8csQX0kRyGVZoXdsWhOEQjzCbjxJvkPjnKWiZQNR/F6QdWb xJOnF22yr9sFQfA+eb7rrOnPb1w1Ix3Y1bQwMUDrpq+r X-Received: by 2002:a4a:d8d1:0:b0:586:abc4:2c18 with SMTP id c17-20020a4ad8d1000000b00586abc42c18mr13046062oov.0.1698765569924; Tue, 31 Oct 2023 08:19:29 -0700 (PDT) MIME-Version: 1.0 References: <2187487.irdbgypaU6@kreacher> <7609686.EvYhyI6sBW@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 31 Oct 2023 16:19:18 +0100 Message-ID: Subject: Re: [PATCH v2 5/6] ACPI: scan: Extract MIPI DiSco for Imaging data into swnodes To: Sakari Ailus Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Linux ACPI , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=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 pete.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 (pete.vger.email [0.0.0.0]); Tue, 31 Oct 2023 08:22:32 -0700 (PDT) Hi Sakari, On Tue, Oct 31, 2023 at 3:00 PM Sakari Ailus wrote: > > 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. OK