Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1263818lqm; Thu, 2 May 2024 09:27:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4EiWRiug6T7JHf1aP1kf7t1GMC03WUwkZ0K57YFMPVZg2ywihtWvdPZb5N3a7qUJUlHCils6maxJl3fkXwyMtHw4wNtymwsIrarFDDQ== X-Google-Smtp-Source: AGHT+IHfRYSURuMqeFPqsWQ46qx9b7Z8jxxd7SfukwtypgTvKEiYj3bVgL/D0mv2hN3B7E/X+WrT X-Received: by 2002:a05:6e02:1fcb:b0:36c:50b5:577c with SMTP id dj11-20020a056e021fcb00b0036c50b5577cmr276346ilb.25.1714667268962; Thu, 02 May 2024 09:27:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714667268; cv=pass; d=google.com; s=arc-20160816; b=Nmu1yb8GxAhlWTwodIpdM54ha5BMY0e/gM/bzKw2jDMiizR9Dm68F7v6G8tzw2Hzlk T8YIAD4XLxz4Xn6vNA5tpOTD8SU+XqtAQFW1eRm4d9cL1aVHB0P9f0FAxIahULhTunlC HER8C2iiWC52bX5gu6yVyZmWn9k0aMAF18bT+gM+bHAIIzTrKD265T5T/WcfXTYMo51A 4YnuSifSmpJvm7jtkTb5o69fgjisMq5Qzrl9CO6crrpccq7z63kLAbGl9a0BgWFSCz0S GzsPqwYX3ZI8NGp2eRnbjoaiS4FUur7DrTQCx1VCLuMFRUR7XtQzvSbo7lcMYMluCT41 GrKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=AN8xdb1IOqM8B6dtORjftXrgW+S1XF62ODJxIj/2mvU=; fh=BGRuwqN15tL0fWyp5U/uxOJjpTOO5xRn0i3/oCaDrd8=; b=al8qSZItoU//TQqjGoSGsXQoCg90VB7nLAFqjzxI55zw9KqPxQCWN4hFzUP4Lm8R5s bExhBB9WcsuDF+iOefJHTqZbNRFDYs9jSwxU1Zx1pzkDkXP6puJVkC3Tm3NryAaWkZsU RW7GlxUaQvl0A9m3bjvNueQYe8rmVdjI0H4i4TbtFESz1gDgYOZxZNf+/qbDZ0KgwKxF 2kdCWZJV8j5Jdm6Tfff8YkJMEfhPkOw/KAInMEIOozncy7LKgxwUcE7pmJTY/yJT3lAu tm27rFMg5aHK7WNw6yYXk/64RTxyd03e4wFv9NSUdOsO6rXHUjK9abQP57gLJHy3u4RN 5k6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wqzXVd5D; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-166720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g3-20020a63fa43000000b006137ee8f9c3si302088pgk.629.2024.05.02.09.27.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 09:27:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wqzXVd5D; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-166720-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166720-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2690428BCA4 for ; Thu, 2 May 2024 16:26:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9C7915ECC2; Thu, 2 May 2024 16:25:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="wqzXVd5D" Received: from out-174.mta1.migadu.com (out-174.mta1.migadu.com [95.215.58.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BD24515E5B9 for ; Thu, 2 May 2024 16:25:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714667150; cv=none; b=Lpp1KMMK3OrW+Zcm6ThJAHSSiuqMO4bBL/Umy09t9lD2eVBWihvPLOYUrLtJpaA1sZ8Izd6hcTkzlWrDNh46zzXqD02VXrQQqxNL6gzHyuUJlOs8FQvMSG1jhpe0pfvtV5yjoFROkn6qHm3gFLi6pUQ3BOSu0c/Nqq42SeHhpZo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714667150; c=relaxed/simple; bh=4mXnxYuyE4V6VCm5aQCB1D/pwSjJB4SGdR59W7Y1ZUQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=flVVu6vx3+BCGd4JR7x/eiqQOeIqDTA9AIf8okwTnZxqtfDNU4exvfqhHI8RjBqHubIogQHZ5KVtnj2X7bEJOLPBW44FYClTF+CjtgCwpc9srC+p9CD5pH43wLtkDFyaASdqPSKNoxCq3F0WQzPZQ9/GYzMhSeh5QA8be1EJin8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=wqzXVd5D; arc=none smtp.client-ip=95.215.58.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1714667146; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AN8xdb1IOqM8B6dtORjftXrgW+S1XF62ODJxIj/2mvU=; b=wqzXVd5DEvBRvixSMLLlWTtSgq/brVCrTYO0CwcEoU1bIfI4P/0GTCj0EvcN++fFrUIftl 7BAWTBPa26LKnCFIkhmGZyYO6y6gRYlRJn60Tvdh57bRd5BfuKMYoAisAQiTmzmB9CHYs5 DWXBOs7fmzOqAPxiIFY5X8IPZVFl5+M= Date: Fri, 3 May 2024 00:25:17 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [v1,1/3] drm/panel: ili9341: Correct use of device property APIs To: Andy Shevchenko Cc: Neil Armstrong , Randy Dunlap , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter References: <20240425142706.2440113-2-andriy.shevchenko@linux.intel.com> <9e69b129-7539-4403-a621-bf3775aab995@linux.dev> Content-Language: en-US X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sui Jingfeng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Hi, On 2024/5/2 16:32, Andy Shevchenko wrote: > On Wed, May 01, 2024 at 12:27:14AM +0800, Sui Jingfeng wrote: >> On 2024/4/30 22:13, Andy Shevchenko wrote: >>> On Fri, Apr 26, 2024 at 05:13:43AM +0800, Sui Jingfeng wrote: > ... > >>> the former might be subdivided to "is it swnode backed or real fwnode one?" >>> >> Yeah, >> On non-DT cases, it can be subdivided to swnode backed case and ACPI fwnode backed case. >> >> - For swnode backed case: the device_get_match_data() don't has a implemented backend. >> - For ACPI fwnode backed case: the device_get_match_data() has a implemented backend. >> >> But the driver has *neither* software node support > True. > >> nor ACPI support, > Not true. Why this is not true? Are you means that the panel-ilitek-ili9341 driver has ACPI support? I'm asking because I don't see struct acpi_device_id related stuff in that source file, am I miss something? > So, slow down and take your time to get into the code and understand how it works. > >> so that the rotation property can not get and ili9341_dpi_probe() will fails. >> So in total, this is not a 100% correct use of device property APIs. >> >> But I'm fine that if you want to leave(ignore) those less frequent use cases temporarily, >> there may have programmers want to post patches, to complete the missing in the future. >> >> So, there do have some gains on non-DT cases. >> >> - As you make it be able to compiled on X86 with the drm-misc-defconfig. >> - You cleanup the code up (at least patch 2 in this series is no obvious problem). >> - You allow people to modprobe it, and maybe half right and half undefined. >> >> But you do helps moving something forward, so congratulations for the wake up. -- Best regards, Sui