Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3572453ybi; Fri, 5 Jul 2019 09:44:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqywf+YopzQdYTNsRaPDSch2eHb4MKHmqWa/DKzSpwrzyucBEIZL4Gsd8cs9xDNnJwV7dw43 X-Received: by 2002:a17:90a:a09:: with SMTP id o9mr6672052pjo.95.1562345043504; Fri, 05 Jul 2019 09:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562345043; cv=none; d=google.com; s=arc-20160816; b=o0FD/CS/asd6dWY0Q4gHYME4Cq3myI1uqVX+FmLHs0kDWm+fI1Vb5JR4uJpCFJS4eP Z3DNWNUlqj7DR+Ya0FlFLHnNPeZjzseaZjY0fNgppXD8r2C3OQGZWDJO1KafiY7gkUsD S9ASMUmNMDNbUDNIQe7jJwVKM4/ltTErqu27j0KTmhf6IPoXKcgiXQfoRvEKFeqPbp5I PrFiwyIv4t6ovhlKc/6Spx19Z/q/VHZNTGac3wTnsqL6hHKky/VJ174DjbYJ/T1mqaN2 Re/EiWmZh0+AHnTtr4N5O24sznauwKbKMcAdXXX190fJ3exRZIOgBuFdvrwExqb4gyH1 /NJQ== 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 :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=AE73OImGuxWCbX0HThc4bzAAF2Ai9AUedkesirIpOi4=; b=Y+ETPo1Gh50ndszqcWwEcBEJhJ0n2iy6MpYnby1TgH5ynTh2DBvRYFsk/B3cTAns7H /dM0MCTaa+SxwNApfvC7SWIe0yaJAlWiwQ1a1UuQ+F25BRQFxnBBNhgJuxaFsMjFVkMf YE+M2hBcj4FenDe5qIZ/emaTSpQ6QWSAh1D/HC+yyxqU5ffOR6jByBGKmWBDiZZnlc7l VG4zS/pRt5UghXW9jyU+0i0l6gadMLpf6GXHqpD6uRuDmU0lmWlGKBRr+62Fa45HM80W E6z9++PwKSRx33AlMZvTJGreaIlHCtFnP4hrdJdb04abb5/pl+JT2KZeNK0ET+krAR1i 3scQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si9158642plb.407.2019.07.05.09.43.48; Fri, 05 Jul 2019 09:44:03 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728272AbfGEQEX (ORCPT + 99 others); Fri, 5 Jul 2019 12:04:23 -0400 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:48142 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728258AbfGEQEX (ORCPT ); Fri, 5 Jul 2019 12:04:23 -0400 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-5-XIeXKrHJPJGG4dsIQCm2tg-1; Fri, 05 Jul 2019 17:04:19 +0100 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) by AcuMS.aculab.com (fd9f:af1c:a25b:0:43c:695e:880f:8750) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 5 Jul 2019 17:04:19 +0100 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Fri, 5 Jul 2019 17:04:19 +0100 From: David Laight To: 'Yehezkel Bernat' , Mika Westerberg CC: LKML , Andreas Noever , Michael Jamet , "Rafael J . Wysocki" , Len Brown , Lukas Wunner , Mario Limonciello , "Anthony Wong" , "linux-acpi@vger.kernel.org" Subject: RE: [PATCH 3/8] thunderbolt: Use 32-bit writes when writing ring producer/consumer Thread-Topic: [PATCH 3/8] thunderbolt: Use 32-bit writes when writing ring producer/consumer Thread-Index: AQHVMyIznn3HI+p3CEuvWWeqi0Ulhqa8L0sw Date: Fri, 5 Jul 2019 16:04:19 +0000 Message-ID: <0f3a47d8133945b181d623ea6e0d53f2@AcuMS.aculab.com> References: <20190705095800.43534-1-mika.westerberg@linux.intel.com> <20190705095800.43534-4-mika.westerberg@linux.intel.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: XIeXKrHJPJGG4dsIQCm2tg-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogWWVoZXprZWwgQmVybmF0DQo+IFNlbnQ6IDA1IEp1bHkgMjAxOSAxMjoxMA0KPiBPbiBG cmksIEp1bCA1LCAyMDE5IGF0IDEyOjU4IFBNIE1pa2EgV2VzdGVyYmVyZw0KPiA8bWlrYS53ZXN0 ZXJiZXJnQGxpbnV4LmludGVsLmNvbT4gd3JvdGU6DQo+ID4NCj4gPiBUaGUgcmVnaXN0ZXIgYWNj ZXNzIHNob3VsZCBiZSB1c2luZyAzMi1iaXQgcmVhZHMvd3JpdGVzIGFjY29yZGluZyB0byB0aGUN Cj4gPiBkYXRhc2hlZXQuIFdpdGggdGhlIHByZXZpb3VzIGdlbmVyYXRpb24gaGFyZ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