Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1793141rdf; Sun, 5 Nov 2023 14:54:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYiKXLRnVzJG9L+SkW7geXTHhJOMcSnbIPTlOhEKcuEIN7bUV6BZylD9ndZBbSbp9O/sFf X-Received: by 2002:a05:6a21:7785:b0:180:db7b:23f2 with SMTP id bd5-20020a056a21778500b00180db7b23f2mr25768660pzc.61.1699224891878; Sun, 05 Nov 2023 14:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699224891; cv=none; d=google.com; s=arc-20160816; b=xfaDX0jGpyVVn1zgLYuSbtE3a6C9ejpUDfWAdRa15CrHoN2mPDBzZMpUnf9niqdaU6 zEEIMAteZSYy6FPe7JV24UvgjQoH4mQ10+2jJhRguBwj85GsWNkcHkigNia81ZBsQq60 CBhlSJ/8UPTmg8uRqjYtxko2dEv6N5L8cVF8XlbMQrsl4/zmKAGlttFcbPVWIxJl/W1A gFt19Nytymyq1pBUWKKbetbPhrX9vJ8rIdC7dDC4aD3WKisTqN3PgP+FBjQ9jrL7DnuB jSCgl0vrCWC+Cobob1GHu1xdFZAmX2L8L3OaeM3DhlzmParLYUuw/hvYoNgBwlrd6H3I 3+Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lqLXCUI2xJewIg70mzRVeIdEwA6+WX2cg4OGoYFu7vg=; fh=5C3CAkIfBsG8EK8jEaBmpiwV3a9azH+DT0pG9NOmIu4=; b=EIIAUIHqo3pVlvjS62nUTKrWG9RwBXqGaaspxyvLZF6Oz/2H5oi+VZee3YF1RcNQ7L p8nqeaFNud0Fr4UuB40lYgexRSugastbTjHmT0k350J+P1nlVgw8/FUhTsLCRFAge3WX vkfTpIK52girSljum49uSzd8zMLi3ad7x0LDM9AuJ2P95128GJY+34nS3l4sRZDXvLyT DYl0n6ucMbZZXIqig5l4fTaRMoLrSQd8DeGV83fps/E4pGuS+v/t+h2o+ctRmKazLmzN dPRl95aTN1lo17sv2rCZsl1bGBwh9vLYpGG2Yxa8WZFLY3sGd2Z4BggJQOoK0mGkN6JE VmSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Ufh7ZOGi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id o7-20020a656a47000000b00577fc59373fsi6767061pgu.296.2023.11.05.14.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 14:54:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=Ufh7ZOGi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 94FF2805D54E; Sun, 5 Nov 2023 14:54:49 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbjKEWyg (ORCPT + 99 others); Sun, 5 Nov 2023 17:54:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229900AbjKEWyf (ORCPT ); Sun, 5 Nov 2023 17:54:35 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5CD5E1 for ; Sun, 5 Nov 2023 14:54:32 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CC1785AA; Sun, 5 Nov 2023 23:54:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1699224852; bh=pcacsgb3OWxdK2khmiavqPxLlnW99wbidArlPanL5Q4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ufh7ZOGijsOwjyrtF/B1P4um8Wdp7NK3TFok4eiqodaZzQO/FKij2OFCUmYNMgiM7 ClkfagKSsDhWIdblmbV0CIBM3cfr4+XFXE/aq2uDFd5VkisHHkcDpJ5vhlNo8rSetm Uk01uTd1vMlrYw0kM3/DxrFA0NH+qTIXBCL4rRT0= Date: Mon, 6 Nov 2023 00:54:38 +0200 From: Laurent Pinchart To: Tomi Valkeinen Cc: Aradhya Bhatia , Devarsh Thakkar , Jyri Sarha , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/10] drm/tidss: Move reset to the end of dispc_init() Message-ID: <20231105225438.GB15635@pendragon.ideasonboard.com> References: <20231101-tidss-probe-v1-0-45149e0f9415@ideasonboard.com> <20231101-tidss-probe-v1-4-45149e0f9415@ideasonboard.com> <20231101135749.GT12764@pendragon.ideasonboard.com> <71056358-f91e-4a88-a979-33bfe157289a@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <71056358-f91e-4a88-a979-33bfe157289a@ideasonboard.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 05 Nov 2023 14:54:49 -0800 (PST) On Thu, Nov 02, 2023 at 08:40:10AM +0200, Tomi Valkeinen wrote: > On 01/11/2023 15:57, Laurent Pinchart wrote: > > On Wed, Nov 01, 2023 at 11:17:41AM +0200, Tomi Valkeinen wrote: > >> We do a DSS reset in the middle of the dispc_init(). While that happens > >> to work now, we should really make sure that e..g the fclk, which is > >> acquired only later in the function, is enabled when doing a reset. This > >> will be handled in a later patch, but for now, let's move the > >> dispc_softreset() call to the end of dispc_init(), which is a sensible > >> place for it anyway. > >> > >> Signed-off-by: Tomi Valkeinen > > > > Reviewed-by: Laurent Pinchart > > > > But do I understand correctly that the device isn't powered up at this > > point ? That seems problematic. > > Indeed. It's fixed later in this series. > > > I'm also not sure why we need to reset the device at probe time. > > That's the usual place to do a reset, to make sure the HW is in a known > state, is it not? Where would you place it? The first time the device is used, or possibly every time it is resumed ? It seems that you're resuming it at probe time for the only reason that you want to then reset it. Resuming it at probe could get entirely skipped. -- Regards, Laurent Pinchart