Re: [PATCH 1/1] genirq: Properly pair kobject_del with kobject_add

From: Thomas Gleixner
Date: Sat Aug 03 2019 - 03:43:08 EST


On Sat, 3 Aug 2019, gregkh@xxxxxxxxxxxxxxxxxxx wrote:
> On Fri, Aug 02, 2019 at 08:19:37PM +0000, Michael Kelley wrote:
> > > Relying on irq_kobj_base to be present or not seems like an odd test
> > > here.
> > >
> >
> > It's the same test that is used in irq_sysfs_add to decide whether to
> > call kobject_add. So it makes everything paired up and symmetrical.
>
> Ugh, that's a tangled mess and totally not obvious at all. I'm sure
> there's a good reason for all of that, and I really don't want to know
> :)

It's all your fault that the sysfs stuff does not work in very early boot.

/me runs