From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 In-Reply-To: <20170812140116.pjcswhe5mylns7x4@ninjato> References: <1502422578-30611-1-git-send-email-andy.yan@rock-chips.com> <1502422753-30725-1-git-send-email-andy.yan@rock-chips.com> <20170812140116.pjcswhe5mylns7x4@ninjato> From: Andy Yan Date: Sat, 12 Aug 2017 22:30:10 +0800 Message-ID: Subject: Re: [PATCH v3 02/13] i2c: rk3x: add support for rv1108 Content-Type: multipart/alternative; boundary="94eb2c1a23645f469b05568f4412" To: Wolfram Sang Cc: Andy Yan , Heiko Stuebner , robh+dt@kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org List-ID: --94eb2c1a23645f469b05568f4412 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Wolfram: 2017-08-12 22:01 GMT+08:00 Wolfram Sang : > Hi, > > > +static const struct rk3x_i2c_soc_data rv1108_soc_data =3D { > > + .grf_offset =3D -1, > > + .calc_timings =3D rk3x_i2c_v1_calc_timings, > > +}; > > + > > I don't care super much, but why don't you reuse rk3399_soc_data()? > Or even use the rk3399 compatible as fallback value? > > Actually, there is one I2C controller(I2C2) has a different feature with all the other rockchip soc.The I2C2 is not used on my current board. But I plan to add this feature later=E3=80=82 So I give RV1108 a new compatible s= tring here=E3=80=82 Kind regards, > > Wolfram > > --94eb2c1a23645f469b05568f4412 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Wolfram:

2017-08-12 22:01 GMT+08:00 Wolfram Sang <wsa@the-dreams.de&= gt;:
Hi,

> +static const struct rk3x_i2c_soc_data rv1108_soc_data =3D {
> +=C2=A0 =C2=A0 =C2=A0.grf_offset =3D -1,
> +=C2=A0 =C2=A0 =C2=A0.calc_timings =3D rk3x_i2c_v1_calc_timings,
> +};
> +

I don't care super much, but why don't you reuse rk3399_soc_= data()?
Or even use the rk3399 compatible as fallback value?


Actually, there is one I2C controller(= I2C2) has a different feature with all the other rockchip soc.The I2C2 is n= ot used on my current board. But I plan to add this feature later=E3=80=82 = So I give RV1108 a new compatible string here=E3=80=82=C2=A0

=
Kind regards,

=C2=A0 =C2=A0Wolfram


--94eb2c1a23645f469b05568f4412--