Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp747142ybf; Fri, 28 Feb 2020 06:57:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxWHg9lMmrjKwMajGNTQkEVxxUhcQmKc1+kZAtvDidpntEXOvkLuXgfMbq9Z1T9b0SN8Uvs X-Received: by 2002:aca:f487:: with SMTP id s129mr3504520oih.75.1582901823940; Fri, 28 Feb 2020 06:57:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582901823; cv=none; d=google.com; s=arc-20160816; b=ctqj+ekqpoKJX00EHcYdgfdoN9jDkyHp3hubqmM57NXMp44U+Hw/ELGmR7C60FDf+n Uro2S33SyaIQl2cqOM4qElm94a0ZLENSK1IEkvWC3JOBtvwmH3h3U1Ox+AkEp7fGMv1l 5OtkQOFrkqZDBQUZ06YRSIbgIIrnuCTSBWTbOzlMz6n1tqXFTlltyUxKutqBuu1KjHl0 +oeQFVlPeY4m0FE+JkkI8/qpG36BubDNSquArDdmlUhBBMfPyTaFEdE95PKHhrOoIlVb FPsW6gHsH+QRV1ZfZDSr9UyaUKCHBAq6ADY+GzknNm0gEl+472lYA0DGgMRNBVB8JLoe trNg== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=KupROzX3aGOHBHNRJXxfTvVaiYRDVDCR4a16idnL8VA=; b=jHW/yMr9Ie7BJfTbB5OqJxgbrweJ9SCX/Pg7vICAofcOOlTzTbuTvHRdEbbH2GJr1i 1iOK0cH0k0CFdWTqI9fDEpd8BrnaefXn8wu9/PbqlrNkWVYHgwXm7MYFrAEocTZ360e/ os3iBBqpji31AtoIE1RuXHldzoMxwk9y/b5tvGtFHUviex1bWASacOhGXG7kEENTTWHy kYRw3vpR8xNJ78d6kRD+SWUnOqi3cM2Mp14xQ7kB6WmuYCJNMUVhZdgdFRT1W4SpYpjg +O59DhwNx2sFvaQRIn8j4zseoz2rL7ia7ltZ7Wm02ziVI9ffV1gzCbNQjGNnsiBay9Hl +4ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=i5Zcoth6; 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 m67si1972698oib.117.2020.02.28.06.56.51; Fri, 28 Feb 2020 06:57:03 -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=i5Zcoth6; 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 S1727152AbgB1Ozr (ORCPT + 99 others); Fri, 28 Feb 2020 09:55:47 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:15064 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726906AbgB1Ozq (ORCPT ); Fri, 28 Feb 2020 09:55:46 -0500 X-UUID: bec45df404ff4219a8476fd81106c3f9-20200228 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=KupROzX3aGOHBHNRJXxfTvVaiYRDVDCR4a16idnL8VA=; b=i5Zcoth6DexXSmXFNfAo4B6rl2NkfsojbC3nBlrWeDPp4kyLQrXpvwZeDdC8hRWFlcmSous5b/Mbr0AFA/N+RWBCKFZJ7xISDX7pwPurp16w3GDp9qsbQWazZuag0bRcfpC2i9Mvf6hP0uFTDXNYrwA9PS7r6G7Sb1lOTGVD6U0=; X-UUID: bec45df404ff4219a8476fd81106c3f9-20200228 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 425614716; Fri, 28 Feb 2020 22:55:42 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Feb 2020 22:54:47 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 28 Feb 2020 22:55:23 +0800 Message-ID: <1582901741.14824.6.camel@mtksdaap41> Subject: Re: [PATCH v3 09/13] soc: mediatek: cmdq: add write_s value function From: CK Hu To: Dennis YC Hsieh CC: Rob Herring , Matthias Brugger , Jassi Brar , , , , , Bibby Hsieh , Houlong Wei , , , "Ming-Fan Chen" Date: Fri, 28 Feb 2020 22:55:41 +0800 In-Reply-To: <1582897461-15105-11-git-send-email-dennis-yc.hsieh@mediatek.com> References: <1582897461-15105-1-git-send-email-dennis-yc.hsieh@mediatek.com> <1582897461-15105-11-git-send-email-dennis-yc.hsieh@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 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 SGksIERlbm5pczoNCg0KT24gRnJpLCAyMDIwLTAyLTI4IGF0IDIxOjQ0ICswODAwLCBEZW5uaXMg WUMgSHNpZWggd3JvdG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