Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4546397ybv; Mon, 17 Feb 2020 01:06:51 -0800 (PST) X-Google-Smtp-Source: APXvYqzvwXERCy7aHbGS4aWyN/tlLzShXx1S71QsddMtULk4HjARiIwIg4PVLSxW2jGzMXsZ4lUE X-Received: by 2002:a54:4f04:: with SMTP id e4mr8854178oiy.111.1581930411531; Mon, 17 Feb 2020 01:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581930411; cv=none; d=google.com; s=arc-20160816; b=0bK9RBOKRCeyy5gnaGkQg9f+sz0jzo0cPq8hpoMe8ITiXv2gbe0P6WjfrhDeNJht+4 HR1AthcowFziyuGlId1zhqVD+xqx1qoc+nFcHv02QemZOSGrsJ27IvEH6vEfM90VBETw ShsLiHC9/LclO6s+Q6qDMHvc9pg8WVWjiG/D4gAewqvBhSk338j29Apr6pFZxKEgYWxF 8mfrfAqAQsezh39U42LNXLzr24cUYNGPc1kzKu05oV0aTmCMO8u5EC8ZpAK1gN+BvPlY FpJXE0LVvmtxolhoyfE2LF0SLfEkAKQa2bBles5eOSiIRk2XqepKI4aSH7guXnuiMlPb ho9A== 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=035FQ1Fw3xURfPM55/UUoa6QVfGND190Ak9FtnTFJ0g=; b=heT71pV0EWai5H9SURm2seMaatyFs3fIPZt7NoitEACApKicbJdcf4E1RMdptpYUsl f79uSbrxTNivGoH8tSIizfAYU63c0ellAO7XT9StyyDOCNC27lkGvdoD+gsDd8cZOtP0 FG69PLwYMyHx/OsvWMA6A7Y+2sS1sruCuQkoFYhMOUoEGVoCAxfDoB2XMOYML3QzEMbo 3rxKDsFFVQdiIk6h/xhTaWPt/ARZltPFVlA+D86wJ6PuzrEjrqayQTUhfDpAqzSfSAbA fmGW2c9JQU3qSey94SdPC3PT75D0UBJro/tvTYaHBP6vhRbYuicng9MRbW6QTqhKcCRG 8n0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=KU7uNzSu; 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 b191si6020053oii.266.2020.02.17.01.06.39; Mon, 17 Feb 2020 01:06:51 -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=KU7uNzSu; 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 S1728706AbgBQJFl (ORCPT + 99 others); Mon, 17 Feb 2020 04:05:41 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:58062 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728599AbgBQJFk (ORCPT ); Mon, 17 Feb 2020 04:05:40 -0500 X-UUID: 9d8daa15a41247eaa710b158ecd38da1-20200217 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=035FQ1Fw3xURfPM55/UUoa6QVfGND190Ak9FtnTFJ0g=; b=KU7uNzSuul8qgKRsTbzaDNP5WB0tPR8kiGqP+Q7NbcpsuuPrgR1kCuL+ysbvjyQgCdqi99oQPI2akmkcT0Vhe6SUlCZXPUT2422hUUOVhoH/HpSE6EXCn5R1zqN3wnjN6MlJP10VUd+z+4mlv08ucLZpDm2S8CQB2+2ugtGWjaI=; X-UUID: 9d8daa15a41247eaa710b158ecd38da1-20200217 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1385568392; Mon, 17 Feb 2020 17:05:35 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs05n1.mediatek.inc (172.21.101.15) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 17 Feb 2020 17:04:39 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 17 Feb 2020 17:03:36 +0800 From: Bibby Hsieh To: Jassi Brar , Matthias Brugger , Rob Herring , CK HU CC: , , , , , Nicolas Boichat , Dennis-YC Hsieh , Houlong Wei , Bibby Hsieh Subject: [PATCH v1 3/3] mailbox: mediatek: remove implementation related to atomic_exec Date: Mon, 17 Feb 2020 17:05:32 +0800 Message-ID: <20200217090532.16019-4-bibby.hsieh@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200217090532.16019-1-bibby.hsieh@mediatek.com> References: <20200217090532.16019-1-bibby.hsieh@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 QWZ0ZXIgaW1wbGVtZW50IGZsdXNoLCBjbGllbnQgY2FuIGZsdXNoIHRoZSBleGVjdXRpbmcNCmNv bW1hbmQgYnVmZmVyIG9yIGFib3J0IHRoZSBzdGlsbCB3YWl0aW5nIGZvciBldmVudA0KY29tbWFu ZCBidWZ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