Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp370205pxb; Sat, 10 Apr 2021 05:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3NwegUxXFw1AsXZsyLlISOqPoV01UGTEPC+j+Zkihzy5glVBuYeADF7g78qtSnM8FkqVc X-Received: by 2002:a17:907:6e1:: with SMTP id yh1mr5245007ejb.486.1618058497159; Sat, 10 Apr 2021 05:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618058497; cv=none; d=google.com; s=arc-20160816; b=bNrtOdXqqgBWT0OY12oS0ici8D82aEKveg2SUoSc4wbZgd/Ma3IRuuDiCY2JkHwqG0 ZvXNpXDPPNjrAUQnrervc+3xl9q8dYZ1t/igNI8d0zsVA6jRQPJ5Tg7M1EIKgyIFiQIc 4GKuPBQ4qs3zexwHZ4NrZPBhHbf02kMP/KNa2LSSx7f3unffGDRzh4TkrfJFtWFMZ1hQ MICLaZY+onjYj0ru8xbduW65d8lrLdZU0r2FZqrOQY8RYTbntcajAWX6RTkUhrQrjDRR H2hpw1R72uifonT+iIwdB/vlv/yXkerXReEImUewuOMfyQ0OqfvtXKgLiUTpyNdFmRJ6 Ub5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=k8kbv7tLUPin7vEZz6Y8S8Ho2i9EHLVgMoQhgUpPZTc=; b=vbVz0gE6GNpa9JTIezdnPiIcieDKRcoI1lYIi4pLEOlB8RMxPUH82h9BqLCIcQCcdg yvc1n4tu4wD9cZWAd5ETndlRrLZrICg2XVSKO8nLXx9f9fxKepM22oG+WFb7iNk9OO6k RZ6Jvp7bx1kitp27qJs4ZZq4ucRjuGg7/O+yIn4Jv+vtCOCLEbN082GF7DPbl73qSVLf RNHzCrsvDXQG5+x0TUEi8rVE9fAAlktXruYw1THwFv/hr28qOhzMvFtewKN9UP/zvnYW 2SHFlnn2bPB8JM2zoONg3bkzrTZMe+SfnPYmO+f5v0Gx576LVB26O2W22swp3pi5C9xo CM4g== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si4229358edb.593.2021.04.10.05.41.11; Sat, 10 Apr 2021 05:41:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234262AbhDJMkd (ORCPT + 99 others); Sat, 10 Apr 2021 08:40:33 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:45742 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234091AbhDJMka (ORCPT ); Sat, 10 Apr 2021 08:40:30 -0400 Received: from mail-ed1-f69.google.com ([209.85.208.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lVCuL-0002YQ-B3 for linux-kernel@vger.kernel.org; Sat, 10 Apr 2021 12:40:13 +0000 Received: by mail-ed1-f69.google.com with SMTP id o9so574829edq.16 for ; Sat, 10 Apr 2021 05:40:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=k8kbv7tLUPin7vEZz6Y8S8Ho2i9EHLVgMoQhgUpPZTc=; b=OO8qVJuU9zI7kl4q5wh2Hw+t1/mTfN3s30cQPpEeiJhPMBvb1G/Hsf1hyPbw2ZlQDX xYTDS/ebiUYyvQmoeXRJfFScPbW5B3677INIX3WOnGxvGtaKsWLoKe9kolUKwao7W0Rc /yGuu5PYMvA+ccD298AR6l7P5KPYEAUW/wICHSseaBXjtOA/4Fdm5LX+KwjVR7zQ3Jvz VKoGgb6zd+NjOcXa9W8UoP1leDUXK/fgfShjLBPIZQ5IhIJ5et5RjuUBhFxgafp4ij0e IblXqWjM7lJBgTAGCF1S+JddRK2732PSWjWuXC0KYYks5BfK2r9ooXxmUZdeJ3VXVxlM flCw== X-Gm-Message-State: AOAM532HWv8twvu38+3LB0b86UhwMzS7CMCdp5LcpIXY5wvSIU4t61Ps pRNif2QYqu1Yo1ZM5b3D6mRhB2qKptzlZnNWVnlys8HaH4nPpEhiOkUJShTRMyDu2GpjeZ2qnpI qfLI6ubpBhccqcgm4NvWOL8IFk8iYMVKCC92zmflUuQ== X-Received: by 2002:a05:6402:148a:: with SMTP id e10mr21482429edv.377.1618058413094; Sat, 10 Apr 2021 05:40:13 -0700 (PDT) X-Received: by 2002:a05:6402:148a:: with SMTP id e10mr21482422edv.377.1618058412954; Sat, 10 Apr 2021 05:40:12 -0700 (PDT) Received: from [192.168.1.115] (xdsl-188-155-192-147.adslplus.ch. [188.155.192.147]) by smtp.gmail.com with ESMTPSA id d6sm3149960edr.21.2021.04.10.05.40.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Apr 2021 05:40:12 -0700 (PDT) Subject: Re: [PATCH v5 04/16] memory: mtk-smi: Add device-link between smi-larb and smi-common To: Yong Wu , Matthias Brugger , Joerg Roedel , Rob Herring Cc: Evan Green , Robin Murphy , Tomasz Figa , Will Deacon , linux-mediatek@lists.infradead.org, srv_heupstream@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org, youlin.pei@mediatek.com, Nicolas Boichat , Matthias Kaehlcke , anan.sun@mediatek.com, chao.hao@mediatek.com, ming-fan.chen@mediatek.com, yi.kuo@mediatek.com, eizan@chromium.org, acourbot@chromium.org References: <20210410091128.31823-1-yong.wu@mediatek.com> <20210410091128.31823-5-yong.wu@mediatek.com> From: Krzysztof Kozlowski Message-ID: Date: Sat, 10 Apr 2021 14:40:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210410091128.31823-5-yong.wu@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2021 11:11, Yong Wu wrote: > Normally, If the smi-larb HW need work, we should enable the smi-common > HW power and clock firstly. > This patch adds device-link between the smi-larb dev and the smi-common > dev. then If pm_runtime_get_sync(smi-larb-dev), the pm_runtime_get_sync > (smi-common-dev) will be called automatically. > > Also, Add DL_FLAG_STATELESS to avoid the smi-common clocks be gated when > probe. > > CC: Matthias Brugger > Suggested-by: Tomasz Figa > Signed-off-by: Yong Wu > --- > drivers/memory/mtk-smi.c | 19 ++++++++++--------- > 1 file changed, 10 insertions(+), 9 deletions(-) I understood this is a dependency for other patches, so: Acked-by: Krzysztof Kozlowski If I am wrong and I can take it via memory tree, let me know. Best regards, Krzysztof