summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* tools: Don't build with -Winlinei2c-tools-3.1Jean Delvare2020-09-112-1/+2
| | | | | | | The inlining issues are never going to be fixed in this branch, so there is no point in flooding the build with these warnings. Signed-off-by: Jean Delvare <jdelvare@suse.de>
* i2cset: Fix short writes with maskJean Delvare2020-09-112-12/+14
| | | | | | | | | | | | | | | Short writes used "daddress" for the value, but the masking code did not expect that, and instead applied the mask to a variable that was never used. So change short writes to use "value" for the value, as all other commands do. Adjust all code paths accordingly. Reported by David Jedynak. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
* tools: i2cbusses: Check the return value of snprintfJean Delvare2020-09-111-6/+28
| | | | | | | It's very unlikely that these paths will ever be truncated, but better safe than sorry. Suggested by Uwe Kleine-König.
* Consistently use snprintf instead of sprintfJean Delvare2020-09-111-4/+11
| | | | | | | | There was a last instance of sprintf which somehow was not converted. I know it can't fail, but for consistency, let's use snprintf and check for truncation as we already do in gather_i2c_busses(). Signed-off-by: Jean Delvare <jdelvare@suse.de>
* i2c-tools: i2cbusses: Avoid buffer overflows in sysfs pathsJean Delvare2020-09-112-5/+6
| | | | sprintf isn't safe, use snprintf instead.
* Delete i2ctransferJean Delvare2018-01-207-511/+5
| | | | | | | | | A maintenance branch isn't the right place for a brand new tool. Now that i2c tools version 4.0 has been released, there's no reason to keep i2ctransfer in the 3.1 branch, so delete it. Signed-off-by: Jean Delvare <jdelvare@suse.de> Acked-by: Wolfram Sang <wsa@the-dreams.de>
* py-smbus: Fix FSF address in smbusmodule.cOndřej Lysoněk2017-11-241-1/+2
| | | | | | | | The Free Software Foundation address was outdated. Discovered by Fedora's rpmlint. The current address can be found at: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC4 Signed-off-by: Ondřej Lysoněk <olysonek@redhat.com>
* eeprog: Increase sleep between byte writesStefan Agner2017-08-102-3/+11
| | | | | | | | | | | | | | | Increese sleep time between writes to accomodate typical write cycle times. An Atmel AT24C02 as well as an ON Semiconductor CAT24C02 EEPROM specify 5ms. This resolves errors such as: ... Bus: /dev/i2c-1, Address: 0x50, Mode: 8bit Writing stdin starting at address 0x0 ..Error i2c_write_2b: Input/output error Error at line 162: write error [JD] Define a single constant and add a note that this could be revisited.
* Add missing man page cross-referencesJean Delvare2017-07-264-4/+4
|
* Drop stray references to lm-sensors.orgJean Delvare2017-07-262-1/+4
| | | | lm-sensors.org is no more, point to the I2C Tools wiki page instead.
* Mention the current maintainerJean Delvare2017-07-262-0/+3
| | | | Original patch from Wolfram Sang.
* i2c-tools: add new tool 'i2ctransfer'Wolfram Sang2017-04-193-1/+507
| | | | | | | | | | | | | | | | This tool allows to construct and concat multiple I2C messages into one single transfer. Its aim is to test I2C master controllers, and so there is no SMBus fallback. I've been missing such a tool a number of times now, so I finally got around to writing it myself. As with all I2C tools, it can be dangerous, but it can also be very useful when developing. It has been tested with various Renesas I2C IP cores as well as Tegra, i.MX and AT91. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
* i2c-tools: add .gitignoreWolfram Sang2016-08-124-0/+15
| | | | | | | | Don't display generated files, so 'git status' becomes useful again. Reviewed-by: Jean Delvare <jdelvare@suse.de> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
* i2c-tools: fix feature test macros for glibc >= 2.20Wolfram Sang2016-08-121-1/+2
| | | | | | | | | | Since glibc 2.20, the usage of _BSD_SOURCE is deprecated. Fix it like described here: https://sourceware.org/glibc/wiki/Release/2.20#Deprecation_of__BSD_SOURCE_and__SVID_SOURCE_feature_macros Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
* Drop obsolete SVN keywordsJean Delvare2016-07-043-6/+0
|
* decode-dimms: Correctly check for out-of-bounds vendor IDJean Delvare2016-06-232-3/+8
|
* Set version to 3.1.2.v3.1.2Jean Delvare2016-06-232-2/+2
|
* py-smbus: Add support for python 3Jean Delvare2016-06-232-2/+46
|
* decode-dimms: Fix DDR3 extended temp range refresh rate decodingJean Delvare2016-06-232-2/+6
| | | | | | Based on a patch from Peter Missel. The meaning of byte 31, bit 1, was inverted. Also, this bit is only meaningful if the extended temperature range is supported (bit 0 is set.)
* Set version to 3.1.1.v3.1.1Jean Delvare2014-02-202-2/+2
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6235 7894878c-1315-0410-8ee3-d5d059ff63e0
* Manual pages for eeprog, eeprom and eepromer, contributed by JaromirJean Delvare2014-02-204-0/+231
| | | | | | | Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6234 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add manual pages for decode-dimms and decode-vaioJean Delvare2014-02-204-1/+110
| | | | | | | Contributed by Jaromir Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6233 7894878c-1315-0410-8ee3-d5d059ff63e0
* py-smbus: fix module level docsJean Delvare2014-02-202-1/+2
| | | | | | | | | | | When you do pydoc smbus, you just get the high level description. There is no automatic display of the classes (like SMBus). This is due to the name not being specified quite right in the type. Contributed by Mike Frysinger. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6232 7894878c-1315-0410-8ee3-d5d059ff63e0
* decode-dimms: Encode "degrees" to HTML degree symbolJean Delvare2014-02-202-1/+3
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6231 7894878c-1315-0410-8ee3-d5d059ff63e0
* Fix potential build error (NULL undefined) caused by missing include fileJean Delvare2014-02-201-0/+1
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6230 7894878c-1315-0410-8ee3-d5d059ff63e0
* Delete empty file and directoryJean Delvare2014-02-201-0/+0
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6229 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2c-dev: Revert most of r6048 and r6052Jean Delvare2014-02-2015-238/+267
| | | | | | | | | | | | I don't know what I had in mind but commits r6048: i2c-dev: Move SMBus helper functions to include/i2c/smbus.h and r6052: Add header file missed from a previous commit were way too intrusive for a maintenance branch. Revert most of them, only keeping the legitimate include fixes. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6228 7894878c-1315-0410-8ee3-d5d059ff63e0
* ddcmon: Merge copyright informationJean Delvare2014-02-191-4/+2
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6227 7894878c-1315-0410-8ee3-d5d059ff63e0
* Update my e-mail address and copyright years.Jean Delvare2014-02-1918-32/+22
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6225 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add missing option -r to usage summaryJean Delvare2013-10-051-1/+1
| | | | | | | Reported by Jaromir Capik. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6202 7894878c-1315-0410-8ee3-d5d059ff63e0
* Doh. I've proofread these names twice and even that was not enough :(Jean Delvare2013-04-171-1/+1
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6160 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add manufacturer names from Jedec document JEP106AK.Jean Delvare2013-04-151-1/+6
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6157 7894878c-1315-0410-8ee3-d5d059ff63e0
* decode-dimms: Fix typo in vendor nameJean Delvare2013-04-151-1/+1
| | | | | | | Contributed by Paul Goyette. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6156 7894878c-1315-0410-8ee3-d5d059ff63e0
* DDR3: Round down PC3 numbers to comply with Jedec.Jean Delvare2013-04-152-0/+3
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6154 7894878c-1315-0410-8ee3-d5d059ff63e0
* DDR3: Round core timings up, not down.Jean Delvare2013-04-152-4/+5
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6153 7894878c-1315-0410-8ee3-d5d059ff63e0
* DDR3: Use the right nibble from byte 21 as the MSB of tRAS.Jean Delvare2013-04-152-1/+2
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6152 7894878c-1315-0410-8ee3-d5d059ff63e0
* Print a space before "MHz" to improve readability.Jean Delvare2013-04-151-7/+7
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6151 7894878c-1315-0410-8ee3-d5d059ff63e0
* Decode more DDR3 module typesJean Delvare2013-02-132-1/+5
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6122 7894878c-1315-0410-8ee3-d5d059ff63e0
* Prevent hang on reserved DDR3 module typeJean Delvare2013-02-132-1/+2
| | | | | | | Function sprint doesn't exist, sprintf was intended. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6121 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2cdetect: Clarify the SMBus commands used for probing by default.Jean Delvare2012-12-212-4/+9
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6110 7894878c-1315-0410-8ee3-d5d059ff63e0
* Fix decoding of SDR SPD revision. The encoding changed with revisionJean Delvare2012-12-212-1/+4
| | | | | | | 1.2. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6109 7894878c-1315-0410-8ee3-d5d059ff63e0
* Remove duplicate "ns" in SDR timings.Jean Delvare2012-12-212-5/+2
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6108 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add manufacturer names from Jedec document JEP106AJ.Jean Delvare2012-12-212-2/+7
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6107 7894878c-1315-0410-8ee3-d5d059ff63e0
* Update vendor list based on Jedec document JEP106AG. Contributed byJean Delvare2012-12-211-13/+56
| | | | | | | Thomas Gibson. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6106 7894878c-1315-0410-8ee3-d5d059ff63e0
* Don't choke when no SPD EEPROM is found while the eeprom or at24 driverJean Delvare2012-07-192-5/+7
| | | | | | | is loaded. This can happen, handle the case gracefully. git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6063 7894878c-1315-0410-8ee3-d5d059ff63e0
* Add header file missed from a previous commit.Jean Delvare2012-05-211-0/+212
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6052 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2c-tools version 3 goes to maintenance modeJean Delvare2012-05-210-0/+0
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6051 7894878c-1315-0410-8ee3-d5d059ff63e0
* Tools depends on header file version.h. Add the missing dependency toJean Delvare2012-05-211-4/+4
| | | | | | | the build system. git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6049 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2c-dev: Move SMBus helper functions to include/i2c/smbus.hJean Delvare2012-04-2615-273/+41
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6048 7894878c-1315-0410-8ee3-d5d059ff63e0
* i2c-dev.h: Minimize differences with kernel flavorJean Delvare2012-04-262-34/+29
| | | | git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6047 7894878c-1315-0410-8ee3-d5d059ff63e0