Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp225884lqp; Tue, 11 Jun 2024 22:23:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2AlQigJpHtHYdmO1KzWMsKIBPUBGuzMqeeK3wzfxgFtc9K7EQ3gG4iZYzNzoc7ebP+eJLq2iWK9IDBmdV8X/QUzAHk9okBDk85/cKEw== X-Google-Smtp-Source: AGHT+IG00t1P6SjaHLv1ONEKAHy9rJyEb3r3hn3xia9Ok1TeE9+ZKVY2FYzC2M4Y01pDs+44g7Mj X-Received: by 2002:a05:6808:2118:b0:3d2:1777:358e with SMTP id 5614622812f47-3d23e0cd5bfmr1110837b6e.56.1718169787840; Tue, 11 Jun 2024 22:23:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718169787; cv=pass; d=google.com; s=arc-20160816; b=hbet9p8RFcYOdaysQfX7PccTjyp0obq4dgMa/ssTj7fPMXj1caNinCF2y+TTDZE5YC k3B+3GS3Nv1skk+I4Yb5z+dC6cnkclQ37USR6P0GfCMZhZxVmTa6wY/+ouiuMFvWxS/C RBYhzAYHrzu/tbY7S5jjqY5GPJ9xnQCZK70nxQ5nn71vEvKNPFwlCbEhPIqXDem/sb9N wkdiqMMpdVN74kNonx3l1PsShO0KETmWhMYsORUezr/nYo9ZQFRvZ4uvzbFMCr8nE9DU 6fi7VrsEbcdDvwOb8lBF8tcrlmK3U/QHFpv3Pu+RpgtLyHhBLwrl8VutkhM4gWaQOhDO PS4A== 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:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7dhCBqMpnOFGD2givG/XRMTkcJbao4lg4u/p3lcH/tI=; fh=ELafx/K9d2zbQR5rWgqFmtoQEUBBtzbZ4ZJViuSxbu0=; b=Od3jlQHLA5o5NUhbcz2X9vii5tkkNWMG06lmry732uW/Bm3PBQB3ciWvLMJ8blfz0c VbGlQQbYKnILCdRCvmB1dWPza0tMeuWUqKheaJ4sGR4pqPESxz2/Nx+DT50+6nhRepHe M1tWZVTM1jh48leAOLdDKS5qph2qYW2TtsrzC2Dpoywuw+myXD5xrZOm/lf0HvUsy2lg FMY2aerAcGstfiNXPnYlPgJb/09k7c86KkhWNlwdjqIPPIBTDzB902KwcNXm82Q0r9ue cz9pKbFgQ/9G1lkoEdl+fBhwTlIYbms5iFgS6z5UiA+fz0+Ot/6hEWXqJYPDZfnXPETh K1Dg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rQIhdXDt; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-210944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e3f493e284si8613577a12.823.2024.06.11.22.23.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 22:23:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rQIhdXDt; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-210944-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210944-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 7287D283B55 for ; Wed, 12 Jun 2024 05:23:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87367381C4; Wed, 12 Jun 2024 05:22:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="rQIhdXDt" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 DBF9E36AF5 for ; Wed, 12 Jun 2024 05:22:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718169770; cv=none; b=Njdoq+cPlM6IvPmY01YpFbTKzx62eW0Njh0NB5wYLR7ujsjv1iRw9lDhYcP5nvl7hf3bmM6p6fYvfdjqt53yZ0CHFpY+QgaYdPR0xfdhpWG4mBBrbnGbBoRPWhwFqq9psxpy27Ic/g3u9vZnxwTtSNHmkYLDqP3u7kZLR5dMpAM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718169770; c=relaxed/simple; bh=35UcWIWYEQHwpKXq+bxmCMU3dqH3YGp239618H0CEGE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ORv7IKoTbqLAREadORJ+/DcRgx73o3TxBa50HbNnYqYAEO6mdcbjnFXmpkSKGUKukmCEcFgdW7VQeMV0ZQRl08KegejA9Obrz64C1WWN/H0sSray04HFWxWr8AUtIcLpEC79b7diFtU1vUXPH1gQ9cdYDoZXH8ylS/21vi+y2r4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=rQIhdXDt; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45C5M1ub058704; Wed, 12 Jun 2024 00:22:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718169721; bh=7dhCBqMpnOFGD2givG/XRMTkcJbao4lg4u/p3lcH/tI=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=rQIhdXDtWcbshKXgo7q4vYWzEJE7LgNbPs6k8Qg15WxKCJ2vA1LavmPYy6O6qCFKO enjeCR9AttWLyrigNRDXU/wZ1kl/x7X6ut8QoOr+dQT6WhZATc0zHaxsPKaXuLCNd3 US0ffus9ealSwtJkvnDRaXRUqBCUI/qVjLa9T4Ig= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45C5M1PE010122 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 Jun 2024 00:22:01 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 12 Jun 2024 00:22:00 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 12 Jun 2024 00:22:00 -0500 Received: from [172.24.227.55] (jayesh-hp-probook-440-g8-notebook-pc.dhcp.ti.com [172.24.227.55]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45C5Lt3U089569; Wed, 12 Jun 2024 00:21:56 -0500 Message-ID: Date: Wed, 12 Jun 2024 10:51:55 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [v4,1/2] drm/bridge: sii902x: Fix mode_valid hook To: Sui Jingfeng , Sam Ravnborg CC: , , , , , , , , , , , , , , References: <20240530092930.434026-2-j-choudhary@ti.com> <20240531133324.GA1715839@ravnborg.org> <955a6d94-9a4c-4f7d-974c-819261579f14@linux.dev> Content-Language: en-US From: Jayesh Choudhary In-Reply-To: <955a6d94-9a4c-4f7d-974c-819261579f14@linux.dev> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hello Sui, Sam! Thanks for the review. (Sorry for delayed response. I was OoO last week) On 31/05/24 19:34, Sui Jingfeng wrote: > Hi, Jayesh > > > On 5/31/24 21:33, Sam Ravnborg wrote: >> Hi Jayesh, >> >>>> + >>>>    static const struct drm_bridge_funcs sii902x_bridge_funcs = { >>>>        .attach = sii902x_bridge_attach, >>>>        .mode_set = sii902x_bridge_mode_set, >>>> @@ -516,6 +529,7 @@ static const struct drm_bridge_funcs >>>> sii902x_bridge_funcs = { >>>>        .atomic_destroy_state = drm_atomic_helper_bridge_destroy_state, >>>>        .atomic_get_input_bus_fmts = >>>> sii902x_bridge_atomic_get_input_bus_fmts, >>>>        .atomic_check = sii902x_bridge_atomic_check, >>>> +    .mode_valid = sii902x_bridge_mode_valid, >> >> As you have the possibility to test the driver, it would be nice with a >> follow-up patch that replaces the use of enable() / disable() with the >> atomic counterparts. >> >> enable() / disable() are deprecated, so it is nice to reduce their use. > > I agree with Sam. > > Please using atomic uniformally with a follow-up patch, the mixed > using of atomic API and non atomic API is a little bit confusing IMO. > > I will change the enable and disable to their atomic counter parts in the next revision. Warm Regards, -Jayesh