Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp286547ybb; Fri, 3 Apr 2020 02:42:44 -0700 (PDT) X-Google-Smtp-Source: APiQypIbjTrv/IdM6wpeKaJS1TxU2GZj453LgqJh2n8hBJq3q/YpwDKRMA2NxcDl5fwgI49sW8j3 X-Received: by 2002:a9d:8e4:: with SMTP id 91mr6053885otf.130.1585906964034; Fri, 03 Apr 2020 02:42:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585906964; cv=none; d=google.com; s=arc-20160816; b=R4lir8jwslm+pHbrmtRP9o59EC4+b2oMO6fzRude7A69OT4DEnR9Bq5r6knPrAQ6Z9 JVHNmA1a/pR1MkzcLDrEhXlnK5usUT+yBciIzS6BgDAz7t4AjVj+JRlmhiFLJc+wnabo JFiDHz8Ef74EBis7vlSi5aARuuk7vvVIL1kVtSfhPReLxkyQMmnLmGIugnjA66sR3ASB exesgL1ngyUuAM++lQ8caRnneXD4vD46mHLLA/SoPxRhb8Wzcmtry3RgADUEwlLdaEo0 ZK8LLe6goS3JaCA4pOeVOBNp3e/L8M4w68ZAvcW0i77gGKvjQjh0Ndah07JOzA/xLlyb FJBg== 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=7LIi7H/1aKJu6aJs2kP5tkzvs49e5IwR0+jnoVPzHLw=; b=U8XIog+IRyU+nPQ3WDxTfaMnoqpuhJq5lauVd8YuHn0hrqCqGsS5wLKCOQsokmJx2U eWLtVLfXVCbVsZrLJ7Sh5WruuuqPLxLXEmTYHNMe56Rt0rARfAmlzR5lpNaajzZNfe5p WldQOUWDdPIMDZbRj69vslpdd1aUMnW1AgFSYwfvlaqmNlXniGLFmCNfYZWp+j1nLHhr 3nBu0/9ici6a5ZqEa2QXVpC18EdSyb5hrYVJSxvj25lvNrW+AkNkRzj9UlIg0FLtnlmk sXyvYzg5o1YCYV2aYadgH8ZVpbIOnp4IKEYMTm36UXi45ITpjnYysZMSUGwHODxuH2oH 5P8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=CtX2lzOg; 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 94si3340316otb.114.2020.04.03.02.42.31; Fri, 03 Apr 2020 02:42:44 -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; dkim=pass header.i=@mediatek.com header.s=dk header.b=CtX2lzOg; 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 S2390724AbgDCJlp (ORCPT + 99 others); Fri, 3 Apr 2020 05:41:45 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:9336 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727792AbgDCJkp (ORCPT ); Fri, 3 Apr 2020 05:40:45 -0400 X-UUID: bc295ed7dbf64c989aed5ac3bb866d23-20200403 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=7LIi7H/1aKJu6aJs2kP5tkzvs49e5IwR0+jnoVPzHLw=; b=CtX2lzOgOcTBrH2shlONAH/Zl4Bhe+WFCJa3Iv6TXk1mIMZVUH1ZgMaGByosA/a74ahf/a5o0yD75Od2Tgb5yDcgFjbljmIdmyPg6/ykCTa1AfiOtiX6oegvToIn+JPwoeHUz/Vqqxm+ZDx+LpGKd/zJ96MrJTzpP10SMs0lqAQ=; X-UUID: bc295ed7dbf64c989aed5ac3bb866d23-20200403 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 79399704; Fri, 03 Apr 2020 17:40:41 +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.1497.2; Fri, 3 Apr 2020 17:40:33 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 3 Apr 2020 17:40:33 +0800 From: Xia Jiang To: Hans Verkuil , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Rick Chang CC: , , , , , Marek Szyprowski , Tomasz Figa , , , , , , , Xia Jiang Subject: [PATCH v8 02/14] media: platform: Improve queue set up flow for bug fixing Date: Fri, 3 Apr 2020 17:40:21 +0800 Message-ID: <20200403094033.8288-3-xia.jiang@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20200403094033.8288-1-xia.jiang@mediatek.com> References: <20200403094033.8288-1-xia.jiang@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 QWRkIGNoZWNraW5nIGNyZWF0ZWQgYnVmZmVyIHNpemUgZm9sbG93IGluIG10a19qcGVnX3F1ZXVl X3NldHVwKCkuDQoNClNpZ25lZC1vZmYtYnk6IFhpYSBKaWFuZyA8eGlhLmppYW5nQG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