From: Mauro Carvalho Chehab <mchehab@s-opensource.com>
To: "Takiguchi, Yasunari" <Yasunari.Takiguchi@sony.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
"tbird20d@gmail.com" <tbird20d@gmail.com>,
"frowand.list@gmail.com" <frowand.list@gmail.com>,
"Yamamoto, Masayuki" <Masayuki.Yamamoto@sony.com>,
"Nozawa, Hideki (STWN)" <Hideki.Nozawa@sony.com>,
"Yonezawa, Kota" <Kota.Yonezawa@sony.com>,
"Matsumoto, Toshihiko" <Toshihiko.Matsumoto@sony.com>,
"Watanabe, Satoshi (SSS)" <Satoshi.C.Watanabe@sony.com>
Subject: Re: [PATCH v3 05/14] [media] cxd2880: Add tuner part of the driver
Date: Thu, 7 Sep 2017 07:26:25 -0300 [thread overview]
Message-ID: <20170907072625.460caacf@vento.lan> (raw)
In-Reply-To: <22918ced-b130-abf6-847d-369b7a5c0ebf@sony.com>
Em Thu, 7 Sep 2017 19:12:57 +0900
"Takiguchi, Yasunari" <Yasunari.Takiguchi@sony.com> escreveu:
> Dear Mauro
>
> Thanks for your review and reply.
>
> We are going to discuss how to change our code with your comments internally.
>
> I reply for your 2 comments,
>
> >> [Change list]
> >> Changes in V3
> >> drivers/media/dvb-frontends/cxd2880/cxd2880_dtv.h
> >> -removed code relevant to ISDB-T
> >
> > Just curiosity here: why is it removed?
> We decided to withhold the ISDB-T functionality as it contains some company proprietary code.
I'm sorry to hear. I hope that such code could be released
on some future.
> >> + if (ret)
> >> + return ret;
> >> + if ((sys == CXD2880_DTV_SYS_DVBT2) && en_fef_intmtnt_ctrl) {
> >> + data[0] = 0x01;
> >> + data[1] = 0x01;
> >> + data[2] = 0x01;
> >> + data[3] = 0x01;
> >> + data[4] = 0x01;
> >> + data[5] = 0x01;
> >> + } else {
> >> + data[0] = 0x00;
> >> + data[1] = 0x00;
> >> + data[2] = 0x00;
> >> + data[3] = 0x00;
> >> + data[4] = 0x00;
> >> + data[5] = 0x00;
> >> + }
> >
> > Instead, just do:
> >
> > if ((sys == CXD2880_DTV_SYS_DVBT2) && en_fef_intmtnt_ctrl)
> > memset(data, 0x01, sizeof(data));
> > else
> > memset(data, 0x00, sizeof(data));
> >
> >> + ret = tnr_dmd->io->write_regs(tnr_dmd->io,
> >> + CXD2880_IO_TGT_SYS,
> >> + 0xef, data, 6);
> >> + if (ret)
> >> + return ret;
> >> +
> >> + ret = tnr_dmd->io->write_reg(tnr_dmd->io,
> >> + CXD2880_IO_TGT_DMD,
> >> + 0x00, 0x2d);
> >> + if (ret)
> >> + return ret;
> >
> >> + if ((sys == CXD2880_DTV_SYS_DVBT2) && en_fef_intmtnt_ctrl)
> >> + data[0] = 0x00;
> >> + else
> >> + data[0] = 0x01;
> >
> > Not actually needed, as the previous logic already set data[0]
> > accordingly.
> >
> >> + ret = tnr_dmd->io->write_reg(tnr_dmd->io,
> >> + CXD2880_IO_TGT_DMD,
> >> + 0xb1, data[0]);
>
> In this case、logic of data[0]( logic of if() ) is different from that of previous one.
> And with setting register for address 0xb1, a bug might occur in the future,
> if our software specification (sequence) is changed.
> So we would like to keep setting value of data[0] for address 0xb1.
OK. Better to document it then, as otherwise someone might
end by sending cleanup patches that would touch it.
>
> Thanks,
> Takiguchi
Thanks,
Mauro
next prev parent reply other threads:[~2017-09-07 10:26 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-16 4:17 [PATCH v3 00/14] [dt-bindings] [media] Add document file and driver for Sony CXD2880 DVB-T2/T tuner + demodulator Yasunari.Takiguchi-7U/KSKJipcs
2017-08-16 4:24 ` [PATCH v3 01/14] [dt-bindings] [media] Add document file for CXD2880 SPI I/F Yasunari.Takiguchi
2017-08-16 4:33 ` [PATCH v3 03/14] [media] cxd2880: Add common files for the driver Yasunari.Takiguchi
[not found] ` <20170816041714.20551-1-Yasunari.Takiguchi-7U/KSKJipcs@public.gmane.org>
2017-08-16 4:25 ` [PATCH v3 02/14] [media] cxd2880-spi: Add support for CXD2880 SPI interface Yasunari.Takiguchi-7U/KSKJipcs
2017-08-16 4:35 ` [PATCH v3 04/14] [media] cxd2880: Add spi device IO routines Yasunari.Takiguchi-7U/KSKJipcs
2017-08-16 4:40 ` [PATCH v3 08/14] [media] cxd2880: Add DVB-T control functions the driver Yasunari.Takiguchi-7U/KSKJipcs
2017-08-27 15:17 ` Mauro Carvalho Chehab
2017-08-16 4:41 ` [PATCH v3 09/14] [media] cxd2880: Add DVB-T monitor and integration layer functions Yasunari.Takiguchi-7U/KSKJipcs
[not found] ` <20170816044142.21587-1-Yasunari.Takiguchi-7U/KSKJipcs@public.gmane.org>
2017-08-27 15:34 ` Mauro Carvalho Chehab
2017-08-16 4:42 ` [PATCH v3 10/14] [media] cxd2880: Add DVB-T2 control functions for the driver Yasunari.Takiguchi-7U/KSKJipcs
[not found] ` <20170816044232.21635-1-Yasunari.Takiguchi-7U/KSKJipcs@public.gmane.org>
2017-08-27 15:38 ` Mauro Carvalho Chehab
2017-08-16 4:43 ` [PATCH v3 11/14] [media] cxd2880: Add DVB-T2 monitor and integration layer functions Yasunari.Takiguchi-7U/KSKJipcs
[not found] ` <20170816044341.21683-1-Yasunari.Takiguchi-7U/KSKJipcs@public.gmane.org>
2017-08-27 15:44 ` Mauro Carvalho Chehab
2017-08-16 4:44 ` [PATCH v3 12/14] [media] cxd2880: Add all Makefile files for the driver Yasunari.Takiguchi-7U/KSKJipcs
2017-08-16 4:45 ` [PATCH v3 13/14] [media] cxd2880: Add all Kconfig " Yasunari.Takiguchi-7U/KSKJipcs
2017-08-16 4:37 ` [PATCH v3 05/14] [media] cxd2880: Add tuner part of " Yasunari.Takiguchi
[not found] ` <20170816043714.21394-1-Yasunari.Takiguchi-7U/KSKJipcs@public.gmane.org>
2017-08-27 14:45 ` Mauro Carvalho Chehab
2017-08-27 14:52 ` Mauro Carvalho Chehab
2017-09-07 10:12 ` Takiguchi, Yasunari
2017-09-07 10:26 ` Mauro Carvalho Chehab [this message]
2017-08-16 4:38 ` [PATCH v3 06/14] [media] cxd2880: Add integration layer for " Yasunari.Takiguchi
2017-08-16 4:39 ` [PATCH v3 07/14] [media] cxd2880: Add top level of " Yasunari.Takiguchi
[not found] ` <20170816043945.21492-1-Yasunari.Takiguchi-7U/KSKJipcs@public.gmane.org>
2017-08-27 15:12 ` Mauro Carvalho Chehab
2017-08-16 4:47 ` [PATCH v3 14/14] [media] cxd2880 : Update MAINTAINERS file for CXD2880 driver Yasunari.Takiguchi
2017-08-16 8:02 ` Takiguchi, Yasunari
2017-08-27 15:48 ` Mauro Carvalho Chehab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170907072625.460caacf@vento.lan \
--to=mchehab@s-opensource.com \
--cc=Hideki.Nozawa@sony.com \
--cc=Kota.Yonezawa@sony.com \
--cc=Masayuki.Yamamoto@sony.com \
--cc=Satoshi.C.Watanabe@sony.com \
--cc=Toshihiko.Matsumoto@sony.com \
--cc=Yasunari.Takiguchi@sony.com \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=tbird20d@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).