Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp238435rdb; Tue, 31 Oct 2023 06:21:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeXv/k5enA2r48n9UzGFDo1vcPWlW2ySLSrQ8oZ9ZzF9DCBV527tTMvgVqEu5kIZg83sZM X-Received: by 2002:a17:902:da82:b0:1cc:7077:c87c with SMTP id j2-20020a170902da8200b001cc7077c87cmr553978plx.14.1698758507740; Tue, 31 Oct 2023 06:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698758507; cv=none; d=google.com; s=arc-20160816; b=BxKgsy9RWKp7UgSXrM+SpWCygphT46uWAMS6wVBsIrFW1foCb0UftMLm5+y5YZyhfq Fvvsa6HT4t1r5c0UcLax1/B2fxL50m+6bLBYzvJsHyDrPavpn3HDCWCsuoXeRpUnn5oS zRgf7MeaO+dWB4Tw6AkQWwTAVrVx22IF2CcMBnSa0cotcf3/9flNCFuDa9KWcND0mJsQ 817sZX8WAKtjkzRiuVL3wEFQTsRxnKx4MM6SnZKgQROE+6nmNl7FjN0QTcBmsChfGftY PPINqYrS1obvxFaoMF4d4IoEBdVZ10M084LIXQAwItKSDz6hHbpe55koBw5t8AMr3b0k Jenw== 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=fOxfJeZ1dyHqlz2OLWybtdscOoXeDwOC0PvTVNopmi0=; fh=53UJZ3tyLqBP7qwMOB9EHrLYv5slTTdOsyuAmwGxftY=; b=GX271JW5MSG7M3CMiRGSlgmbJCWpPjedUd9qlcXyDnIIDYDzDOCo7dtQG8aF2SCrAT fkY64G2wqsNZnTTUfaLwg5vE/40uxEj80jr/aWniu+uwdXHZ2ORoQi+dlM1MQkNMGbrq s69K25XdZuDaURAA1PUVHeGVw/tQq/+9rzeQKl3ZQp+gt33QXaNiLqpaXysf2jpTh8Kf DtrEhfkNu+8gxl8zVC+4EHAKZImvu9jjtv3JyPraUGYbZRNjWF6hC+4jOJ82b7Ruz7bz Vc9731qwPgpqK0neX5Zxho0BM3FiFNjyJFUMkgmgNLG7LQhapiMS2NrD0bClQgKSXh/o ycig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id c17-20020a170903235100b001c62cfff798si1048341plh.372.2023.10.31.06.21.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 06:21:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 9CEE2801E72B; Tue, 31 Oct 2023 06:21:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344492AbjJaNVp convert rfc822-to-8bit (ORCPT + 99 others); Tue, 31 Oct 2023 09:21:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344449AbjJaNVo (ORCPT ); Tue, 31 Oct 2023 09:21:44 -0400 Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FACFDE; Tue, 31 Oct 2023 06:21:42 -0700 (PDT) Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-5872c652a66so21147eaf.1; Tue, 31 Oct 2023 06:21:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698758501; x=1699363301; 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=y+r90o1CDouOKGHO6NRz2WLKIow4NkDrRiEkM6bVHFk=; b=Pz8rljtPlNL1V5GEtuv9BAqT24kpYwiPWjWclKMJ+BfXB6dprAJwUW+b4YNgZB+lLo sroGUoZg3ncgahm3JXBMr0TAtpsxL+SOoI6K0pUnZilOAX2ZTNkwsEtSmvDPqQgcc7Lm t9hxgBXEYjpE+wSgEe1bwwSYUsbctkBKKJUftyK7nhcU4UNINpDe57a/V3dV3brq9Usa FJkZvU2knUcFglT+k/VjTmmTk/+WaGwx6SHqwF/rzQmzrf9nhtWoLwcX4LG4Q8UJKInx XDtKuz7j5Ae21snYsKQQ0JNLvRmGRcLTI7sIAz64/6PSxthlL04OQIvV9XC6seOHDcbZ fPZA== X-Gm-Message-State: AOJu0YyiENe3QbdnbYOaj0sl5SU/3GdKyhENshx+HypeFw/9hDpvH3GR EtabAZowmbsSXMflygd6ZPWXGY3okhidqpjcbOt4mIhh X-Received: by 2002:a4a:dbd8:0:b0:583:ec88:e0 with SMTP id t24-20020a4adbd8000000b00583ec8800e0mr13645973oou.0.1698758501536; Tue, 31 Oct 2023 06:21:41 -0700 (PDT) MIME-Version: 1.0 References: <2187487.irdbgypaU6@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Tue, 31 Oct 2023 14:21:30 +0100 Message-ID: Subject: Re: [PATCH v2 0/6] ACPI: scan: MIPI DiSco for Imaging support To: Sakari Ailus Cc: "Rafael J. Wysocki" , Linux ACPI , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 31 Oct 2023 06:21:46 -0700 (PDT) Hi Sakari, On Tue, Oct 31, 2023 at 11:33 AM Sakari Ailus wrote: > > Hi Rafael, [cut] > > The v2 addresses at least 3 issues found in the v1 by code inspection: > > > > * A port_count field incrementation was missing in acpi_mipi_scan_crs_csi2(), > > so its value for all of the devices having CSI2 resources in _CRS was always > > 1 (and it should be equal to the number of valid CSI2 connection resources). > > > > * Some acpi_mipi_crs_csi2_list members could be freed prematurely, so they were > > inaccessible when extract_crs_csi2_conn_info() attempted to access them. > > > > * A check of remote_swnodes() against NULL was missing, which could result in > > a crash in a case when the swnodes memory could not be allocated for some > > acpi_mipi_crs_csi2_list entries. > > > > Apart from that, it rearranges the code somewhat to make it easier to follow > > and to avoid premature freeing of memory in it in general and the new file > > added by it is now called mipi-di.c (instead of mipi-disco-imaging.c) for > > compactness. > > > > The series is based on current linux-next. > > Thanks for the update. I've tested this and I can confirm it works, to the > extent implemented in the set. The rest can be implemented on top > (mainly replicating properties). Thanks for testing! > I'll comment on a few patches in the set. > > Do you prefer to make the changes or shall I? I presume them to be fairly > minor. I can make the changes.