Re: [PATCH net] ptp: ptp_clockmatrix: use i2c_master_send for i2c write

2020-08-17 Thread David Miller
From: Date: Mon, 17 Aug 2020 11:37:35 -0400 > @@ -53,7 +53,9 @@ > > #define OUTPUT_MODULE_FROM_INDEX(index) (OUTPUT_0 + (index) * 0x10) > > -#define PEROUT_ENABLE_OUTPUT_MASK(0xdeadbeef) > +#define PEROUT_ENABLE_OUTPUT_MASK(0xdeadbeef) > + > +#define IDTCM_MAX_WRITE_COUN

[PATCH net] ptp: ptp_clockmatrix: use i2c_master_send for i2c write

2020-08-17 Thread min.li.xe
From: Min Li The old code for i2c write would break on some controllers, which fails at handling Repeated Start Condition. So we will just use i2c_master_send to handle write in one transanction. Signed-off-by: Min Li --- drivers/ptp/ptp_clockmatrix.c | 56 +

Re: [PATCH net] ptp: ptp_clockmatrix: use i2c_master_send for i2c write

2020-08-17 Thread Richard Cochran
On Mon, Aug 17, 2020 at 11:37:35AM -0400, min.li...@renesas.com wrote: > From: Min Li > > The old code for i2c write would break on some controllers, which fails > at handling Repeated Start Condition. So we will just use i2c_master_send > to handle write in one transanction. > > Signed-off-by: