Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4714501ybv; Wed, 26 Feb 2020 01:51:55 -0800 (PST) X-Google-Smtp-Source: APXvYqzzBx46QVjW3vw6XgJegvzu6GgX9DqOf2/kuthZhknAC8tUDAkn0YSIBc0jZMage+xy++Hd X-Received: by 2002:a05:6830:1e64:: with SMTP id m4mr2404904otr.244.1582710714866; Wed, 26 Feb 2020 01:51:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582710714; cv=none; d=google.com; s=arc-20160816; b=xtmfnYlLBpSp9vTRGScrXAWg6fe+1P9a+yHYY7zO7AK6TZxhiQcmhscqn2fZ5I+WRE ziIJPeEosu24eJsIX7ap+vRPYbjVrRW8YRqnRkDNnq0n5dJjTji7GUvZn271QXfjhmcC f1bIKLsBk4hyGlSf2jayLF8of4quZa9GW9aWoIZUqyG0bdoJsU+D5iB49dYLPTj8UAsO e8vdIPg8X+tmO5wkbBBXJkdhsmV9ldXVVTLiI2cZ+RViwGpGCtrZ1fl/Jxjuf42fwCLe pcE5lDOisW4wbN+6WjqH8mEoj5NOeiMS9VXhrvU5l2q0xgxOB8wqxWSlFbRi8KmQEgEd kaTA== 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=/fRN2IsbZHXdwcvgbzOFioJIocfRS7K6ro41pSVrsFw=; b=T2MsYdGF4zXRJpyvOgmOn4KdBYHrcCJ8noqQ50hTe0SXNao5I8p65h+ooOIatuBgsK s/GCAB4LADyzcJOFvGx7MbiZWsgnOAJN9t3fp9gWNE6i/u//74FYb2UIIqBy+/93bCd5 WzYeJW14avfJVYht6WM6wU+UCF2w9pCRNwZk8FrBWhHpmWX8EYMNc7RfT7aHEigDT6cj aKSfuyzAMdtldVMIXzHhHoLrrx84SRjXXM582Fq/CgTyKhLHaaewangeJNkNtBLPW7mQ +p/pH3IFKpxOb988AXxCNqyJZhXayIW2Vr6uNlB9LBvBt14I2WW7ZcbbyDDncNmoEZAk fdHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=E84a7a9t; 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 x26si447106otk.325.2020.02.26.01.51.42; Wed, 26 Feb 2020 01:51:54 -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=E84a7a9t; 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 S1727311AbgBZJvi (ORCPT + 99 others); Wed, 26 Feb 2020 04:51:38 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:47816 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726329AbgBZJvi (ORCPT ); Wed, 26 Feb 2020 04:51:38 -0500 X-UUID: d48de751e5ab414b9273e85c075d8d0d-20200226 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=/fRN2IsbZHXdwcvgbzOFioJIocfRS7K6ro41pSVrsFw=; b=E84a7a9tmh1SWcspjCJrtEVfZui3pFWGq1YRDdyS8MyPGOWA1gIVgTLxFshwZxPD2pKi8MOqnBYbMjk1tWeSSYxIeRTpE7KHWaZLQHxRGKm0pzMMgHxUiH2Wuq/R22JaG4d/0pH/OpvBplOgq2dcl9ZPaj5bqzce/p4ZPA6kuGs=; X-UUID: d48de751e5ab414b9273e85c075d8d0d-20200226 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 922562239; Wed, 26 Feb 2020 17:50:45 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 26 Feb 2020 17:49:27 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 26 Feb 2020 17:49:20 +0800 Message-ID: <1582710640.27285.8.camel@mhfsdcap03> Subject: Re: [PATCH] mmc: mediatek: fix SDIO irq issue From: "yong.mao@mediatek.com" To: Ulf Hansson CC: Chaotian Jing , Matthias Brugger , "linux-mmc@vger.kernel.org" , Linux ARM , "moderated list:ARM/Mediatek SoC support" , Linux Kernel Mailing List , srv_heupstream Date: Wed, 26 Feb 2020 17:50:40 +0800 In-Reply-To: References: <1579591258-30940-1-git-send-email-yong.mao@mediatek.com> <1579591258-30940-2-git-send-email-yong.mao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: AE4A606A3A45BE2D2D0088196BED2738BF0F53B0C3B8590C6B46C89702285D212000:8 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 DQpPbiBXZWQsIDIwMjAtMDItMTIgYXQgMTY6MjkgKzAxMDAsIFVsZiBIYW5zc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