Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751615AbdF0BwJ (ORCPT ); Mon, 26 Jun 2017 21:52:09 -0400 Received: from mail-by2nam03on0136.outbound.protection.outlook.com ([104.47.42.136]:47853 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751445AbdF0BwE (ORCPT ); Mon, 26 Jun 2017 21:52:04 -0400 Authentication-Results: spf=pass (sender IP is 117.103.190.41) smtp.mailfrom=sony.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=bestguesspass action=none header.from=sony.com; From: "Takiguchi, Yasunari" Subject: Re: [PATCH v2 08/15] [media] cxd2880: Add top level of the driver To: Mauro Carvalho Chehab References: <20170414015043.16731-1-Yasunari.Takiguchi@sony.com> <20170414023150.17685-1-Yasunari.Takiguchi@sony.com> <20170613103014.3443406b@vento.lan> <84b4b9d6-5b91-897f-378f-4851f0d1e313@sony.com> <20170623100239.2a4bf8bb@vento.lan> <20170625091506.1f591fcb@vento.lan> <20170625222432.4f266b1e@vento.lan> CC: "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-media@vger.kernel.org" , "tbird20d@gmail.com" , "frowand.list@gmail.com" , "Yamamoto, Masayuki" , "Nozawa, Hideki (STWN)" , "Yonezawa, Kota" , "Matsumoto, Toshihiko" , "Watanabe, Satoshi (SSS)" , Message-ID: Date: Tue, 27 Jun 2017 10:51:45 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170625222432.4f266b1e@vento.lan> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [2001:cf8:1:aa2:0:dddd:320e:c313] X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:117.103.190.41;IPV:NLI;CTRY:JP;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(39400400002)(39410400002)(39850400002)(39860400002)(39450400003)(39840400002)(2980300002)(438002)(199003)(24454002)(189002)(39060400002)(50466002)(5660300001)(966005)(8676002)(86362001)(7636002)(53546010)(65956001)(65806001)(93886004)(31696002)(7736002)(72206003)(64126003)(83506001)(65826007)(356003)(305945005)(4326008)(8936002)(4001350100001)(23746002)(54906002)(6306002)(6666003)(2950100002)(6916009)(6116002)(478600001)(54356999)(76176999)(50986999)(31686004)(2906002)(38730400002)(229853002)(110136004)(6246003)(107886003)(47776003)(2870700001)(106466001)(36756003)(33646002)(189998001)(21314002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR13MB0873;H:JPYOKXEG101.jp.sony.com;FPR:;SPF:Pass;MLV:ovrnspm;A:1;MX:1;PTR:jpyokxeg101.jp.sony.com;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;SN1NAM02FT029;1:+uEyHH62OaOvzXA3Fju9aqIspcReuGv2N/o0+ZTI3BpAtOciz8ojmu2BaGjNnAo0nrGSRn7w7YwK/sxR21n7Fc+gvgHAJwXrEfLUYYr8vrXSVGCm551Qp32XQyQ8aYj1BBcGEzRmk5HOjTgwvxh7l/jNVAOZPldGSk7sC9zGdvo1KDKClAZFG4nqTEQ/hTXo5DJCV8YEP0uWRH4KnIxZeQlJHwYS5TDjZ3sZlDDDZxxdu1T1f4z7ZJ/sC4QfNI61ZO8UDvkO9svDw9skTePrqlT3Vu0nXNMA7FORVbpAiVNS/iieHNeyimU+bsSGGm1CRLBxvYxzV1zuI7mHYAUt3yRgQcsj7ObKx9/m3gFfXRD1ahbFmsmagf2J8osdlkZjZLaJoY5CupQXvmZdqPuRML8wGn1Zvb4bySXmTyY1UUny4oS63U+aVf1WxVgB5mrTsCY71rSm5aaM4GuQCVDmgBEngoFEbdk2E0M+sSjmY0DJEFTCSgdlQ1Ss3WCq4po7F/VKfqYs71ySPIFo6nRrnu8CEwPBDnGuhtUBKK6WKqia8xTzRjzbNL1l1jS8lKFRFlfmByhuVgy/TLW6DNooP/yFBksv5ZkckHMb4uffOB965y5wdvZU/Wwz64loQR6K3ZhFR1YIcH+nOohKhjTKVEp498+Sy+cHx/CreN5fWVuUwmT/JoLtiqOs4z1qlRkbnB/xoclV3B1MZkTSuVt6ExDA2L4vdn2wRdG13OVwdLg9u0ISm6haXDp3tPypkP/jnQt+EHHZ6o6473u8cnjrmXLoHYp2YfLv7MewpTxvu5KTIAmOLRxlE3Sn4l25QpQy2RGdwH9jZZoU0GKEG2KvvYjskT124Z8qa6pxYJQ4HCuMz1ay8wIxK8kMDzwAMct2eoCxVUkua5YODwqnDeFw4AeSsqzH57bmiT2HPPbSOGM= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2b1beef1-8313-4275-132e-08d4bcff1a98 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(8251501002)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095);SRVR:DM5PR13MB0873; X-Microsoft-Exchange-Diagnostics: 1;DM5PR13MB0873;3:kxyfZvLU3rchpqAOFDMaIs+bedGLMVM7uW+14t4AXmSgc9Ruz6BHEDPhzh0I68yAIs6nSD4WsCMUyOta393WRvEffDtmvbo1p5UKjaItZAzYf8CTkV5y0qX/HeoS1LeKfzOaBFcMER4UTEzAL3BzkvkjTm526TW9xLrNf0F/WIjyQXAulCblVmM7ix5VeD9za1PFu4WOIXIFOdQ7Y0pizzbE7m2qZVUR37YU0j6jycx/bpaemdLYv5HAzTaOAHOuZ/s8OhzQf5qpP40w+cERl3gY+lrxfeaJMEv+ux77v100RT7hSp91L7CHUSgrfmEcdsIOLLgtBmfuFXeWNCbo4MY5PUudmzNF9X46wbibjeQX6fBaALYRwKQSt5gTW61Dg54Aqzr6N5bGlO0TxYf3kV19QrIzYG7IbKtRjLEgtc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B4uxfX/GZ/CtLKJHQj074iF3lrbZ1WogQpzXJyM+Ky60w1oixEedWYtHh4zZ2SLc8MNq2kfQqzvNu/bJ3M10G3CGGizg== X-Microsoft-Exchange-Diagnostics: 1;DM5PR13MB0873;20:9Dwzh2ypAundEnw0olAgK1UvidfHBvQVK236GFK/k0VJqX4C++H6Vg2PFDvhGYqFsCJx3gJ5czLHMsY0xtW9A17A8eVDIdxupt32+5w6hLS3tOSOmPrigo/o98XwAVaTIyTuXGquh9VW1LUs8lSLFYdmWqpUlLXgyomds6H98mz6v+JBNRU8X+9e4yLiVdwZZ+RsyWEohLHP9hiG9HRqKjGGz7mRQCx50hN0CRw4+lmyMkZaMYSBMC/LXKnzLHnfOBGYQzZ9Arcmo3S6C26IwzUu15Efe7+aWLdZATA+niarncCQ9sh/rvZdiM+ldLX4BQKSqX6fgualUUjVGFv+S7WFamcePPSqlMtZfaqxQ/CkPntvs+/7UU8b0ZhXdBt/NZDJytfjX/zZNafeVOFcMNmfmabAvzpYDTnPdT728O6b7p8qZ6urjZu78JHgYAjhfc5FIicUhZVHVLyR9IIz8uzOFb0robVThr8MULBtS7NjdlPkJT7Ifgc6bAdy1uE+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(182409339516656)(236129657087228)(48057245064654)(148574349560750)(167848164394848); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558100)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR13MB0873;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR13MB0873; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;DM5PR13MB0873;4:6pAOIMyHSrHPetvnxGKREZ2P35NH3A7+R6wx+b?= =?Windows-1252?Q?ABxz/K6JlkCC6EVdWxkV532hrqW18HNEAho0xC7RJ2dnWumxk8zyVWfx?= =?Windows-1252?Q?vJZhWuQ3sePPxbUBhnuLoXX6fUIH1WdSg3lk8fquZyQlA4PwlSyDvmSJ?= =?Windows-1252?Q?UU+3QkCGZlMcEp+i+NbvJPw7plB4YwAeoTssS4pptmB7wl/i7Wd71B/s?= =?Windows-1252?Q?l0kHSMdyIOWHtwKICpVOA5nQ83PLAyYCNwFD52+wIp1e/NBsO/mz1ZsS?= =?Windows-1252?Q?dHXFvHUKhf8hjcy6HN8TMxk7ZJ1wVYnoiA0YcwwVGoiTwZ4hkFKe7Eyl?= =?Windows-1252?Q?s70Uhc2CgLyvWj0XMjocIEzmT43eHQC2r5j6jdRGGw08VzPSmfH7ooIi?= =?Windows-1252?Q?t65FT/AN4D/Uml/qA8tw3aQmxvPF0pML4KGsKDeegRCGg07r+j0RFON3?= =?Windows-1252?Q?UIBvsjpedHYE29r6UIp+HUC0M1hCCFqyIJ9gaVbNbvm70/lRCrkse96x?= =?Windows-1252?Q?iIbNMDRDzwzbkr7oI3THemp9zth7OFHspGUAhtcGI723FlL2Br9sUqjx?= =?Windows-1252?Q?HF8usSiRNRevOe5Kl31vvtxpQwGKCSEXhRRmI9Q5KbR9yHZ/qeatlGZd?= =?Windows-1252?Q?9kYcjaLwEoXqrnVxnHJjVIUw4rD8lIjMY1Yjl/U6XITpLxPUz84qHoLT?= =?Windows-1252?Q?kHqJ3hj1zjXkbQWtYy3V8bpunAT6EK2E1ExN/M+WM5BBVRoSQZR6E4ZH?= =?Windows-1252?Q?0EFZkNfkxQNRbc2UEPZGk74lnws1eRx5B4Kt5q/xVaLIZh0TuxoPpecj?= =?Windows-1252?Q?a3arnRtOMIBje8UHAEz1B0uWOnI2xb0m69sU/MVB2EatdRUBWm9cko6U?= =?Windows-1252?Q?ueD6NJRcNU3yNyFYJR6FmDC9S3iNLR2+05zq320DknUr0xE6Shw8X5Jy?= =?Windows-1252?Q?zBfse+brXCgHhS+5MGRvlL7G5DvumTQsmx9JnA3EbNogpCaDOIGGsM4M?= =?Windows-1252?Q?ngn7GQ4ukC+Q1VZvNB5DEHVbh5Vg94BU4suWaFMV1wgvr8CgEJ95mufN?= =?Windows-1252?Q?r858AoNJAq91fSAEOpbZm6Y7UH0zmZpE+5ZyP+UCEh6XI8lb66ZrM6cM?= =?Windows-1252?Q?UsxK1WH1VQsIazjc1lHDlkiMq3CDyLikdX93D+h2nnEREpHCwl25E5A/?= =?Windows-1252?Q?nzh8sn9GoKKVul3tAMWedpNyTpQRNPuES5pk1uQjC0jhXLKpA0KPz4nb?= =?Windows-1252?Q?wE0LXdwrd90D6sVWmNE2Uyk5/bZGmtH4RD/EdNxc/uR4wPyXRzzpBwNz?= =?Windows-1252?Q?eo/GwlKUhu774roM91PUE7Qh35uKwIl4JRpG/GM9cuZRcCMgk5nl4g7j?= =?Windows-1252?Q?bffuehJO5m5gmfPjamoH/2MeKYc2j+hlHiWZD8Xqqjd9LIQIrWlrNEfu?= =?Windows-1252?Q?cIG+tZXt1h3AT6MclFoFA+hbHSSFu6Nj+j94RTj/VJW3zGP9Sf/63ERn?= =?Windows-1252?Q?EcN2A=3D?= X-Forefront-PRVS: 0351D213B3 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;DM5PR13MB0873;23:cU0pbXbA5koQfCYJ9eBSOUgODFAqdcnWoNSUx?= =?Windows-1252?Q?3NtNYw3xST5HbkLMiTfU8HTv6ztlYjtuHkJpfGAIKMdLEXIHGotHG5rE?= =?Windows-1252?Q?5oARUenQgQ/8MaITZZxxCQlbVNCMlh48Fp5KEOHjmmxB8bknFbhYzpRA?= =?Windows-1252?Q?TWJLxD/N+Rn7J7y2mKlT7GyUJxGLKkaymXg67VK852Ia6OYqHa2j9aXa?= =?Windows-1252?Q?e7O8CDicKkO+sFA0sju3zsTVIoorj1ANwPPyyHKLjZwmF6mgAFNXDBYb?= =?Windows-1252?Q?X8JWxuRufa0KQUpw03vpgGJ5Dh9rPqzrzbe4xqj2pFusixjC8HQu27L5?= =?Windows-1252?Q?KCh7CeQ9wjzGuLKCIp19YjF5bvvOpNY8iPrJGPU7ccdAzV6cL+YhlWj7?= =?Windows-1252?Q?ng51vI+Kz6x/BKHLq3hJvXYaMxX2kX94vaDAnKLxZHiY2Y0RZ7/YnqWZ?= =?Windows-1252?Q?Sbh4LiD2iE0zfLAMudmwENWA3kDFbnnqOlJaNSfH02i2uaz/n8jrwWLI?= =?Windows-1252?Q?EIts4yqH2U29N6D+qudf0GoQCHy/70nXb2MvelTD2+toV9D4gU2xjCCI?= =?Windows-1252?Q?H3D/6GhZ0v7MmBAxRcLxxxQKm/jpmdpJzgqSwM0lhGJ672c9As2hpYfz?= =?Windows-1252?Q?peoNg6MyGHfYDpQJexmKqpHtvMTj2qjak3tT6tFtWpMcCMAfTd060V4o?= =?Windows-1252?Q?AlBFTYXJJHY4UwkKAl2qJIXtd/D9D+ZWXst8RnJziPT4wl+yCf15ULd0?= =?Windows-1252?Q?R0aJgNb4YHhubI9BIcZ8PmLpGigH9y1mq57MB6M2YMRgcFyF9cSP9+Z2?= =?Windows-1252?Q?eWY9ouLRXC2Ix4t74x3TawqpzL2n4C62ryuYgqGuRn2H1/QVNKb3yDRC?= =?Windows-1252?Q?nopPyqitcDTipJUjwI2lQRS03yJ7dy/97RTSxQLYjMJaWtNx7CWg8VOK?= =?Windows-1252?Q?ZsCl1dmoreMglFHBWDlczB9Pnc2VEQi21n2zk+ck9rJlfRyrlfOzaY5P?= =?Windows-1252?Q?z/lqsshXBAUR3vlvo9eJ2lGCmadUAPHfgAaT3QgPHWXE3aAvQuXeAqnz?= =?Windows-1252?Q?HWLXJPTtus4PmwVogUbd+K41pW+P9aAdmRZx7q8uXW37UWZUeRwIs76H?= =?Windows-1252?Q?NTGz1XM4EEOW/z05c/LkjndB5ptBYzLEuRDiU+6BK+M7DHGYAJMAjV8C?= =?Windows-1252?Q?Z3dvievL5suWvacnTobvOiGqVZO+lny1+CG7C+tWrjOnlEwAxnK4+o71?= =?Windows-1252?Q?In5wWI1INIk3fl2DrcKmJ475fthHUamoxOQTz17C2P7PrOWqa4xh7Z6r?= =?Windows-1252?Q?BBP0Vz5wrE4CP2s+IDYcPFtbb1BouJ5EbAai0FW3wysp0pEOjdfX4ZyP?= =?Windows-1252?Q?hqsgGKZJkiR9TaolKvgXRevI7eHRsKs2UIZgyTytD+MLPJvB/Q9VhLLz?= =?Windows-1252?Q?oIYhgRwn//QPgvn6FqXCCZ5z0Fc6RXl/8NOqmT2r0GRh8dEga60flpCg?= =?Windows-1252?Q?QzGtAPqpC0pHQOz7eM3aERHejKG/kxAkzUZSv7JXycESWi2RQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1;DM5PR13MB0873;6:PKiAh/1InPFXowsGg7agI73Jx2SnC40zM1SSpv?= =?Windows-1252?Q?hRX+qxVB4aXd1FpkWgY7wIiZWL2i683LQkOo5zvPdNk3yVjGShy4RnwC?= =?Windows-1252?Q?CVff4FD1WETqr0Jrz4xeM9weZNcRpzaH9T8+O1L7UPSsBwR3IAn84HUx?= =?Windows-1252?Q?xTCdPT1Tcvu+bSM7mhebatUvgJYAkJ2U0VK4lMFgO+5pk7KG/hznklZg?= =?Windows-1252?Q?Y7Uwk9D4W3j3ij8wd7KBlrTR1o3JH4YUg4LRN5nebCb+M4t+RjED22Yu?= =?Windows-1252?Q?HvLOzurO6kMSdcxbZIiDlloye9TQAHL0nn52wSEH6WWW7zftDdaQVW6u?= =?Windows-1252?Q?RBuCvcDwQ0ks+B1fdiRm3Wz76o76pwQU6WMxqTNlG75b9zFybswb6nx3?= =?Windows-1252?Q?Myhtlh8hOHQYAZs5fRzVS7ikxg0GPLAsAT9CwIGR3lINIt3lsDbWKw6K?= =?Windows-1252?Q?6Zul+zL0Tl4QuYxU9vMrAJ68mCyfjzgoAt6ykIEuI7snaKUZGwXUsgsa?= =?Windows-1252?Q?1hLomRDAi9bCaTsyalMbyAdO/K5EcVEIw3yiC2vjy98tUUg/iJNYkGQg?= =?Windows-1252?Q?pZ2t7KnzU7enFcuj8+fXllLsLM2HFpUS9nysI4Xl/xy6qmV3aEHJ4D53?= =?Windows-1252?Q?0fdLWoMOpbhDaTDLzgg7gz6DdxIaNoSZPwZ6y3Wxt887Q+Z0wTQ8VXPR?= =?Windows-1252?Q?XhcNNHfCK8PbMmJzRs2TTI22POIDrYr3UkiBJ92VrvGZFRz78uGddfuB?= =?Windows-1252?Q?kAZyIUkZgEjKjiBETyQhCeXEPF9vBSJevwGd3grHni34c0ExJ1WyDsAB?= =?Windows-1252?Q?AQebTnZg1N4FBJrukR4Dnyr0t2DFO5fkzAq6vzjNWw9sAUJzUO2wY25o?= =?Windows-1252?Q?mLYBK/mKg033bgGx/7Dw7AYCKtOVOLOzywJkI+978PIQST20b8kBccBK?= =?Windows-1252?Q?jlSYcTHPDmAZzjjpUeAD3zAGwoeQYY/EafMwZjRd+v8WS8vPVccY8ITg?= =?Windows-1252?Q?FE2Jb7/d38RmE+dx4nfQikQArT9q9TSZ2wF8vX3l8E4bfD8vOa+hk35T?= =?Windows-1252?Q?JMQQMNORUhLDBrRFjb8DQM4MSad1kttExo?= X-Microsoft-Exchange-Diagnostics: 1;DM5PR13MB0873;5:H3PpK8UKSUDLdK3uNf4zG4JsjzLrbtzae88YWBCOJ2jLzGwL1WrozfTBs40Bnca7F5emRlx6IBEJnHLvm+qT0JFb5HOWpqkRYq/9WAz1AQnSrDGN8FeIEGGcuG3jErmvExNsm2LSxPo0O6FgXutVhsuiYTL8pMvCocQEfsStCutOehb3yhMmdIuD6w5AGnYzbQbsOgOgXzmdee0+gMKUBOJa0+wwiINAyauQXbpPIuBFg0iemItxA0XRAwtNCdYJjJH+pOLLsFrbWM8HRtsCrvt5ykGD52iBPAsxknp/FA8iKxGknLgd6gTxWKp3yTrQwtDZrqVFwJifup8WF6euzls2v16tR0RizVyCCvOv37scxdGlCYPpsRDnojL4WxHxFTu2qrpbCcJPi5j0/T5viVdTciYlVupZRYA252Accy5b3z3cG0/JfsEVB3O39Kym+qlCmlOnuplOhE8+fYbMrEa/MswxpvnxMDjeR+/2+qY4yrUT68yRWXHdLZdEjh+T;24:zcjRqriN7WvxQlRzGBSQAZWuDRDeB/+9ldGNsLHwCNPJ/L5YDmH12BxfDMc1D5i319soRVP2i7FhTIhKWXcbOCQSNK6sgKOdC0z58h0VDVw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR13MB0873;7:15keJBBR94JTw8aBbam93aFIcX5mLug0obwB+zkFKUB7ZXrGrzUJRHEBclN6fjyK+n0qdY7aqlCdPYkF/PERIa92DYEDDHi0j34VceGzD//S4l9rjHgBQoVfe2M/sKGia1v/zS+V6VhImmEOW69FJdE31weQCj4x3Fpr7R1xUkg1cDxUx3X+lYcCc0OcauA5TfIU41IqhGSL4Vm+D7IEvIwRyg3N17i8inCsRHyzuJbKs6bRyP8FLQqQPo3q9Tq8LOQz26PwNx4AxF4I8hm9NcxlTNxKu35QhDaIvB3vUYcwXMn9nsKLxwB7UP+FdD+dwM7uZUhtsk6UhThKecLfxSojLwItQDT0zGbwmUjyybmLqmw5U8XhfuCXZHy4B5Obd2pHR8fMn/TreRP/YCe5YQXz01Vk52MooMe9X8HhvcRZX2trunzRF7qRfBBkOTVsB2iqdlwiBBgnSMqXjghLXiLvVK0kZ8HryyLgoOVBK4+QxcoEQZlvksadHavZkGaWph1dDVboDGXqYd+Ae5JN40oTbok5qdcVG+z2ThslubztrK+l3wuDTMqUUgehemRuizhONpK+P5WpfC3Qf7GA3M5ALcnfJYV5//LmbDNqJASGkI4zxKC3ZOeHHyOlrL56zHsxGrpBjV44RDW00lNDgpF1Zn47BSMk061uAtdQ5CeMPYOK4h6eqEpQFCf/Prd7chAb5gYG6ftfOZPIMZS1EjD9p9P86S+pXM4Y3SxU+GLerxq4nsNsy0tUNGgxRXK9h7rQe7+q90qkhQJBxx3eSsn3c1VVpKIYGX/ckwFSy1A= X-OriginatorOrg: sony.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2017 01:52:01.0407 (UTC) X-MS-Exchange-CrossTenant-Id: 66c65d8a-9158-4521-a2d8-664963db48e4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=66c65d8a-9158-4521-a2d8-664963db48e4;Ip=[117.103.190.41];Helo=[JPYOKXEG101.jp.sony.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR13MB0873 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 14642 Lines: 396 On 2017/06/26 10:24, Mauro Carvalho Chehab wrote: > Em Sun, 25 Jun 2017 09:15:06 -0300 > Mauro Carvalho Chehab escreveu: > >> Em Fri, 23 Jun 2017 10:02:39 -0300 >> Mauro Carvalho Chehab escreveu: >> >>> Em Mon, 19 Jun 2017 16:56:13 +0900 >>> "Takiguchi, Yasunari" escreveu: >>> >>>>>> +static int cxd2880_get_frontend_t(struct dvb_frontend *fe, >>>>>> + struct dtv_frontend_properties *c) >>>>>> +{ >>>>>> + enum cxd2880_ret ret = CXD2880_RESULT_OK; >>>>>> + int result = 0; >>>>>> + struct cxd2880_priv *priv = NULL; >>>>>> + enum cxd2880_dvbt_mode mode = CXD2880_DVBT_MODE_2K; >>>>>> + enum cxd2880_dvbt_guard guard = CXD2880_DVBT_GUARD_1_32; >>>>>> + struct cxd2880_dvbt_tpsinfo tps; >>>>>> + enum cxd2880_tnrdmd_spectrum_sense sense; >>>>>> + u16 snr = 0; >>>>>> + int strength = 0; >>>>>> + u32 pre_bit_err = 0, pre_bit_count = 0; >>>>>> + u32 post_bit_err = 0, post_bit_count = 0; >>>>>> + u32 block_err = 0, block_count = 0; >>>>>> + >>>>>> + if ((!fe) || (!c)) { >>>>>> + pr_err("%s: invalid arg\n", __func__); >>>>>> + return -EINVAL; >>>>>> + } >>>>>> + >>>>>> + priv = (struct cxd2880_priv *)fe->demodulator_priv; >>>>>> + >>>>>> + mutex_lock(priv->spi_mutex); >>>>>> + ret = cxd2880_tnrdmd_dvbt_mon_mode_guard(&priv->tnrdmd, >>>>>> + &mode, &guard); >>>>>> + mutex_unlock(priv->spi_mutex); >>>>>> + if (ret == CXD2880_RESULT_OK) { >>>>>> + switch (mode) { >>>>>> + case CXD2880_DVBT_MODE_2K: >>>>>> + c->transmission_mode = TRANSMISSION_MODE_2K; >>>>>> + break; >>>>>> + case CXD2880_DVBT_MODE_8K: >>>>>> + c->transmission_mode = TRANSMISSION_MODE_8K; >>>>>> + break; >>>>>> + default: >>>>>> + c->transmission_mode = TRANSMISSION_MODE_2K; >>>>>> + dev_err(&priv->spi->dev, "%s: get invalid mode %d\n", >>>>>> + __func__, mode); >>>>>> + break; >>>>>> + } >>>>>> + switch (guard) { >>>>>> + case CXD2880_DVBT_GUARD_1_32: >>>>>> + c->guard_interval = GUARD_INTERVAL_1_32; >>>>>> + break; >>>>>> + case CXD2880_DVBT_GUARD_1_16: >>>>>> + c->guard_interval = GUARD_INTERVAL_1_16; >>>>>> + break; >>>>>> + case CXD2880_DVBT_GUARD_1_8: >>>>>> + c->guard_interval = GUARD_INTERVAL_1_8; >>>>>> + break; >>>>>> + case CXD2880_DVBT_GUARD_1_4: >>>>>> + c->guard_interval = GUARD_INTERVAL_1_4; >>>>>> + break; >>>>>> + default: >>>>>> + c->guard_interval = GUARD_INTERVAL_1_32; >>>>>> + dev_err(&priv->spi->dev, "%s: get invalid guard %d\n", >>>>>> + __func__, guard); >>>>>> + break; >>>>>> + } >>>>>> + } else { >>>>>> + c->transmission_mode = TRANSMISSION_MODE_2K; >>>>>> + c->guard_interval = GUARD_INTERVAL_1_32; >>>>>> + dev_dbg(&priv->spi->dev, >>>>>> + "%s: ModeGuard err %d\n", __func__, ret); >>>>>> + } >>>>>> + >>>>>> + mutex_lock(priv->spi_mutex); >>>>>> + ret = cxd2880_tnrdmd_dvbt_mon_tps_info(&priv->tnrdmd, &tps); >>>>>> + mutex_unlock(priv->spi_mutex); >>>>>> + if (ret == CXD2880_RESULT_OK) { >>>>>> + switch (tps.hierarchy) { >>>>>> + case CXD2880_DVBT_HIERARCHY_NON: >>>>>> + c->hierarchy = HIERARCHY_NONE; >>>>>> + break; >>>>>> + case CXD2880_DVBT_HIERARCHY_1: >>>>>> + c->hierarchy = HIERARCHY_1; >>>>>> + break; >>>>>> + case CXD2880_DVBT_HIERARCHY_2: >>>>>> + c->hierarchy = HIERARCHY_2; >>>>>> + break; >>>>>> + case CXD2880_DVBT_HIERARCHY_4: >>>>>> + c->hierarchy = HIERARCHY_4; >>>>>> + break; >>>>>> + default: >>>>>> + c->hierarchy = HIERARCHY_NONE; >>>>>> + dev_err(&priv->spi->dev, >>>>>> + "%s: TPSInfo hierarchy invalid %d\n", >>>>>> + __func__, tps.hierarchy); >>>>>> + break; >>>>>> + } >>>>>> + >>>>>> + switch (tps.rate_hp) { >>>>>> + case CXD2880_DVBT_CODERATE_1_2: >>>>>> + c->code_rate_HP = FEC_1_2; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CODERATE_2_3: >>>>>> + c->code_rate_HP = FEC_2_3; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CODERATE_3_4: >>>>>> + c->code_rate_HP = FEC_3_4; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CODERATE_5_6: >>>>>> + c->code_rate_HP = FEC_5_6; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CODERATE_7_8: >>>>>> + c->code_rate_HP = FEC_7_8; >>>>>> + break; >>>>>> + default: >>>>>> + c->code_rate_HP = FEC_NONE; >>>>>> + dev_err(&priv->spi->dev, >>>>>> + "%s: TPSInfo rateHP invalid %d\n", >>>>>> + __func__, tps.rate_hp); >>>>>> + break; >>>>>> + } >>>>>> + switch (tps.rate_lp) { >>>>>> + case CXD2880_DVBT_CODERATE_1_2: >>>>>> + c->code_rate_LP = FEC_1_2; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CODERATE_2_3: >>>>>> + c->code_rate_LP = FEC_2_3; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CODERATE_3_4: >>>>>> + c->code_rate_LP = FEC_3_4; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CODERATE_5_6: >>>>>> + c->code_rate_LP = FEC_5_6; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CODERATE_7_8: >>>>>> + c->code_rate_LP = FEC_7_8; >>>>>> + break; >>>>>> + default: >>>>>> + c->code_rate_LP = FEC_NONE; >>>>>> + dev_err(&priv->spi->dev, >>>>>> + "%s: TPSInfo rateLP invalid %d\n", >>>>>> + __func__, tps.rate_lp); >>>>>> + break; >>>>>> + } >>>>>> + switch (tps.constellation) { >>>>>> + case CXD2880_DVBT_CONSTELLATION_QPSK: >>>>>> + c->modulation = QPSK; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CONSTELLATION_16QAM: >>>>>> + c->modulation = QAM_16; >>>>>> + break; >>>>>> + case CXD2880_DVBT_CONSTELLATION_64QAM: >>>>>> + c->modulation = QAM_64; >>>>>> + break; >>>>>> + default: >>>>>> + c->modulation = QPSK; >>>>>> + dev_err(&priv->spi->dev, >>>>>> + "%s: TPSInfo constellation invalid %d\n", >>>>>> + __func__, tps.constellation); >>>>>> + break; >>>>>> + } >>>>>> + } else { >>>>>> + c->hierarchy = HIERARCHY_NONE; >>>>>> + c->code_rate_HP = FEC_NONE; >>>>>> + c->code_rate_LP = FEC_NONE; >>>>>> + c->modulation = QPSK; >>>>>> + dev_dbg(&priv->spi->dev, >>>>>> + "%s: TPS info err %d\n", __func__, ret); >>>>>> + } >>>>>> + >>>>>> + mutex_lock(priv->spi_mutex); >>>>>> + ret = cxd2880_tnrdmd_dvbt_mon_spectrum_sense(&priv->tnrdmd, &sense); >>>>>> + mutex_unlock(priv->spi_mutex); >>>>>> + if (ret == CXD2880_RESULT_OK) { >>>>>> + switch (sense) { >>>>>> + case CXD2880_TNRDMD_SPECTRUM_NORMAL: >>>>>> + c->inversion = INVERSION_OFF; >>>>>> + break; >>>>>> + case CXD2880_TNRDMD_SPECTRUM_INV: >>>>>> + c->inversion = INVERSION_ON; >>>>>> + break; >>>>>> + default: >>>>>> + c->inversion = INVERSION_OFF; >>>>>> + dev_err(&priv->spi->dev, >>>>>> + "%s: spectrum sense invalid %d\n", >>>>>> + __func__, sense); >>>>>> + break; >>>>>> + } >>>>>> + } else { >>>>>> + c->inversion = INVERSION_OFF; >>>>>> + dev_dbg(&priv->spi->dev, >>>>>> + "%s: spectrum_sense %d\n", __func__, ret); >>>>>> + } >>>>>> + >>>>>> + mutex_lock(priv->spi_mutex); >>>>>> + ret = cxd2880_tnrdmd_mon_rf_lvl(&priv->tnrdmd, &strength); >>>>>> + mutex_unlock(priv->spi_mutex); >>>>>> + if (ret == CXD2880_RESULT_OK) { >>>>>> + c->strength.len = 1; >>>>>> + c->strength.stat[0].scale = FE_SCALE_DECIBEL; >>>>>> + c->strength.stat[0].svalue = strength; >>>>>> + } else { >>>>>> + c->strength.len = 1; >>>>>> + c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; >>>>>> + dev_dbg(&priv->spi->dev, "%s: mon_rf_lvl %d\n", >>>>>> + __func__, result); >>>>>> + } >>>>>> + >>>>>> + result = cxd2880_read_snr(fe, &snr); >>>>>> + if (!result) { >>>>>> + c->cnr.len = 1; >>>>>> + c->cnr.stat[0].scale = FE_SCALE_DECIBEL; >>>>>> + c->cnr.stat[0].svalue = snr; >>>>>> + } else { >>>>>> + c->cnr.len = 1; >>>>>> + c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; >>>>>> + dev_dbg(&priv->spi->dev, "%s: read_snr %d\n", __func__, result); >>>>>> + } >>>>>> + >>>>>> + mutex_lock(priv->spi_mutex); >>>>>> + ret = cxd2880_pre_bit_err_t(&priv->tnrdmd, &pre_bit_err, >>>>>> + &pre_bit_count); >>>>> >>>>> Hmm... reading BER-based measures at get_frontend() may not be >>>>> the best idea, depending on how the hardware works. >>>>> >>>>> I mean, you need to be sure that, if userspace is calling it too >>>>> often, it won't affect the hardware or the measurement. >>>>> >>>>> On other drivers, where each call generates an I2C access, >>>>> we do that by moving the code that actually call the hardware >>>>> at get status, and we use jiffies to be sure that it won't be >>>>> called too often. >>>>> >>>>> I dunno if, on your SPI design, this would be an issue or not. >>>> >>>> CXD2880 IC can accept frequently counter register access by SPI. >>>> Even if such access occurred, it will not affect to IC behavior. >>>> We checked Sony demodulator IC driver code, dvb_frontends/cxd2841er.c and it reads register information >>>> when get_frontend called. >>>> >>>> In fact, CXD2880 IC do NOT have bit error/packet error counter function to achieve DVB framework API completely. >>>> Sorry for long explanation, but I'll write in detail. >>>> >>>> DTV_STAT_PRE_ERROR_BIT_COUNT >>>> DTV_STAT_PRE_TOTAL_BIT_COUNT >>>> DTV_STAT_POST_ERROR_BIT_COUNT >>>> DTV_STAT_POST_TOTAL_BIT_COUNT >>>> DTV_STAT_ERROR_BLOCK_COUNT >>>> DTV_STAT_TOTAL_BLOCK_COUNT >>>> >>>> From DVB framework documentation, it seems that the demodulator hardware should have counter >>>> to accumulate total bit/packet count to decode, and bit/packet error corrected by FEC. >>>> But unfortunately, CXD2880 demodulator does not have such function. >>> >>> No, this is not a requirement. What actually happens is that userspace >>> expect those values to be monotonically incremented, as new data is >>> made available. >>> >>>> >>>> Instead of it, Sony demodulator has bit/packet error counter for BER, PER calculation. >>>> The user should configure total bit/packet count (denominator) for BER/PER measurement by some register setting. >>> >>> Yeah, that's a common practice: usually, the counters are initialized >>> by some registers (on a few hardware, it is hardcoded). >>> >>>> The IC hardware will update the error counter automatically in period determined by >>>> configured total bit/packet count (denominator). >>> >>> So, the driver need to be sure that it won't read the register too >>> early, e. g. it should either be reading some register bits to know >>> when to read the data, or it needs a logic that will estimate when >>> the data will be ready, not updating the values to early. >>> >>> An example of the first case is the mb86a20s. There, you can see at: >>> mb86a20s_get_pre_ber(): >>> >>> /* Check if the BER measures are already available */ >>> rc = mb86a20s_readreg(state, 0x54); >>> if (rc < 0) >>> return rc; >>> >>> /* Check if data is available for that layer */ >>> if (!(rc & (1 << layer))) { >>> dev_dbg(&state->i2c->dev, >>> "%s: preBER for layer %c is not available yet.\n", >>> __func__, 'A' + layer); >>> return -EBUSY; >>> } >>> >>> An example of the second case is dib8000. There, you can see at: >>> dib8000_get_stats(): >>> >>> >>> /* Check if time for stats was elapsed */ >>> if (time_after(jiffies, state->per_jiffies_stats)) { >>> state->per_jiffies_stats = jiffies + msecs_to_jiffies(1000); >>> >>> ... >>> /* Get UCB measures */ >>> dib8000_read_unc_blocks(fe, &val); >>> if (val < state->init_ucb) >>> state->init_ucb += 0x100000000LL; >>> >>> c->block_error.stat[0].scale = FE_SCALE_COUNTER; >>> c->block_error.stat[0].uvalue = val + state->init_ucb; >>> >>> /* Estimate the number of packets based on bitrate */ >>> if (!time_us) >>> time_us = dib8000_get_time_us(fe, -1); >>> >>> if (time_us) { >>> blocks = 1250000ULL * 1000000ULL; >>> do_div(blocks, time_us * 8 * 204); >>> c->block_count.stat[0].scale = FE_SCALE_COUNTER; >>> c->block_count.stat[0].uvalue += blocks; >>> } >>> >>> show_per_stats = 1; >>> } >>> >>> At the above, the hardware is set to provide the number of uncorrected >>> blocks on every second, and the logic there calculates the number of >>> blocks based on the bitrate. It shouldn't be hard to do the opposite >>> (e. g. set the hardware for a given number of blocks and calculate >>> the time - I remember I coded it already - just don't remember on >>> what driver - perhaps on an earlier implementation at mb86a20s). >>> >>> In any case, as the code will require periodic pulls, in order >>> to provide monotonic counters, we implement it via get_stats(), as >>> the DVB core will ensure that it will be called periodically >>> (typically 3 times per second). >>> >>>> >>>> So, we implemented like as follows. >>>> >>>> DTV_STAT_PRE_ERROR_BIT_COUNT >>>> DTV_STAT_POST_ERROR_BIT_COUNT >>>> DTV_STAT_ERROR_BLOCK_COUNT >>>> => Return bit/packet error counter value in period determined by configured total bit/packet count (numerator). >>>> >>>> DTV_STAT_PRE_TOTAL_BIT_COUNT >>>> DTV_STAT_POST_TOTAL_BIT_COUNT >>>> DTV_STAT_TOTAL_BLOCK_COUNT >>>> => Return currently configured total bit/packet count (denominator). >>>> >>>> By this implementation, the user can calculate BER, PER by following calculation. >>>> >>>> DTV_STAT_PRE_ERROR_BIT_COUNT / DTV_STAT_PRE_TOTAL_BIT_COUNT >>>> DTV_STAT_POST_ERROR_BIT_COUNT / DTV_STAT_POST_TOTAL_BIT_COUNT >>>> DTV_STAT_ERROR_BLOCK_COUNT / DTV_STAT_TOTAL_BLOCK_COUNT >>>> >>>> But instead, DTV_STAT_XXX_ERROR_XXX_COUNT values are not monotonically increased, >>>> and DTV_STAT_XXX_TOTAL_XX_COUNT will return fixed value. >>> >>> That's wrong. you should be doing: >>> >>> DTV_STAT_TOTAL_BLOCK_COUNT += number_of_blocks >>> >>> every time the block counter registers are updated (and the >>> same for the total bit counter). >> >> Btw, as we had another developer with some doubts about stats >> implementation, I wrote a chapter at the documentation in >> order to explain how to properly implement it: >> >> https://linuxtv.org/downloads/v4l-dvb-apis-new/kapi/dtv-core.html#digital-tv-frontend-statistics > > I added a few more patches today, improving the docs. They're not > yet upstream, but you can see the documentation at this link: > > https://www.infradead.org/~mchehab/kernel_docs/media/kapi/dtv-core.html#digital-tv-frontend-kabi Thanks a lot for your detail explanation. We understood your thought. In fact, CXD2880 does NOT have mb86a20s like registers to know that the error counters are updated from previous read or not. In addition, unfortunately, CXD2880 does NOT have a feature that the user can configure the error counter update period by time. So, as you wrote in the documentation at above link, we'll need to implement like: ?the driver need to ensure that it won?t be reading from the register too often and/or estimate the total number of bits/blocks.? We'll discuss how to do it internally. Thanks Takiguchi