Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1812952lqt; Sun, 21 Apr 2024 10:24:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQhRJVkv3t/ktjSkHMKrjXHFUmp1uW8MHBLEgCncOL9SXoApN2i3lBATl4ZT3jo4ZpJIFB9zFiypYv3S0fmX/6CqzNKF0QAwAhJpulGQ== X-Google-Smtp-Source: AGHT+IE/4OpvKIt6ELruCAZw6ukmbF/nBh2OUYC649R92yebtAAzTKb/gWajqjm1KWDMbFKkbSFZ X-Received: by 2002:a2e:a988:0:b0:2d6:c749:17bc with SMTP id x8-20020a2ea988000000b002d6c74917bcmr6734331ljq.31.1713720280126; Sun, 21 Apr 2024 10:24:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713720280; cv=pass; d=google.com; s=arc-20160816; b=S/nKRdYTfz5lDBoModYD1GiNlrx/WfWPBHMn625Xl8j+sW3Poh2YtFXI+TBwHzczbc XlyjkOOctkgowysT8P0IRMqP1stlif5TS2UXHHL2SB3bcgyoohIkUyDDNmh3wVSO0wX5 j8fwdE4g8Q+DVGBIg1eLdDBVBHtiKC+q4OnPnC9en/6Ar6xjyeId9cKrimQcM9IWA85O PfrJue5GbO9KcRpkAGbzkJRIAxPfB8L0qUP72RlC+dKqaCK60IWXjfjAefmRElLdyIvu HUrTxl2uTkx56RpoUfyc57XuyQ/zOGnxtRmzGpdr8gsm3L4O0xXyDjyom6BBYaFRNBUr MAtQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qP4QRJgU1BApHuToLH0DTtNB0ZEyDCq59t66ZEJwTQg=; fh=27Q8nabhZDfVA1TFlCDEjX+UOHJGvYNJw1DFq9piVaU=; b=sGPVHx2MHDHKxx4zC9Ii/JhgLl3lSjIrEP7Etr7rCjFsRQmkYBPWaCY9h0sX8Qq57F 5K1CDxN1qGMQQIBUrWRG2yoFYFViRcky8tOavJ0ivbZayw8u+BQJHARtfODrg8hbXTp+ 1P9x2pSThSctcWhZPXTC/L7BstaoekPgA8uU1LbZZfEnL1uGXgE7UTgCr6dIOvuFvKec Jlgncx6uo08vsGu4Pvi7zta44JNYrC2kzzoL94CYcVv80fGeVwQ37OIxKAIb0Wneu+Wn iiUn4r9w+geAcKtZ+eVYm9ApBOJ9mY1Fff/iLhV5jrDkgSBlCzUmNW9w5UaOYa6fR/DI B/Dg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a9OGZHDQ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-152541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q22-20020a17090622d600b00a556b8692e7si4758062eja.259.2024.04.21.10.24.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 10:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a9OGZHDQ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-152541-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152541-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id A0E7F1F2103B for ; Sun, 21 Apr 2024 17:24:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13A9B36AEF; Sun, 21 Apr 2024 17:24:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="a9OGZHDQ" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 807977E6 for ; Sun, 21 Apr 2024 17:24:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713720271; cv=none; b=DBud9ms6UVIgo3Re0mZYCyjM+f9frPFNeuaJOdhSG+d+/44As3MhS4fPKYHgOa3l2aZCCMZYjWNZ0I5WMbmvFJ9WfbmIrQSKJPAflk/Yq3mgpCHt+OMcqtTDm3gwUGA+L/i1hkDR1yLyfcX6/VBR07PcGpnr3MMnBaI6nFG1xfM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713720271; c=relaxed/simple; bh=yHL0DbIQLkmeGdlCKpk8kjyfuAXLVJzOnT87LUKVr0U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AXidNYAOaLmMBhRJ0FAJ6XDOH2P5q2fCqAxinGlGMq4fGTqiAdWfzAJwCT6BvZE1CB/dYOTEf9SbdIJnHzR0Umhk2I4u8Rt5H3XmHG7ax8TtqdLArbYRHII+bD50khoAdBBuTaQ4niL//GWokk864WIh7kC9+fAVNEH4Tn5qmuA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=a9OGZHDQ; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-5176f217b7bso6018672e87.0 for ; Sun, 21 Apr 2024 10:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713720268; x=1714325068; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qP4QRJgU1BApHuToLH0DTtNB0ZEyDCq59t66ZEJwTQg=; b=a9OGZHDQKWoxmfR7m45beg+jR3nuU52r4x5ykQE4fxp7OoS6kxSYpU/aQTZfFvFPRi J0870j/SaQQMdTImnJXA3uhKdKD8wwJIjkMPLC5RS/FVElwAnJUsjdR+PuOITZ1Nb8lA fxCbd3TniFqIgN9Fy+QU45F+7iM2q2Bzpg3RoDMhElJ67A0TxwoVpIBdjyBYUaQf+S3j VDTYTP/6H9ev7LTUJVxsAaABxN71S9KlDBItG+2qL0LdFFr1mI/230u5IFcQNJyZ7UCW 6nlsthjy4AE/hLCn9eaIlYOuedRuB0uwpSKQJp0tVLabcSdO14mIjYuFI15moToDNWLA 1hnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713720268; x=1714325068; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qP4QRJgU1BApHuToLH0DTtNB0ZEyDCq59t66ZEJwTQg=; b=UsFui54/71aduBO1/S3kEl+tOlyuEIqlJMx91eHly3m2stY2i+iRrzPYDDEZTKJ2lG MpUQzYY1ljghS4KW0RVYshQMoXXFSHNMY1hzswnMyS94/obOP89gVFdPGzUedIHcUwCW clLS1559F9gOBRC0CUyXtOB2+QJqzjKGgIXuIodFYcS4NAxrLeSAKh4FC5vLQ26r+8OG /Y97Qfdh4lxWvSeY94JECONpvn4H1+OV2wkO+HuQF1tkAle3ogt9JtmFuvyOKAs36oqx Zrx+q9zcvSnk5BQasbc3wpcFICuiDEg6/vs20ccRTDLikdhVcUK0a1koFU2soHAodqdu q0uQ== X-Forwarded-Encrypted: i=1; AJvYcCUKwCoOws4hck9KvRCUH+2SgHkSaEFvvWjkt5ISvZezLnI+PetSWf0ny43Q9AVIe09wc53P6f1AYC7USRHVJkTl0GxnduMJwHodYvr4 X-Gm-Message-State: AOJu0YyBAsYPTgW67E5Za1Be2FfC1cjlS2s7b+0PrTTPCZ1Pj4OIymgj Jc1EZX7OdY/2n3N4lN8qOz/P8B4rkLSgznY99rZkpc1tKj4omE4CczZ7n4R8Qtc= X-Received: by 2002:a05:6512:370f:b0:518:c8e1:478 with SMTP id z15-20020a056512370f00b00518c8e10478mr5802469lfr.58.1713720267513; Sun, 21 Apr 2024 10:24:27 -0700 (PDT) Received: from eriador.lumag.spb.ru (dzdbxzyyyyyyyyyyybcwt-3.rev.dnainternet.fi. [2001:14ba:a0c3:3a00::8a5]) by smtp.gmail.com with ESMTPSA id u18-20020ac25192000000b00518d5c5740esm1507389lfi.180.2024.04.21.10.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Apr 2024 10:24:26 -0700 (PDT) Date: Sun, 21 Apr 2024 20:24:25 +0300 From: Dmitry Baryshkov To: Dharma Balasubiramani Cc: "andrzej . hajda @ intel . com" , "neil . armstrong @ linaro . org" , "rfoss @ kernel . org" , "Laurent . pinchart @ ideasonboard . com" , "jonas @ kwiboo . se" , "jernej . skrabec @ gmail . com" , "maarten . lankhorst @ linux . intel . com" , "mripard @ kernel . org" , "tzimmermann @ suse . de" , "airlied @ gmail . com" , "daniel @ ffwll . ch" , "robh+dt @ kernel . org" , "krzysztof . kozlowski+dt @ linaro . org" , "conor+dt @ kernel . org" , "linux @ armlinux . org . uk" , "Nicolas . Ferre @ microchip . com" , "alexandre . belloni @ bootlin . com" , "claudiu . beznea @ tuxon . dev" , "Manikandan . M @ microchip . com" , "arnd @ arndb . de" , "geert+renesas @ glider . be" , "Jason @ zx2c4 . com" , "mpe @ ellerman . id . au" , "gerg @ linux-m68k . org" , "rdunlap @ infradead . org" , "vbabka @ suse . cz" , "dri-devel @ lists . freedesktop . org" , "devicetree @ vger . kernel . org" , "linux-kernel @ vger . kernel . org" , "oe-kbuild-all @ lists . linux . dev" , "Hari . PrasathGE @ microchip . com" Subject: Re: [PATCH v8 2/4] drm/bridge: add lvds controller support for sam9x7 Message-ID: <2ct5tav52onwd6ceuzqbbam4qsqfvxdjpsrbn72jbsyjtcgtsl@j3d7piqqheel> References: <20240421011050.43265-1-dharma.b@microchip.com> <20240421011050.43265-3-dharma.b@microchip.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240421011050.43265-3-dharma.b@microchip.com> On Sun, Apr 21, 2024 at 06:40:48AM +0530, Dharma Balasubiramani wrote: > Add a new LVDS controller driver for sam9x7 which does the following: > - Prepares and enables the LVDS Peripheral clock > - Defines its connector type as DRM_MODE_CONNECTOR_LVDS and adds itself > to the global bridge list. > - Identifies its output endpoint as panel and adds it to the encoder > display pipeline > - Enables the LVDS serializer > > Signed-off-by: Manikandan Muralidharan > Signed-off-by: Dharma Balasubiramani > Acked-by: Hari Prasath Gujulan Elango > --- > Changelog > v7 -> v8 > - Assign ret variable properly before checking it for err. > v6 -> v7 > - Remove setting encoder type from bridge driver. > - Drop clk_disable() from pm_runtime_get_sync() error handling. > - Use devm_clk_get() instead of prepared version. > - Hence use clk_prepare_enable() and clk_disable_unprepare(). > - Use devm_drm_of_get_bridge() instead of devm_drm_panel_bridge_add(). > - Add error check for devm_pm_runtime_enable(). > - Use dev_err() instead of DRM_DEV_ERROR() as it is deprecated. > - Add missing Acked-by tag. > v5 -> v6 > - No Changes. > v4 -> v5 > - Drop the unused variable 'format'. > - Use DRM wrapper for dev_err() to maintain uniformity. > - return -ENODEV instead of -EINVAL to maintain consistency with other DRM > bridge drivers. > v3 -> v4 > - No changes. > v2 ->v3 > - Correct Typo error "serializer". > - Consolidate get() and prepare() functions and use devm_clk_get_prepared(). > - Remove unused variable 'ret' in probe(). > - Use devm_pm_runtime_enable() and drop the mchp_lvds_remove(). > v1 -> v2 > - Drop 'res' variable and combine two lines into one. > - Handle deferred probe properly, use dev_err_probe(). > - Don't print anything on deferred probe. Dropped print. > - Remove the MODULE_ALIAS and add MODULE_DEVICE_TABLE(). > - symbol 'mchp_lvds_driver' was not declared. It should be static. > --- > drivers/gpu/drm/bridge/Kconfig | 7 + > drivers/gpu/drm/bridge/Makefile | 1 + > drivers/gpu/drm/bridge/microchip-lvds.c | 229 ++++++++++++++++++++++++ > 3 files changed, 237 insertions(+) > create mode 100644 drivers/gpu/drm/bridge/microchip-lvds.c > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry