Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp102582imm; Wed, 4 Jul 2018 18:59:43 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRfq2aPDVShs4Rzhyqbk8Il+7bTNUFQHKRf0cE/R1m3p5qdvmgpgoWvJ150vTLLzWxs6W1 X-Received: by 2002:a17:902:9a06:: with SMTP id v6-v6mr4144555plp.21.1530755982953; Wed, 04 Jul 2018 18:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530755982; cv=none; d=google.com; s=arc-20160816; b=Wq90eiJedYSuUElXjR3EB3lU0V6PNTyDe1uLZ5odmtxVvQ3nRANSRWf978WE0SmewR K7A4SsF6Wpw26eiCL7rIaEXvItSVdvYIOW6GB/G6rRxqEXbarU0LgFkej7ja/JUqDUTe TVSmM9YgoGWSSFAkfwEGy1D8Ul7qStwY3zl1QLw3PgILZrVcEVCEUpuvIEpoGYpNzPKF lcZXjRcBG7zPmhBbHqT27dgCLa868E9zJcBOWOAmcZLnPN6sK04DwKYJgEr6HS3oVFMY ykQQDQKeD6orSycQ4NLXRlGOOPCATLJqc3d1054Cu+VxMaqXx4nz/9AmrCjuygyK8njl arhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:arc-authentication-results; bh=aUbkQ2cZy6lwAvwPLhPaAoGhBJ7e1cAZUrKkJjk8Doo=; b=hi6+zjJkcPKzf2z2OijTvo00z2jrLqtXx2LvvI0IMN+TDpMJdBzgsHHLtLJI0rwxzU x+ILFjvhzdHzLzYbh/CPRm+Wn963NswQSJHpfMsoJLW778KyYuQ1RxtSMi7j0VesMeqj cs/giGvhWObmlK3H4rgcMGArjbbzxjfF44KvBDgXJD0xSV39GfxVAxulYAXk/4ykC0DC RETzA9UCE9G0AS0bSAnZJEDFmiiKCsEfyc+DXS3GeIA/bN0FSHRsm+7tjrnLSVDh9H9n 5TQv06I3oxNefiGRgImqC46IocBO823WyPg3oVPM7aRRyrtbeI37h0W30IXjjfz1xd9K aZuA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z73-v6si4353417pgd.484.2018.07.04.18.59.26; Wed, 04 Jul 2018 18:59:42 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753041AbeGEB6t (ORCPT + 99 others); Wed, 4 Jul 2018 21:58:49 -0400 Received: from mx.socionext.com ([202.248.49.38]:54137 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752957AbeGEB6r (ORCPT ); Wed, 4 Jul 2018 21:58:47 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 05 Jul 2018 10:58:46 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 21ADD180B52; Thu, 5 Jul 2018 10:58:46 +0900 (JST) Received: from 172.31.9.53 (172.31.9.53) by m-FILTER with ESMTP; Thu, 5 Jul 2018 10:58:46 +0900 Received: from yuzu.css.socionext.com (yuzu [172.31.8.45]) by iyokan.css.socionext.com (Postfix) with ESMTP id A1CD44035E; Thu, 5 Jul 2018 10:58:45 +0900 (JST) Received: from DESKTOPFLNNJ4T (unknown [10.213.132.95]) by yuzu.css.socionext.com (Postfix) with ESMTP id 7C92E120A81; Thu, 5 Jul 2018 10:58:45 +0900 (JST) From: "Katsuhiro Suzuki" To: "'Mauro Carvalho Chehab'" , =?iso-2022-jp?B?U3V6dWtpLCBLYXRzdWhpcm8vGyRCTmtMWhsoQiAbJEI+IUduGyhC?= Cc: , "Masami Hiramatsu" , "Jassi Brar" , , References: <20180621031748.21703-1-suzuki.katsuhiro@socionext.com> <20180704135657.3fd607cb@coco.lan> In-Reply-To: <20180704135657.3fd607cb@coco.lan> Subject: Re: [PATCH v3] media: dvb-frontends: add Socionext SC1501A ISDB-S/T demodulator driver Date: Thu, 5 Jul 2018 10:58:42 +0900 Message-ID: <000401d41403$b33db490$19b91db0$@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHUCQ54MjjlTBc86EWbqPvQU8s0kqR+x14AgAEazrA= Content-Language: ja x-securitypolicycheck: OK by SHieldMailChecker v2.5.2 x-shieldmailcheckerpolicyversion: POLICY180220 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mauro, > -----Original Message----- > From: Mauro Carvalho Chehab > Sent: Thursday, July 5, 2018 1:58 AM > To: Suzuki, Katsuhiro/鈴木 勝博 > Cc: linux-media@vger.kernel.org; Masami Hiramatsu ; > Jassi Brar ; linux-arm-kernel@lists.infradead.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH v3] media: dvb-frontends: add Socionext SC1501A ISDB-S/T > demodulator driver > > Hi Katsuhiro-san, > > Em Thu, 21 Jun 2018 12:17:48 +0900 > Katsuhiro Suzuki escreveu: > > > This patch adds a frontend driver for the Socionext SC1501A series > > and Socionext MN88443x ISDB-S/T demodulators. > > Sorry for taking so long to review it. We're missing a sub-maintainer > for DVB, with would otherwise speed up reviews of DVB patches. No problem, thank you for reviewing! I appreciate it. > > > > The maximum and minimum frequency of Socionext SC1501A comes from > > ISDB-S and ISDB-T so frequency range is the following: > > - ISDB-S (BS/CS110 IF frequency in kHz, Local freq 10.678GHz) > > - Min: BS-1: 1032000 => 1032.23MHz > > - Max: ND24: 2701000 => 2070.25MHz > > - ISDB-T (in Hz) > > - Min: ch13: 470000000 => 470.357857MHz > > - Max: ch62: 770000000 => 769.927857MHz > > There is actually an error on that part of the driver. Right now, > the DVB core expects Satellite frequencies (DVB-S, ISDB-S, ...) > in kHz. For all other delivery systems, it is in Hz. > > It is this way due to historic reasons. While it won't be hard to > change the core, that would require to touch all Satellite drivers. > > As there are very few frontend drivers that accept both Satellite > and Terrestrial standards, what we do, instead, is to setup > two frontends. See, for example, drivers/media/dvb-frontends/helene.c. > Thank you for describing it. I understand our device is rare case, and the reason why Helene has Terrestrial and Satellite structures. I'm using MN884434 device that has 2 cores. I want to setup DVB adapter devices (/dev/dvb/adapter0/*) for our frontend system as the following: - adapter0: for core 0, ISDB-T, ISDB-S - adapter1: for core 1, ISDB-T, ISDB-S But it seems one DVB adapter device support only ISDB-T or only ISDB-S if I divide structures. So I define the adapters as the following: - adapter0: for core 0, ISDB-T - adapter1: for core 0, ISDB-S - adapter2: for core 1, ISDB-T - adapter3: for core 1, ISDB-S Is this correct? > ... > > +static const struct dvb_frontend_ops sc1501a_ops = { > > + .delsys = { SYS_ISDBS, SYS_ISDBT }, > > + .info = { > > + .name = "Socionext SC1501A", > > + .frequency_min = 1032000, > > + .frequency_max = 770000000, > > + .caps = FE_CAN_INVERSION_AUTO | FE_CAN_FEC_AUTO | > > + FE_CAN_QAM_AUTO | FE_CAN_TRANSMISSION_MODE_AUTO | > > + FE_CAN_GUARD_INTERVAL_AUTO | FE_CAN_HIERARCHY_AUTO, > > + }, > > + > > + .sleep = sc1501a_sleep, > > + .set_frontend = sc1501a_set_frontend, > > + .get_tune_settings = sc1501a_get_tune_settings, > > + .read_status = sc1501a_read_status, > > +}; > > In other words, you'll need to declare two structs here, one for ISDB-T > and another one for ISDB-S. > OK, I'm going to divide this structure for Terrestrial and Satellite. And add attach functions same as Helene driver. I'll send v4 patch. > Yeah, I know that this sucks. If you are in the mood of touching the > DVB core, I'm willing to consider a patch that would fix this, provided > that it won't break backward compatibility with other drivers (or would > convert the other satellite drivers to use the new way). > > Thanks, > Mauro Hmm, I don't know the details of DVB core, I try to investigate it. Regards, -- Katsuhiro Suzuki