Re: [PATCH] i2c: mux: demux-pinctrl: do not deactivate a master that is not active

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 02, 2022 at 10:17:20PM +0100, Wolfram Sang wrote:
> 
> > Attempting to rollback the activation of the current master when
> > the current master has not been activated is bad. priv->cur_chan
> 
> But the master is activated?
> 
> 259         /* switch to first parent as active master */
> 260         i2c_demux_activate_master(priv, 0);
> 
> Or am I missing something? :)

But _this_ code is affected by the problem you describe, or?

237                 if (!adap_np) {
238                         dev_err(&pdev->dev, "can't get phandle for parent %d\n", i);
239                         err = -ENOENT;
240                         goto err_rollback;
241                 }

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux