File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Documentation/devicetree/bindings/i2c Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ title: Freescale MXS Inter IC (I2C) Controller
9
9
maintainers :
10
10
- Shawn Guo <shawnguo@kernel.org>
11
11
12
+ allOf :
13
+ - $ref : /schemas/i2c/i2c-controller.yaml#
14
+
12
15
properties :
13
16
compatible :
14
17
enum :
@@ -37,7 +40,7 @@ required:
37
40
- dmas
38
41
- dma-names
39
42
40
- additionalProperties : false
43
+ unevaluatedProperties : false
41
44
42
45
examples :
43
46
- |
Original file line number Diff line number Diff line change @@ -694,6 +694,7 @@ static void npcm_i2c_callback(struct npcm_i2c *bus,
694
694
{
695
695
struct i2c_msg * msgs ;
696
696
int msgs_num ;
697
+ bool do_complete = false;
697
698
698
699
msgs = bus -> msgs ;
699
700
msgs_num = bus -> msgs_num ;
@@ -722,23 +723,17 @@ static void npcm_i2c_callback(struct npcm_i2c *bus,
722
723
msgs [1 ].flags & I2C_M_RD )
723
724
msgs [1 ].len = info ;
724
725
}
725
- if (completion_done (& bus -> cmd_complete ) == false)
726
- complete (& bus -> cmd_complete );
727
- break ;
728
-
726
+ do_complete = true;
727
+ break ;
729
728
case I2C_NACK_IND :
730
729
/* MASTER transmit got a NACK before tx all bytes */
731
730
bus -> cmd_err = - ENXIO ;
732
- if (bus -> master_or_slave == I2C_MASTER )
733
- complete (& bus -> cmd_complete );
734
-
731
+ do_complete = true;
735
732
break ;
736
733
case I2C_BUS_ERR_IND :
737
734
/* Bus error */
738
735
bus -> cmd_err = - EAGAIN ;
739
- if (bus -> master_or_slave == I2C_MASTER )
740
- complete (& bus -> cmd_complete );
741
-
736
+ do_complete = true;
742
737
break ;
743
738
case I2C_WAKE_UP_IND :
744
739
/* I2C wake up */
@@ -752,6 +747,8 @@ static void npcm_i2c_callback(struct npcm_i2c *bus,
752
747
if (bus -> slave )
753
748
bus -> master_or_slave = I2C_SLAVE ;
754
749
#endif
750
+ if (do_complete )
751
+ complete (& bus -> cmd_complete );
755
752
}
756
753
757
754
static u8 npcm_i2c_fifo_usage (struct npcm_i2c * bus )
Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ int i2c_mux_add_adapter(struct i2c_mux_core *muxc,
341
341
priv -> adap .lock_ops = & i2c_parent_lock_ops ;
342
342
343
343
/* Sanity check on class */
344
- if (i2c_mux_parent_classes (parent ) & class )
344
+ if (i2c_mux_parent_classes (parent ) & class & ~ I2C_CLASS_DEPRECATED )
345
345
dev_err (& parent -> dev ,
346
346
"Segment %d behind mux can't share classes with ancestors\n" ,
347
347
chan_id );
You can’t perform that action at this time.
0 commit comments