Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp214340rdb; Thu, 19 Oct 2023 02:08:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrW9E1c8hNX0s4UJ8PvLYWlh33MqauCjZ5lm4qB5dxnUTZXd4yw/APOzhvdxNiH5TQkjpd X-Received: by 2002:a17:903:487:b0:1c9:d940:78ea with SMTP id jj7-20020a170903048700b001c9d94078eamr1484504plb.22.1697706491595; Thu, 19 Oct 2023 02:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697706491; cv=none; d=google.com; s=arc-20160816; b=WDQtgrgvY7Pk6xbPFdGDnPHNyCv85amVVUYGChFGulPV4GgEfgn/6Yy8CFVVwt3ygj FD7U7jaCO5Xvx4wGQhG+hS25mGmTEh7zc0u0eD13QeP21X5/WPclaXsJVaTtJJKY+8oq DNPaiWD8ZW4DaVmlqkM/CVLUzgx+fyIb8Ja1RE/Rlp4rq8VKYmWaGlGJ64ccZSJUXa1D QRv9Wf8geEXv5KhL1B5gHOQWh6kghdSAXe37zjf3Lb6FAWC9J0DQ1EEcYKf4V2/79Q6u 5tc8wCvkgivcX7asEHOk/BjFSA5OhmV+0BpkeG2X6rOJijf/Dpzc1bHEqR4kQfs4VBz3 x4vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=S7KO5S+b5mp49mpy1BBk5vDyjhtRVL3Y9AIN7tGvWpo=; fh=h2rWxMY4SxvOMEqGrV/xchcQzxd0rIJ9JihK4jb3J6w=; b=08E0If2KXo8gz3YV2KbWqEH6IMZ95tGejOO6rZ4X1RAIxC0iKMxPTig9X443cHjJ98 Ly+XauIcrXxUKjFaG3l4OxTILYQ7EraI+mm0SSP4F+SbnF1KLWtMA2OMXiSM27aQztRE 6jkq5/itK4/b/30xIlf3acIaKK7e9hXaES58veJuhdu/BMzM9d0Q9PUr5lpgm2ZTM2oO /08rA1Q7TYQKEr1NM46BM/+AHce7PQFrFKIPP0qg+3a3H6UVvg5ECLZb63qiRHgAhtUo g/ozKNLCR6rYMNuV/MTc9eUS96xmel8gTWMoBkejbg1kDRkrrGLkNs//S3hO3XWWDL8S yYsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FDlbibuI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id b11-20020a170902bd4b00b001c77a0c5a61si1629987plx.551.2023.10.19.02.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 02:08:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=FDlbibuI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0BA74826EB85; Thu, 19 Oct 2023 02:08:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235274AbjJSJH5 (ORCPT + 99 others); Thu, 19 Oct 2023 05:07:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232979AbjJSJHx (ORCPT ); Thu, 19 Oct 2023 05:07:53 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46905129; Thu, 19 Oct 2023 02:07:50 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 12B4D6607323; Thu, 19 Oct 2023 10:07:48 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697706469; bh=i4wN4m4h2lJzPVgsUhjbrbiElmhqA0fmSzmkzrYrPWo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=FDlbibuIvhnNoxRHgtGqCpkWiPIo+sf4Cym/EB/rZhahxHY6GN91Y9Zvx9lACMTP0 0n50RaX+pPgmbBj+Og56zGRzTMqp1ZSb5u2f2yeeWirimR40+VEctVjtGU7rsJpmvw Ygzh8rR+xWHPzy6ZBtqzNegZCdVi5481tBqSfxX7+mud+xcGAwckpl/+19oi3d4xBX th2O3dEsmzcWw7ccBsqC8pyZSYzlIQPWJalIIu26qTle5PXYUVccoEiH17lTHeuNT4 tGxRewA1F5G8O/t4PDkWlfcGzNAI0DIOhq2O/LgjXr3US9DQwcja4foO5pMJigTNc2 jiI2/SYOHsWtA== Message-ID: <0815ab39-8796-4719-bec5-489aace1cb7c@collabora.com> Date: Thu, 19 Oct 2023 11:07:47 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 14/24] drm/mediatek: Power on/off devices with function pointers Content-Language: en-US To: Hsiao Chien Sung , CK Hu , Krzysztof Kozlowski , Matthias Brugger , Rob Herring Cc: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Fei Shao , Sean Paul , Johnson Wang , "Nancy . Lin" , Moudy Ho , "Jason-JH . Lin" , Nathan Lu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20231019055619.19358-1-shawn.sung@mediatek.com> <20231019055619.19358-15-shawn.sung@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20231019055619.19358-15-shawn.sung@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 02:08:09 -0700 (PDT) Il 19/10/23 07:56, Hsiao Chien Sung ha scritto: > Different from OVL, OVL adaptor is a pseudo device so we didn't > define it in the device tree, consequently, pm_runtime_resume_and_get() > called by .atomic_enable() powers on no device. For this reason, we > implement a function to power on the RDMAs in OVL adaptor, and the > system will make sure the IOMMUs are powered on as well because of the > device link (iommus) in the RDMA nodes in DTS. > > This patch separates power and clock management process, it would be > easier to maintain and extensions. > > Signed-off-by: Hsiao Chien Sung Reviewed-by: AngeloGioacchino Del Regno