lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aKbqLpJMCxJd3QXW@smile.fi.intel.com>
Date: Thu, 21 Aug 2025 12:43:10 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Andreas Klinger <ak@...klinger.de>
Cc: jic23@...nel.org, robh@...nel.org, krzk+dt@...nel.org,
	conor+dt@...nel.org, lars@...afoo.de,
	javier.carrasco.cruz@...il.com, mazziesaccount@...il.com,
	arthur.becker@...tec.com, perdaniel.olsson@...s.com,
	mgonellabolduc@...onoff.com, muditsharma.info@...il.com,
	clamor95@...il.com, emil.gedenryd@...s.com,
	devicetree@...r.kernel.org, linux-iio@...r.kernel.org,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH v6 2/3] iio: light: add support for veml6046x00 RGBIR
 color sensor

On Fri, Jul 25, 2025 at 09:32:12AM +0200, Andreas Klinger wrote:
> Andy Shevchenko <andriy.shevchenko@...ux.intel.com> schrieb am Mi, 16. Jul 10:34:

...

> > > +#define	VEML6046X00_GAIN_1          0x0
> > > +#define	VEML6046X00_GAIN_2          0x1
> > > +#define	VEML6046X00_GAIN_0_66       0x2
> > > +#define	VEML6046X00_GAIN_0_5        0x3
> > 
> > Is it defined as hexadecimal in the datasheet? Otherwise use plain decimal
> > numbers.
> 
> It's in the datasheet defined exactly the way i did.

OK!

...

> > > +	part_id = le16_to_cpu(reg);
> > > +	if (part_id != 0x0001)
> > > +		dev_info(dev, "Unknown ID %#04x\n", part_id);
> > 
> > For 0 it will print 0 and not 0x0000. Is it okay?
> 
> I just tried and it prints 0x00 if the part_id is 0.

This is interesting... So it's not 0, nor 0x0000?

-- 
With Best Regards,
Andy Shevchenko



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ