Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2693837ybv; Sat, 15 Feb 2020 01:21:16 -0800 (PST) X-Google-Smtp-Source: APXvYqw3vLrzh1wP7ZX6Qg4pAaJzhKJLCZ3nk17WVi5d9Xn0kbaYmdgqJ7SaQDoQeCDTw65GDMlx X-Received: by 2002:aca:120e:: with SMTP id 14mr4268494ois.135.1581758475974; Sat, 15 Feb 2020 01:21:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581758475; cv=none; d=google.com; s=arc-20160816; b=QtCG27YQE/mtBjhMpoMuwh2Yi2TbNd/KhW5bSgxPziCKR7VO33XGGcHHYCK4GgiIjp xXk/JEjb7lgdvLjHGvF1ejQfZtJ7RhxG3LgviY8FsE2d5IIqIgyOA7TH4ttQIwvXJOtR 8xUq3M+EXrm3SMiK6RyQj8EzX+wGdembFpzwgq+DtYbrPl/921gysZa3xb2TIGSjo8aM fXlLEL63sc+b+lYVTyEyYOsUcKMGqMWNRjdON13k6uGGbaBbwdE2ihMAHOP6jRSwrxrZ 1jDQth4H2IG51SBS2C3XF1QUAvF42UmWCqxJ0seP/7WV3t4s3NxuBWPhUu4CZMo7/gdW wc0Q== 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=k13YbxXhz4gHeoY8sCSPlvVxaM10t7m2oHtq2oD0CI0=; b=PoAwAZd5vElG9k/ZUx9N2gGalxQurtyU+FAp+w3977O6KVQOrsqbPBrjJSZEIdca8J Dp3EwWyy8/+k2woxv87xsyLl/l4yHFAhZkXXAtsbJW1FsOujrv6nrywVqOQvPU+3XU2I DzCSUF0jub7CZvv+w7FAsNaW4vt7XVOk27HLZ/ThKSBhVnpzlYIFC3Ar6pHR6n9JCu2V DlWiKL273eg0KMlqeARlKpeu0EzApHKkS1XSAj3wmojcICpMWHWaWl4iqLBJtlcPPz7q 2thiwJ/ftHJNLtn7nvXMcaCn/Tksj71V0vWv8XcWdSp3u+GcWk/tcCAzJrpanBcZS9Nv uvWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GsQGasfn; 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 j17si4076598otl.278.2020.02.15.01.21.03; Sat, 15 Feb 2020 01:21:15 -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=GsQGasfn; 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 S1725959AbgBOJVA (ORCPT + 99 others); Sat, 15 Feb 2020 04:21:00 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:5751 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725852AbgBOJVA (ORCPT ); Sat, 15 Feb 2020 04:21:00 -0500 X-UUID: e183eb48eb1f403b98a19fec620da92a-20200215 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=k13YbxXhz4gHeoY8sCSPlvVxaM10t7m2oHtq2oD0CI0=; b=GsQGasfnVre3dzigm4NEoBALH29uYsv1l36FYecb8416SjNKbbTuoWmTgQnYwVvcWwm1eYbKzXxTnrkazpFzJlIjmJnlWIgzz1t46a3wuaQ/VceKUUDP+tio+wcD7m4bCrh/swNoa+w+qJ9dvsTHcYNBJHkfDM0BWDlpIQXgJxo=; X-UUID: e183eb48eb1f403b98a19fec620da92a-20200215 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1317205863; Sat, 15 Feb 2020 17:20:20 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 15 Feb 2020 17:19:10 +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; Sat, 15 Feb 2020 17:18:49 +0800 Message-ID: <1581758398.3473.3.camel@mhfsdcap03> Subject: Re: [PATCH 4/9] usb: roles: Leave the private driver data pointer to the drivers From: Chunfeng Yun To: Heikki Krogerus CC: Greg Kroah-Hartman , Benson Leung , Prashant Malani , "Mika Westerberg" , , Date: Sat, 15 Feb 2020 17:19:58 +0800 In-Reply-To: <20200213132428.53374-5-heikki.krogerus@linux.intel.com> References: <20200213132428.53374-1-heikki.krogerus@linux.intel.com> <20200213132428.53374-5-heikki.krogerus@linux.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: B88534A6BE45C77582AA7EE259A2C4329D073BDE8CECCF35BFDCADB4570735E32000: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 T24gVGh1LCAyMDIwLTAyLTEzIGF0IDE2OjI0ICswMzAwLCBIZWlra2kgS3JvZ2VydXMgd3Jv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