On Saturday 22 June 2024 16:21:28 Hans de Goede wrote: > Hi Pali, > > On 6/22/24 3:32 PM, Pali Rohár wrote: > > On Friday 21 June 2024 14:25:01 Hans de Goede wrote: > >> Unfortunately the SMOxxxx ACPI device does not contain the i2c-address > >> of the accelerometer. So a DMI product-name to address mapping table > >> is used. > > > > This is statement which I got from Dell for 10 years old Dell models. > > > > I have already stated that poking of address in kernel is a big risk > > specially for all current and any future dell hardware. Hiding it just > > under the kernel parameter is still a risk, specially as neither its > > name, nor description say that it is dangerous: > > I think you are overstating how dangerous this is. lm-sensors detect > scripts has been poking i2c addresses for years without problems (1) and > still does so till today. > > Besides the kernel message telling users about this option does mention that > it is dangerous: But description from modinfo -p and neither parameter name itself does not. And neither no kernel message when the parameter was enabled. > >> @@ -370,6 +511,7 @@ static int smo8800_probe(struct platform_device *device) > >> } else { > >> dev_warn(&device->dev, > >> "lis3lv02d accelerometer is present on SMBus but its address is unknown, skipping registration\n"); > >> + dev_info(&device->dev, "Pass dell_smo8800.probe_i2c_addr=1 on the kernel commandline to probe, this may be dangerous!\n"); > >> if (!smo8800->irq) > >> return -ENODEV; > >> } > > > But anyway, why this code is being introduced? > > Because users have been asking about an easier way to find the address for > not yet supported Dell models: > > https://lore.kernel.org/linux-i2c/4820e280-9ca4-4d97-9d21-059626161bfc@xxxxxxxxxxxxx/ > > This is the whole reason why I started working on this patch-set in > the first place. > > > Have you communicated > > with Dell about this problem? > > Dell is on the Cc of this thread, as well as the previous v2 posting: > > Cc: Dell.Client.Kernel@xxxxxxxx And what do you think, that if you send tons of long emails with C code to lot of recipients and add a carbon copy of all those your emails to some corporate group address, that somebody on that group address will read every one paragraph of every your email and tries to detect in if there is not hidden some question to which you want to know answer? No, with this behavior you are going to be put on the corporate spam list by automated systems. This looks like you just wanted to mark your personal checkbox "I sent email to some dell address" and let it as is. In past when I sent private email to dell I normally received responses. Also they said to me that group address is (or at that time was) monitored. So it would be nice to start communication with dell and figure out what is the current state of smbus address detection via ACPI/WMI/DMI/whatever, instead of adding this hacks via poking of smbus addresses. And in case the mentioned group address does not work anymore there are still other linux developers from dell who could be able to figure something out. > Regards, > > Hans > > > 1) There were some problems more then a decade ago, but those were only > at specific addresses on some really old (by now) ThinkPads and for > the other case the i2c_safety_check() function was added. > >