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-next>] [day] [month] [year] [list]
Message-ID: <20150526185425.GA26217@wernerandy.de>
Date:	Tue, 26 May 2015 20:54:25 +0200
From:	Andreas Werner <andy@...nerandy.de>
To:	linux-kernel@...r.kernel.org
Subject: regmap different register size

Hi,
i have a question regarding regmap usage.

I have a i2c multifunction device which does have a register and value width of 8bits except
the revision register. The revision can only be read by a i2c block transfer.

Does it makes sense to read the Revision once by the i2c API and let the rest of the device read/write
by regmap?

Regmap should reduce code but in this case i had to check the i2c block functionality first then read the
revisoin and then init the regmap stuff.

May be in this case it would be better to use the i2c only instead of mixing i2c API and regmap.

Regards
Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ