Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4236811pxk; Tue, 29 Sep 2020 19:25:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywkBSF5Ldvq8pzKSyyltV7aTKeqld/xjcEdDqeQMR8rc+EXujJaEL2QuU/vADt+dIPZcSo X-Received: by 2002:aa7:dc16:: with SMTP id b22mr422599edu.252.1601432716005; Tue, 29 Sep 2020 19:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601432716; cv=none; d=google.com; s=arc-20160816; b=w7liXCawT9yrcckewdivQRmlDvTRo5Oztt1x2uMnnYj8voxuA0q4D5mK/6hqNLifV6 MLeacK10wtcbEWmUw+KITX786IsjOA14BC+63sMR1B/sWdYcYGNkBlV2waSoW/HRDUwn QWLoo7ZHtjvtMOo7V0QW3iyyI+1/M/R5WoprMb4qw7xg4SpE3l1u6MXeNJ7aWZNIqLaO RSZbsxxXhs/yEqGGzO0D3K0RCRzDZPWp80jCoA9TeySh6e9xZeFYf56HEeLw3s7zDhH0 Z4uDX2PSMMHiGdu67Ua3bP6lqa253Z7jUKkhbWA/M5eHLZ+jxHyWb+ysx/G/oGeedhRv RCYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/ODE+lHaGlrQfgAiLYh/aPpeTyv6wYIwW1Yqa7xY6kI=; b=w+27DMP6CHFfxmmJhNqBqSYxcNMZZpzjIClZxFVBTWJseCQfyHGkcWMUYI1duc2ULZ UZgYv/rhCmw8qIUI4VQbmpYU467qHq7rgGcE1uqEdXEg+ZA0sLYmPt4bYbcSQcqw4/Ya 267OtmDUbAvO8yssm1uhdCqLNQ19UsHRLnk3vBSm8er1MITXbawkOc7uOlmY5RxxJ0bY Anr3yDibuEcv7PJFFz0/rjXuWEHSKszR2xFkrnbsNZMp25rZE83pHYJudP41doALIBL1 S2QOQNyoOpIfOPcr3Lqy8Qu+V0GzUtoFxuvPFl4v+80xkZUYZDsy5tfrcofvhxdzocQP d0Wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=lV7AHAk4; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si92461edi.523.2020.09.29.19.24.53; Tue, 29 Sep 2020 19:25:15 -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=@mediatek.com header.s=dk header.b=lV7AHAk4; 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=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729848AbgI3CWP (ORCPT + 99 others); Tue, 29 Sep 2020 22:22:15 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:40260 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729785AbgI3CWL (ORCPT ); Tue, 29 Sep 2020 22:22:11 -0400 X-UUID: ed29a3baac864d9dbbe17691fffe8b42-20200930 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=/ODE+lHaGlrQfgAiLYh/aPpeTyv6wYIwW1Yqa7xY6kI=; b=lV7AHAk4nVzmE2RzlrakofFDpJ/HeFbk3tHqXQKMBvAI22S4wGgf4h3yCvPY0hKNtAb7YCoq1g/9BOn2GAbF/UlvA85/oompbTCG7jq3Hln1bwu+3GynX2SeegE163KR/MAnzN3b35pOT9n5mYNkjdvoOpyDz6VzeTEc0/ZLH4Y=; X-UUID: ed29a3baac864d9dbbe17691fffe8b42-20200930 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 954380086; Wed, 30 Sep 2020 10:22:05 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Sep 2020 10:22:00 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 30 Sep 2020 10:22:04 +0800 From: Crystal Guo To: , , CC: , , , , , , , , , , , Crystal Guo Subject: [v6,3/3] reset-controller: ti: force the write operation when assert or deassert Date: Wed, 30 Sep 2020 10:21:59 +0800 Message-ID: <20200930022159.5559-4-crystal.guo@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200930022159.5559-1-crystal.guo@mediatek.com> References: <20200930022159.5559-1-crystal.guo@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: BA75B31640D9C6D0159B7662252A7C2BDC31A2ACBB88105A60464EEC1CA8992A2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rm9yY2UgdGhlIHdyaXRlIG9wZXJhdGlvbiBpbiBjYXNlIHRoZSByZWFkIGFscmVhZHkgaGFwcGVu cw0KdG8gcmV0dXJuIHRoZSBjb3JyZWN0IHZhbHVlLg0KDQpTaWduZWQtb2ZmLWJ5OiBDcnlzdGFs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