From mboxrd@z Thu Jan 1 00:00:00 1970 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 4B5CD27990C for ; Thu, 5 Jun 2025 17:53:06 +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=1749145989; cv=none; b=oYE3vt98KFsLA6T27YuiAcWsRBx8IvfO5bo8W24n2PHzTnaRgu6iggrrTNBbJNuR9JuHxYwiviWkSoEiDQd0o6h0gVaAxfhNynqerKBF0Y7kfoAGCqe9R0KRwFshMqhpfiHdqjnjH5VvoJXCTomE8pFKk2zcjoWW+66jlMb+TO4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749145989; c=relaxed/simple; bh=V3mF7pLDoaruyqIzAwwMyJdM0YQYzWL05/erg95lnDI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=anW6CH3UAA0hemT+6qLptp2Cid/KMAFCUgh3VDqIBxJ+PITD3KZEYSZ5gfmMODZ1Wc1u9GO1ESdiNvHkoTwqhfAH2evTheUYkfryk4QLZQ/fknKxxCmhxRcvvWdvIuMs0nCJGHZxrVDyaifhdkd3J6H9W+qRKlYIvP2EW22aRUI= 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=ETjM1jqi; 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="ETjM1jqi" Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-551efd86048so1376047e87.3 for ; Thu, 05 Jun 2025 10:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1749145984; x=1749750784; 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=W8OIPxZw+kNtaX9XsRliFjEOnUVpjIedNlprBesFBFM=; b=ETjM1jqiveXzdwPDQFMdlninWX7WCzWyBBTNVcW8rRYgpQ9RBIljJU1/Z4o4pYaX/E ho9z0jjgKf6qSxZ5fghWCD/nUGaOdMY0r3O5cfwPsx6FHPvxDVWfvcfWQgD956eFgjyj gwNfHRFdK2iaQ2xUr6iRIhtPpoIHBQRoN6HSM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749145984; x=1749750784; 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=W8OIPxZw+kNtaX9XsRliFjEOnUVpjIedNlprBesFBFM=; b=hpVIS0aUWGWqepFD0yAFEw9WRjugQyRz5UR6Sfx6FBd+a1g7wcDxrnea4ZFySyv5l9 VFWiM3h2HmqcYW4ZfNVOD2D+3sY7cLeGV625D5vQmE8w5Uu5mypXbv+LGFh3gL/5aU69 K8mkqbe64Gf6umaAP0iIexi76ExWHrXISoExypsRN9QxQrBVNkAFGwErqP8IThHA2urj ocrfvmyR22KfR9QCEpuO/XtQXnfpc7TqZhGG77/PLiTbTRAPJ7/l4Cq4PTWFdWqMMT0w YRIzq+IfNRQDFSErBqM4aCqNN89NNDRIvJoYg5StHR7FgYF8GokOTJqq9qC9WfLfa8CU ZsTA== X-Forwarded-Encrypted: i=1; AJvYcCV+yxcOmCHeiOdw9Gwa1u6kPqxJJtyxIJAJ5h8UuNyj3i2X5G84iT0UkJgaTEU7AEeVpO5S/kuU77wx@vger.kernel.org X-Gm-Message-State: AOJu0YyPbPfPThz8Y7MJcFhKCIC59mjyXqPMBnwGlMcHVIKxexbKiARz xG7nvqbnhsz9cGsQjduS1LSJK01+Ny9OA0VWUYd1ACU/MGNqGCzUG4m9+w2/eBPuIA== X-Gm-Gg: ASbGncu9cJ8dnAu+alvv2FIbIa/U5CfnWHLKjxWgC/VitqxaRot7NjDKSJTl4hDHRKA clZZ/q4PUxgB8kRLWDqcLWb3k36SC0x6ddZP/xybkFKs0INlgR5fQBbYN54ui0kdv56a8CGQMvC Ajd9u/MrN7BBWwJ8o/eWo9b3MVBXhtXiFhTzxhR0KBBNXZHag/26qLf3wZEBL0SQ1IBjehg+KJE oqLw3ycsH+CwPY+m/wowfcYXol9Fncf7qTbojVx38MZ1l7eDdfCxyWoJktMTasjLqisRMsQRNdl BlqpWdP1SbYRykD1NLvIEfg65nDV4DDo2G6PCtG3hIEtPYi/vkMT2PNVSgBGvP1FXw4fGgfigiM M/S2B0u1S/bYpA2xmpKa1CBi4chJrGxPmXdfc90/rWOq+jBs= X-Google-Smtp-Source: AGHT+IGs54mK0grF5GpYvNrIRBVyl5RIQTl5wT33xEXZ6lSNp2Qm87PtJXgiSarLAOoqtbFmQtgqJA== X-Received: by 2002:a05:6512:224b:b0:553:2bf2:e303 with SMTP id 2adb3069b0e04-55366bf9034mr20502e87.30.1749145984304; Thu, 05 Jun 2025 10:53:04 -0700 (PDT) Received: from ribalda.c.googlers.com (90.52.88.34.bc.googleusercontent.com. [34.88.52.90]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-553379379c2sm2641210e87.251.2025.06.05.10.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Jun 2025 10:53:04 -0700 (PDT) From: Ricardo Ribalda Date: Thu, 05 Jun 2025 17:52:56 +0000 Subject: [PATCH v2 03/12] ACPI: mipi-disco-img: Do not duplicate rotation info into swnodes Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250605-uvc-orientation-v2-3-5710f9d030aa@chromium.org> References: <20250605-uvc-orientation-v2-0-5710f9d030aa@chromium.org> In-Reply-To: <20250605-uvc-orientation-v2-0-5710f9d030aa@chromium.org> To: Laurent Pinchart , Hans de Goede , Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Bartosz Golaszewski , "Rafael J. Wysocki" , Len Brown 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, Ricardo Ribalda X-Mailer: b4 0.14.2 The function v4l2_fwnode_device_parse() is not capable of parsint the _PLD method, there is no need to duplicate the rotation information in a swnode. Signed-off-by: Ricardo Ribalda --- drivers/acpi/mipi-disco-img.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/acpi/mipi-disco-img.c b/drivers/acpi/mipi-disco-img.c index 5b85989f96beeb726f59ac9e12e965a215fb38f6..b58b5ba22a47a4afc5212998074d322f0b7586dc 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 *csi2) adev_fwnode = acpi_fwnode_handle(adev); - /* - * 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)] = - PROPERTY_ENTRY_U32("rotation", - pld->rotation * 45U); - kfree(pld); - } - } - if (!fwnode_property_read_u32(adev_fwnode, "mipi-img-clock-frequency", &val)) swnodes->dev_props[NEXT_PROPERTY(prop_index, DEV_CLOCK_FREQUENCY)] = PROPERTY_ENTRY_U32("clock-frequency", val); -- 2.50.0.rc0.642.g800a2b2222-goog