Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp588799ybl; Fri, 13 Dec 2019 01:12:30 -0800 (PST) X-Google-Smtp-Source: APXvYqxyUYsvcdGa4RU5zydCpozhmOHgh8lDrd8cqdm0PGk7jSY085qeC95hmKGQxA2hG03wOHXr X-Received: by 2002:a9d:6f85:: with SMTP id h5mr13762434otq.19.1576228350258; Fri, 13 Dec 2019 01:12:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576228350; cv=none; d=google.com; s=arc-20160816; b=NmjWeV4CTwj1YokfOpuEmbfPifFwwGwJ9fQy+LXzAcl9Fh9FAIv9CJWuPtHlhQW4Vj BmHojRTzaUEC6IzMRn7Fnnpipcvqmjvys0dSBbSfSDItZ2kec2GaJgCfN9Sa3sNny9OM wWYNSJQtYea0CPBbNPrksD0BR7ZYQ2Ug0Mb7ZmiNR6ATwToKCX+w2OM6yU2tMw+dEOiV 0BHwqmmTkvMnq/9YvD5LrZfUwmjJcOCRD3KC0rnN+PRFObVXwsoR4dA4tQLmexcicgqC 2O5G7U1Wa3DEWU49eDWUD+BmAb0sQVQUedgRchXtJOiGIw+ZRYP1OByLz7auIPABf9fX Mbqw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0yehFparESOAYtBHbkhuNFqrZ0ymdP9wHcWW3IPfXfY=; b=GnT6Rkuks03P+gIebDHhnrRgajjGT79B50NvM5Q8WGjeQ0Cx7k1a1mKNgKSjWrV70i ifKKwWo6+4pvOioT038TTVy5TEkKrkMwpxAlEyTB5p0iaKkv10LRz8h58KQP+y7fAbgr rxIlZj6tYDadRT+0fEaqdzh8BAjpnA03gSzaLkJlvH3fpRh+FoXKmYfJ91wqeo2Us6p2 n2DDnCmRbbRgIMdbLrvsEbdACRnYjP8pVSOZKenn/1IjjEDiKRTUXh8lgsqqlwM3xqkJ HQ488B/SQjVqGNTwPtAsfsq/FcJDEJ4xG3g6AXfgNRwx51g9UiNOsd/tqYwNxfRFyKQz oovA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="S/XRFDFV"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si4872060otp.161.2019.12.13.01.12.18; Fri, 13 Dec 2019 01:12:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="S/XRFDFV"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbfLMJLg (ORCPT + 99 others); Fri, 13 Dec 2019 04:11:36 -0500 Received: from mailgw01.mediatek.com ([216.200.240.184]:52065 "EHLO mailgw01.mediatek.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726345AbfLMJLg (ORCPT ); Fri, 13 Dec 2019 04:11:36 -0500 X-UUID: 00dbb303afb443989bb03d9adf4e53d5-20191213 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=0yehFparESOAYtBHbkhuNFqrZ0ymdP9wHcWW3IPfXfY=; b=S/XRFDFVQMyGhR2EUu1JuonSUW+hei9VFFdTvFiM3KuuQA7IE+p5EHthhruR/4HFajkEUvzfnJWi5utbiTzBYxdDQwYkPE2ECZW1703LkcTZnZSEcjMQoAWYwMFDoIOxAzdZbXOn/zwN0bnBSGEV7nZe1fce4hwGcdq1kZDvUbE=; X-UUID: 00dbb303afb443989bb03d9adf4e53d5-20191213 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLS) with ESMTP id 1038164610; Fri, 13 Dec 2019 01:11:34 -0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n2.mediatek.inc (172.21.101.140) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 13 Dec 2019 16:11:24 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 13 Dec 2019 16:11:06 +0800 From: Stanley Chu To: , , , , , , CC: , , , , , , , , Stanley Chu Subject: [PATCH v1 4/4] scsi: ufs-mediatek: configure and enable clk-gating Date: Fri, 13 Dec 2019 16:11:35 +0800 Message-ID: <1576224695-22657-5-git-send-email-stanley.chu@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1576224695-22657-1-git-send-email-stanley.chu@mediatek.com> References: <1576224695-22657-1-git-send-email-stanley.chu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RW5hYmxlIGNsay1nYXRpbmcgd2l0aCBjdXN0b21pemVkIGRlbGF5ZWQgdGltZXIgdmFsdWUgaW4N Ck1lZGlhVGVrIENoaXBzZXRzLg0KDQpTaWduZWQtb2ZmLWJ5OiBTdGFubGV5IENodSA8c3Rhbmxl eS5jaHVAbWVkaWF0ZWsuY29tPg0KLS0tDQogZ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