From nobody Wed Oct 1 23:30:08 2025 Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B29EF2F6198 for ; Fri, 26 Sep 2025 13:11:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758892298; cv=none; b=qgUkRHg1M/uzHVyV2YpbPXwMcoAK5uEP9STCdIDVk6DdXZ6t+K450MdDbSvCQ0tF1no6lt9v1ZG+Rr/YMDgyX7MbGJKa+aG/HvyEMRWNnhYzXe9gqgTjXAdRm4oLsVySGyr8jzl2S8eDQqjnYPNllGPpBdEjTTI0DvmBhkiz/8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758892298; c=relaxed/simple; bh=8QXukFFdhrRn2peTuBfsWRiyR8y/J2hEQydiLTT8V2I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JgAhD+ZTqjrAL02g0VBHonj+XfH6yHiHhaR42pVoz0GGlxm7h6ozMNI6IfIieAPQyUl0x9S2LmD1fNCZBxyk0J8toCja5VhU6ILDadg5zYqWJviYIuIUqw/Lmu4nNRYlc0cXskq/QRV4GeBG1xc9PNDnB6Sif0FVBWFza46kuZ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=CpOVhZG3; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="CpOVhZG3" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-579363a4602so2338075e87.0 for ; Fri, 26 Sep 2025 06:11:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1758892292; x=1759497092; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=+IULFJYV86S6ZpfwTIK6NKFvLB7brLHHTAANiqsCeGE=; b=CpOVhZG3vaxV2fboQSsRh23NrW90eUjXQS6O48r81fKWyQ1M9GO2uGrcKf4PxEg4gX 3I3U4y+P23YYueW78VE2BfMvSvXu39119YNbwseVb2awkxTYYHXQa/kSMzK5NKg5BtXz /mOmJlsI9jEAHUkIPEXIueXJNLkCDwTnc0SG0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758892292; x=1759497092; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+IULFJYV86S6ZpfwTIK6NKFvLB7brLHHTAANiqsCeGE=; b=HpAJ7ioZPVEbLbCBLnrfz69cVOeqCyRHXwuzUj6q3JunBHkdrds88AVRkmE61Gi8Yy 9Lx+k6/yWEonD72FzAQalm1O7NOG6dNMILkLNOG+Ns4LuhTjfr2pRkGw5VjRl0A34lkb 3/UBPUT9T/1d54uC1fo4e1KFuMuD5AUpcnpZ+vHDNLigrwn24wK4Oi+DroP6wnQyCuhv YPtuevzoU6xn4XiE923BF7ELYUBxbG8hrLYPMhmeRho8j+C2wh7zBrBM78OFFjs3oO7j OEu8C0J7P3WImaDfiZH2ahIfbIhU7G5iJHVOsH/vSB8gwebNWULttrL1UQxphJWDdAYg M+bw== X-Forwarded-Encrypted: i=1; AJvYcCWlOKCPM4lFi3IC1fvUmRh0IueZdvTgDQVC2WGaysw3JwS2jZCcE+nRy1vZnxja/f9UtLsqwW9DwawInJo=@vger.kernel.org X-Gm-Message-State: AOJu0YwuxqhNhdcThbeULGxwdgq1yWJOacBrZhnsV+xClUTClA3jjj5n faaxTpoYD6t++gTvE9sap2yU8FHgH6tTP925MsoxWW2mlTnsyg6K/xI0eNbDE4M6PQ== X-Gm-Gg: ASbGncsHESz6f168sTjs+oD6VGzJA606XD8B07he3aIwiGeFjBa37dOM+t3zQLsthmt E23EBmQ+oRBoGtTX/StK6bB3QmDPzej5KeHM5rIuaiJ3bFDD2Wywyvh/BsZwEQ8N1vVIlQvcJ68 OWd/RY6AW1hJh+FiP3dEv6bkaG3SO5HUAnEYyTyTa8cEYMJk4di5qnyQt+r7Tq98GKLWAvWmf88 rALfvWQnTbAIRrNthEujbx4BBC8pQdVSyOZ5mo6g8CZZUtZhqqxvyosAMRbQ9zfkYZekFZxkMG2 hEpPuPsj5/4D+HX+eNsVoRuxR0O0+wAlGaQ+LVPnkLT/XCU85qy957XaXflpYSZBx2VRnbnrW9c b2zIOt7vGAXEWv5nDX7BwwrexMzx97UgDmYrN5WMxNNtd/NFoxEAAAnfnBWp1WNgX51Vr8X5Ery UVVK2YIBaLS6qU X-Google-Smtp-Source: AGHT+IE/r2pIJwf7kAuauI+jC65tbRl8WC4I4+SdoNtU43PxQUMr/4vfCOnHocv1AyDV3BygK1ERFA== X-Received: by 2002:a05:6512:2201:b0:570:e55e:47fc with SMTP id 2adb3069b0e04-582d3c9674cmr2179748e87.54.1758892292030; Fri, 26 Sep 2025 06:11:32 -0700 (PDT) Received: from ribalda.c.googlers.com (64.153.228.35.bc.googleusercontent.com. [35.228.153.64]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-58527c6b014sm123872e87.43.2025.09.26.06.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Sep 2025 06:11:31 -0700 (PDT) From: Ricardo Ribalda Date: Fri, 26 Sep 2025 13:11:28 +0000 Subject: [PATCH v3 04/12] ACPI: mipi-disco-img: Do not duplicate rotation info into swnodes Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250926-uvc-orientation-v3-4-6dc2fa5b4220@chromium.org> References: <20250926-uvc-orientation-v3-0-6dc2fa5b4220@chromium.org> In-Reply-To: <20250926-uvc-orientation-v3-0-6dc2fa5b4220@chromium.org> To: Hans de Goede , Laurent Pinchart , Mauro Carvalho Chehab , Sakari Ailus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Bartosz Golaszewski , "Rafael J. Wysocki" , Len Brown , Robert Moore , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, Ricardo Ribalda X-Mailer: b4 0.14.2 The function v4l2_fwnode_device_parse() is now capable of parsing the _PLD method, there is no need to duplicate the rotation information in a swnode. Reviewed-by: Hans de Goede Signed-off-by: Ricardo Ribalda Acked-by: Rafael J. Wysocki (Intel) --- drivers/acpi/mipi-disco-img.c | 15 --------------- include/acpi/acpi_bus.h | 1 - 2 files changed, 16 deletions(-) diff --git a/drivers/acpi/mipi-disco-img.c b/drivers/acpi/mipi-disco-img.c index 5b85989f96beeb726f59ac9e12e965a215fb38f6..b58b5ba22a47a4afc5212998074= d322f0b7586dc 100644 --- a/drivers/acpi/mipi-disco-img.c +++ b/drivers/acpi/mipi-disco-img.c @@ -617,21 +617,6 @@ static void init_crs_csi2_swnodes(struct crs_csi2 *csi= 2) =20 adev_fwnode =3D acpi_fwnode_handle(adev); =20 - /* - * If the "rotation" property is not present, but _PLD is there, - * evaluate it to get the "rotation" value. - */ - if (!fwnode_property_present(adev_fwnode, "rotation")) { - struct acpi_pld_info *pld; - - if (acpi_get_physical_device_location(handle, &pld)) { - swnodes->dev_props[NEXT_PROPERTY(prop_index, DEV_ROTATION)] =3D - PROPERTY_ENTRY_U32("rotation", - pld->rotation * 45U); - kfree(pld); - } - } - if (!fwnode_property_read_u32(adev_fwnode, "mipi-img-clock-frequency", &v= al)) swnodes->dev_props[NEXT_PROPERTY(prop_index, DEV_CLOCK_FREQUENCY)] =3D PROPERTY_ENTRY_U32("clock-frequency", val); diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index aad1a95e6863d443a45985ba7ec7be4acf8664fe..296716875a3e7977abb7b7dfa89= f78664aebd61c 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -389,7 +389,6 @@ struct acpi_gpio_mapping; #define ACPI_DEVICE_SWNODE_PORT_NAME_LENGTH 8 =20 enum acpi_device_swnode_dev_props { - ACPI_DEVICE_SWNODE_DEV_ROTATION, ACPI_DEVICE_SWNODE_DEV_CLOCK_FREQUENCY, ACPI_DEVICE_SWNODE_DEV_LED_MAX_MICROAMP, ACPI_DEVICE_SWNODE_DEV_FLASH_MAX_MICROAMP, --=20 2.51.0.536.g15c5d4f767-goog