This is probably a bit tangential to your OP, Frank, but it's my take on it all. I'm looking at both racial and non-racial violence here, because violence, in a way, is the key.
Can I say at the outset I don't condone monkey chants or banana throwing, things which are indeed in-yer-face racism. But that aside, it all gets a bit murky.
Football is tribal. Always has been, from the medieval days of street football, Upper Town versus Lower Town sort of thing. Occasionally (in the historic sense) it gets out of hand, like the football hooliganism of the 1970's and 1980's, and yes, it then needs to be curbed especially when serious injury and fatalities are likely to occur. Indeed, I was on the receiving end of Leeds United hooliganism back then, amongst other clubs. The prevalence of violence then (which I also witnessed at Carrow Road, Portman Road and St Andrews) was one of the reasons I stopped supporting League club Birmingham City and started watching non-league football in Stourbridge FC (although it must be said here that, IIRC, the Glassboys then became the first club in the country to have to post up FA Ground Closure Warning notices after an ancient granny physically attacked an opposition defender at half-time with her umbrella for taking out the home winger
) Which brings me on to my second point.
Football, in times of peace, replaces war. It's a deep-rooted human nature thing. Do you remember the James Caan film "Rollerball" (1975)? The very premise of the film was a brutal "sport" - contests between cities - that was a 'war substitute' for an very affluent but repressed society. That film, like Orwell's 1984, was very prescient. If you look at society today, we say we are 'free' but we are not, really; there are increasingly repressive and complex strictures and laws in this country. We have CCTV, we have ANPR, we have Data Sharing - and it is all effectively 'suppression of the masses by the establishment'. You may dismiss me as a conspiracy theorist, but that is what many people see and many people think. Can you keep the lid on a bubbling pot? And that takes us back to football.
You can apply any number of rules and regulations - how about banning goal celebrations by players in front of opposition supporters, for example (something that sparked off racist abuse recently at Hartlepool vs Dover) - and you can have any number of initiatives such as Respect and KickItOut, but all these will be perceived as are yet more examples of state interference. And ultimately, I doubt any of them will work. Why? Because you are looking at a deep-rooted flaw in human nature, and the only way you are going to curb this is by going down the China pathway of total state behavioral monitoring and "social credits" for accessing Charman Xi's little app for your daily dose of propaganda.
Do you really want to go down that route? Be very careful what you wish for. Do I think you will ever eradicate violence, in its widest sense, from football? No.
EDIT - just looked at a National League club's programme obtained a few weeks back.
And I came across this:
"Racism, Xenophobia and Intolerance:
....... all supporters have an obligation to report any racist behaviour to the nearest steward, club official or police officer."
Obligation? Now there's an interesting concept for discussion ....