Spouse on Individual non-HDHP plan from employer...Little confusion on what is allowed by IRS

questions on what is allowed by IRS when Spouse has her own medical plan.

1) I am on HDHP plan (Family with wife+ kids) from my employer. Spouse is on a individual non-hdhp plan with her employer. But she is secondary on mine. IS this allowed by IRS. I am making contribution to HSA as family.

I understand her plan would be primary. But any clarification on this would be helpful. Thanks