Jean Delvare
a5a59fb959
tools: i2cbusses: Check the return value of snprintf
It's very unlikely that these paths will ever be truncated, but
better safe than sorry.
Suggested by Uwe Kleine-König.
8 years ago
Jean Delvare
7c71a78fb0
Consistently use snprintf instead of sprintf
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>
7 years ago
Jean Delvare
07563e8ff8
i2c-tools: i2cbusses: Avoid buffer overflows in sysfs paths
sprintf isn't safe, use snprintf instead.
8 years ago
Jean Delvare
3b194ddb8c
Delete i2ctransfer
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>
8 years ago
Ondřej Lysoněk
466bb8cb49
py-smbus: Fix FSF address in smbusmodule.c
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>
8 years ago
Stefan Agner
d4b95a31cd
eeprog: Increase sleep between byte writes
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.
8 years ago
Jean Delvare
ba2abe60bd
Add missing man page cross-references
8 years ago
Jean Delvare
4fbf2b6737
Drop stray references to lm-sensors.org
lm-sensors.org is no more, point to the I2C Tools wiki page instead.
8 years ago
Jean Delvare
152c44190e
Mention the current maintainer
Original patch from Wolfram Sang.
11 years ago
Wolfram Sang
c1ea203e35
i2c-tools: add new tool 'i2ctransfer'
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>
11 years ago
Wolfram Sang
58ebb2f385
i2c-tools: add .gitignore
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>
9 years ago
Wolfram Sang
119a811034
i2c-tools: fix feature test macros for glibc >= 2.20
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>
9 years ago
Jean Delvare
dc95875dbc
Drop obsolete SVN keywords
9 years ago
Jean Delvare
2b4135907c
decode-dimms: Correctly check for out-of-bounds vendor ID
9 years ago
Jean Delvare
62cbc64c4f
Set version to 3.1.2.
9 years ago
Jean Delvare
824de0ae34
py-smbus: Add support for python 3
9 years ago
Jean Delvare
b9cf0129a9
decode-dimms: Fix DDR3 extended temp range refresh rate decoding
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.)
9 years ago
Jean Delvare
d58c9009c7
Set version to 3.1.1.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6235 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
05f1a6485f
Manual pages for eeprog, eeprom and eepromer, contributed by Jaromir
Capik.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6234 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
96d275f6eb
Add manual pages for decode-dimms and decode-vaio
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
12 years ago
Jean Delvare
e32987a243
py-smbus: fix module level docs
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
12 years ago
Jean Delvare
95674a88a5
decode-dimms: Encode "degrees" to HTML degree symbol
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6231 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
a94388357b
Fix potential build error (NULL undefined) caused by missing include file
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6230 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
f8de12205f
Delete empty file and directory
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6229 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
a0d9fb99f8
i2c-dev: Revert most of r6048 and r6052
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
12 years ago
Jean Delvare
e67a49f679
ddcmon: Merge copyright information
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6227 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
2df6dcb997
Update my e-mail address and copyright years.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6225 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
ba1491d03d
Add missing option -r to usage summary
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
12 years ago
Jean Delvare
407fc259e3
Doh. I've proofread these names twice and even that was not enough :(
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6160 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
bfd0e2e24a
Add manufacturer names from Jedec document JEP106AK.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6157 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
9b4e137eb1
decode-dimms: Fix typo in vendor name
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
12 years ago
Jean Delvare
4aa36fe574
DDR3: Round down PC3 numbers to comply with Jedec.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6154 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
cbfef7739d
DDR3: Round core timings up, not down.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6153 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
7add855d52
DDR3: Use the right nibble from byte 21 as the MSB of tRAS.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6152 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
eb2db47736
Print a space before "MHz" to improve readability.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6151 7894878c-1315-0410-8ee3-d5d059ff63e0
12 years ago
Jean Delvare
f8d5ac8396
Decode more DDR3 module types
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6122 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
7987d0d642
Prevent hang on reserved DDR3 module type
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
13 years ago
Jean Delvare
e1974d0945
i2cdetect: Clarify the SMBus commands used for probing by default.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6110 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
363d38f24a
Fix decoding of SDR SPD revision. The encoding changed with revision
1.2.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6109 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
9dbd13a1f2
Remove duplicate "ns" in SDR timings.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6108 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
0c6e11a7e8
Add manufacturer names from Jedec document JEP106AJ.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6107 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
5e46bf8d31
Update vendor list based on Jedec document JEP106AG. Contributed by
Thomas Gibson.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6106 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
242b1c714c
Don't choke when no SPD EEPROM is found while the eeprom or at24 driver
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
13 years ago
Jean Delvare
14691e91df
Add header file missed from a previous commit.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6052 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
495e59f96b
i2c-tools version 3 goes to maintenance mode
git-svn-id: http://lm-sensors.org/svn/i2c-tools/branches/i2c-tools-3.1@6051 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
0a335f0859
Tools depends on header file version.h. Add the missing dependency to
the build system.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6049 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
93caf007f4
i2c-dev: Move SMBus helper functions to include/i2c/smbus.h
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6048 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
6526191219
i2c-dev.h: Minimize differences with kernel flavor
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6047 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
309c5dd001
decode-dimms: Use short name in side-by-side output mode also when
reading from a dump file.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6043 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago
Jean Delvare
f043eb5430
Decode and print bus width extension of DDR3 memory modules.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@6042 7894878c-1315-0410-8ee3-d5d059ff63e0
13 years ago