Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp2325042rwi; Thu, 3 Nov 2022 15:51:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7YkMpBh80eXvsBSpgmP1lV1Q3e6dfmjLdkMKomChpz6kC611Xu09LBVRp4uyeqZQQSfxGM X-Received: by 2002:a05:6a00:cd4:b0:56c:b47:a743 with SMTP id b20-20020a056a000cd400b0056c0b47a743mr32237873pfv.25.1667515915399; Thu, 03 Nov 2022 15:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667515915; cv=none; d=google.com; s=arc-20160816; b=dwcA+0v81KcFpSreAuEtl8Sz6rHU0l8f3lc2MSm3Vc0+8nXrmcGVtAtAK1wgXABewq Mu2aAsqPJN1WqkNaQJ6KWwQYiwEhbqQRotzsFg/1i+zcfjVGZ9C4WTwC7s21VAbKnqpH awAHpXNKOj5uAv7HjnVIJ1QD2s2Y+gRB3iM/r8aS00QYy8UJjyfCBjWdmjXk72xy8FKO obFZIT1bi0HDsywHLTI5WeSF3NSrh3S9s7MS+v7Uyjn0KWVzOUwwHxpeBMQ0d4RMIvOq 6ALSmdRxBNCXMXrnvCjk+1OOuYDdx8z+KLx0nhmU4OtD/FBUXBO+39WV3m7gZr30Qauw SKjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=QKbnlsmkRekc5g7H4UDJpqdXvMO9MIFw9JHi3/mmLtw=; b=PIbK5gsV1N0QtrsUvTbrJoIyJolWL7+hJ415ZdPJvQao95al0KNP5iqmAO8AClR5Co XHy69E4bMO7ysGYr7gJghIdGQU/OW0Ra1Rc152SmM+1qiVOzZqdo1ZM7XJRzC+/Fe85m z0Gofc9uyS5W9pQj+iE66LV4g0cx8Y3j4aaUBuXRG1WY6dW888T6UZdp2rCQKz3zTKGm GSmVU2ebaPfAB5Lr76p2NsjdviQvg+psvLGOVD/tjvHKxzPX6Slcrv8lwMu1dKUiF+wD 0KRK7lCM2O0QF3yQqC7wVIwIs4Bpd+IejxllJKwkkfbKJa0Nfdd2NBP/TWU55uK2eHx+ e7Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l184-20020a6391c1000000b0046f42e65a9dsi2540550pge.10.2022.11.03.15.51.43; Thu, 03 Nov 2022 15:51:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231294AbiKCWfR (ORCPT + 98 others); Thu, 3 Nov 2022 18:35:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbiKCWfO (ORCPT ); Thu, 3 Nov 2022 18:35:14 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 450651FCE7 for ; Thu, 3 Nov 2022 15:35:13 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-108-jjXBwe61OA2r_dWCY7x20Q-1; Thu, 03 Nov 2022 22:35:10 +0000 X-MC-Unique: jjXBwe61OA2r_dWCY7x20Q-1 Received: from AcuMS.Aculab.com (10.202.163.6) by AcuMS.aculab.com (10.202.163.6) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 3 Nov 2022 22:35:09 +0000 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.042; Thu, 3 Nov 2022 22:35:09 +0000 From: David Laight To: 'AngeloGioacchino Del Regno' , Bayi Cheng , Mark Brown CC: Matthias Brugger , "linux-spi@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-mediatek@lists.infradead.org" , Chuanhong Guo , "linux-kernel@vger.kernel.org" , "srv_heupstream@mediatek.com" , Project_Global_Chrome_Upstream_Group Subject: RE: [PATCH v1] spi: spi-mtk-nor: Optimize timeout for dma read Thread-Topic: [PATCH v1] spi: spi-mtk-nor: Optimize timeout for dma read Thread-Index: AQHY72jIBAhQmgXzVUCnGozhoMFIG64tyFhQ Date: Thu, 3 Nov 2022 22:35:09 +0000 Message-ID: References: <20221103052843.2025-1-bayi.cheng@mediatek.com> <20221103052843.2025-2-bayi.cheng@mediatek.com> <10529948-a9b8-2121-7adb-0e94cf3cbf6a@collabora.com> In-Reply-To: <10529948-a9b8-2121-7adb-0e94cf3cbf6a@collabora.com> Accept-Language: en-GB, 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-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-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