Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2794367ybz; Mon, 27 Apr 2020 04:45:51 -0700 (PDT) X-Google-Smtp-Source: APiQypKW8baM0/cqbWZxju8KZ/1ePty2q8VtkuN/pBPeznKJ2pZX3nR4CX96SbF5GVjfqlrfEEsI X-Received: by 2002:a17:906:f295:: with SMTP id gu21mr19902403ejb.83.1587987951111; Mon, 27 Apr 2020 04:45:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587987951; cv=none; d=google.com; s=arc-20160816; b=w9jUEc6cVbiv0vXdhMw71fjeGab85s7JvOvoJ9gNSTb8Q461HFyWpnDeH3D9BXFx7m 4JIKRKfvG7UCC4KncfTeUUMdIb/732tY4tXOqpI4L8+i0tVtwpn3d1B/D8jIRmsdxxLl nhNJ04SoFoo098ddvC2lfVtryq25k/iotuMBINh0+vFUGJVjoNXiGc6Xeg4A1wEnLrzO 5fIKflmpakZAWjon0Ji4cP7vlKMvyiDaoHed6TS78Z8OnziW2HeOnIyFvxihBv7tFejS KbDftucgtYc+xJblAr7aaOyn0z/DO379Fgu+VCUO7Di5i7kxOzT01fOvcOmGn8cY1FsB PUgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=pa3J4XQ5Erz+YsjPUom6zR5EcfQGkjqMNLYq1dzlDmY=; b=fxZF9odvNjPFY7Ky6hPVQkUGxMB/feOrLuTs+EOf0m6dZhtUedL4B++uOxSuTXTXEQ Hac/5EBgNwpshaVBMpb05imIIyMGuX+VmNzamNnJrcWLy6QKykxjWL3Ofh5jZuz1fePE /F1scwcb4Sq0DsNkxhrunUSMVY7ofI52D6mblVH5I+oQ0YTkMaxGCAGemg3VNAPpiMzI vHjk3QNo72a1bkoPIPy7rv45eTH6yzyyXB+ldtIPXbDxOdrOsDPhDZAfOcTTkCM4LTDp cS/kyhK738pboHpcXlPsNhbwoRZGcE3Cybn6H/lrDnBGfhRFp2U0rVbeLjTZZMH7UrHY 5e4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fMxf9o9n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly26si5655630ejb.190.2020.04.27.04.45.26; Mon, 27 Apr 2020 04:45:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fMxf9o9n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727089AbgD0Llw (ORCPT + 99 others); Mon, 27 Apr 2020 07:41:52 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:54092 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726907AbgD0Llp (ORCPT ); Mon, 27 Apr 2020 07:41:45 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 03RBffL2013333; Mon, 27 Apr 2020 06:41:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1587987701; bh=pa3J4XQ5Erz+YsjPUom6zR5EcfQGkjqMNLYq1dzlDmY=; h=Subject:To:References:From:Date:In-Reply-To; b=fMxf9o9nAlVKqkJL0m0k0nAPeavwPckk59gQOUpabW/p8S21hdkm5CuGorHASsNDb 5K6tDUBnWDr9vhVk1OZ7r7IlAQ3yvqA85ZnRYKTrCKeCjLgJriihQ62RiqiRZV6duR b6utx9JRNygshhSFeyDSa5hMq1lQwgzvDLK5mJFw= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 03RBffCY027427 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 Apr 2020 06:41:41 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 27 Apr 2020 06:41:41 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 27 Apr 2020 06:41:41 -0500 Received: from [127.0.0.1] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 03RBfcPU058972; Mon, 27 Apr 2020 06:41:39 -0500 Subject: Re: [PATCH 2/3] arm64: dts: ti: k3-j721e-main.dtsi: Add DSS node To: Tomi Valkeinen , Jyri Sarha , Nishanth Menon , Rob Herring , , , References: <20200422091512.950-1-tomi.valkeinen@ti.com> <20200422091512.950-2-tomi.valkeinen@ti.com> <47b7f858-a8d9-1c3b-4dca-2cc493f6730f@ti.com> <217c0c14-f4fb-7321-9f57-205df0cd01fe@ti.com> <9a4b1d0a-c871-2280-8d22-196730e9385b@ti.com> <3eb05f6d-523f-f7e5-a0e9-d47b852fe079@ti.com> From: Tero Kristo Message-ID: <6427a827-9175-75ab-72fb-a62a21795bf3@ti.com> Date: Mon, 27 Apr 2020 14:41:37 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: <3eb05f6d-523f-f7e5-a0e9-d47b852fe079@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/04/2020 14:37, Tomi Valkeinen wrote: > On 27/04/2020 14:15, Tomi Valkeinen wrote: >> On 27/04/2020 14:10, Jyri Sarha wrote: >>> On 27/04/2020 13:51, Tomi Valkeinen wrote: >>>> On 27/04/2020 13:37, Jyri Sarha wrote: >>>>> On 27/04/2020 13:09, Tero Kristo wrote: >>>>>>> +        status = "disabled"; >>>>>> >>>>>> Again, why disabled by default? >>>>>> >>>>> >>>>> tidss device is not functional without a defined video-port. The >>>>> driver >>>>> is not implemented in a way that it would handle a broken >>>>> configuration >>>>> gracefully. >>>> >>>> Then we need to fix it. The driver should handle the case where there >>>> are no ports defined just fine. >>>> >>> >>> Just by reading the code, I would say that currently the probe would >>> fail with returned -ENOMEM after calling drm_vblank_init() with zero >>> CRTCs. >>> >>> So should the probe fail gracefully and silently, or should we try to >>> register a DRM device with no CRTCs? Is that even possible? >> >> My first thought is that the driver should exit probe silently with >> ENODEV if there are no outputs defined (but, of course, with >> EPROBE_DEFER if there are outputs which haven't been probed yet). >> >> It gets a bit more complex if we ever support writeback, as that can >> be used as mem-to-mem without any displays, but I think we can ignore >> that for now. > > In any case, that's not the reason for status = "disabled", so that > discussion is not related to these patches as such. > > The reason to have DSS disabled is just to prevent pointless driver > probing. When a board dts or a DT overlay adds a display, the DSS DT > node has to be modified anyway to add the DT graph and the panel/bridge > data. So one can as well add the single line of "status = enabled" there. Ok, thanks for the explanation, queued all three patches towards 5.8 based on that. -Tero -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki