Fwd: [PATCH v3 2/2] media: cec: i2c: ch7322: Add ch7322 CEC controller driver

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

 



(Resending as plain text, sorry)

> +static int ch7322_cec_adap_enable(struct cec_adapter *adap, bool enable)
> +{
> +       struct ch7322 *ch7322 = cec_get_drvdata(adap);
> +       int ret;
> +
> +       if (enable)
> +               ret = ch7322_unmask_interrupt(ch7322);
> +       else
> +               ret = ch7322_mask_interrupt(ch7322);
> +
> +       return ret;
> +}
> +

I just realized that doing this here is broken -- the driver depends
on the interrupt to detect when the physical address changes. I could
mask only the tx/rx interrupt here instead but that is starting to
feel a bit pointless.

I haven't looked into the cec notifier mechanism yet but would it be
better to try to use that instead if possible and just ignore this
device's physical address detection? Then I could do more of a proper
reset in this enable op. But I'm not sure if I can properly associate
the device with an HDMI port on my platform unless I make some changes
to coreboot.

Thanks,
Jeff



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux