FMC Bus:70b188defd057aa2577953a9396edd867e19d273 commitshttps://ohwr.org/project/fmc-bus/commits/70b188defd057aa2577953a9396edd867e19d2732015-04-07T14:41:09Zhttps://ohwr.org/project/fmc-bus/commit/70b188defd057aa2577953a9396edd867e19d273tools: force rm on Makefile's clean to avoid errors2015-04-07T14:41:09ZFederico Vagafederico.vaga@cern.chSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-bus/commit/fac95f962e6708b049976e2f32b9b20333f861c7tools: include specific Makefile2015-01-05T09:02:45ZFederico Vagafederico.vaga@gmail.com
Sometimes (expecially in cross-compilation context) t is necessary to use
different environments. Instead of complicate this makefile, include
an external one with user code.
Create a local file named Makefile.specific, and write here your code.
Bear in mind that Makefile.specific will run before the Makefile.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>https://ohwr.org/project/fmc-bus/commit/f1c5325f5b8f5a877aa09edb6d4a45117b964d66trivial: tools/sdbfs example: calibration is auto-placed2014-07-28T05:46:30ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/a650c8382e197bc403adbb1c29106cedaf4f8b4aMakefile: use src instead of obj variable2014-06-12T07:15:44ZFederico Vagafederico.vaga@cern.ch
src point to the source code. Obj point to the object. Sometimes they
live toghether but users can decide to build the object outside the
source tree (e.g. O=/output/path/).
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>
Acked-by: <span data-trailer="Acked-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/5fa29894a6367ebb2847bf87ffa99644bd793702Makefile: fix Makefile rule 'clean' for tools/2014-06-12T07:15:44ZFederico Vagafederico.vaga@cern.ch
Remove binaries on clean
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>
Acked-by: <span data-trailer="Acked-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/ac16d04fa8b68226664aa2661521e9b7a7206a93Makefile: use EXTRACFLAGS in order to use user's flags2014-06-12T07:15:44ZFederico Vagafederico.vaga@cern.ch
The main reason to introduce this EXTRACFLAGS variable is to allow people
to cross compile on x86 architectures over 32bits and 64bits
make EXTRACFLAGS="-m32"
make EXTRACFLAGS="-m64"
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9290"><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch"><img alt="Federico Vaga's avatar" src="https://secure.gravatar.com/avatar/4b8af29d6b4b6606c62b13d805ac22f7?s=32&d=identicon" class="avatar s16 avatar-inline" title="Federico Vaga"></a><a href="https://ohwr.org/FedericoVaga" title="federico.vaga@cern.ch">Federico Vaga</a> <<a href="mailto:federico.vaga@cern.ch" title="federico.vaga@cern.ch">federico.vaga@cern.ch</a>></span>
Acked-by: <span data-trailer="Acked-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/05fabf80f2f539c591336266ece33cf530eae4addoc: trivial fixes2014-02-21T11:34:31ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/703553e3e4bfa9ddc170221ded7a1d3fe658daf3FMC: show_sdb_tree: dump synthesis/commit ID info2014-02-21T10:33:52ZTomasz Wlostowskitomasz.wlostowski@cern.ch
This completes the show_sdb_tree functionality, with the
new informative fields. The output for a verbose module is now
like this (long lines are unavoidable):
SDB: 00000651:e6a542c9 WB4-Crossbar-GSI
SDB: 0000ce42:00000601 WB-DMA.Control (00001000-0000103f)
SDB: 0000ce42:779c5443 WB-OneWire-Master (00001100-000011ff)
SDB: 0000ce42:00000603 WB-SPEC-CSR (00001200-0000121f)
SDB: 0000ce42:00000013 WB-VIC-Int.Control (00001300-000013ff)
SDB: 0000ce42:d5735ab4 WB-DMA.EIC (00001400-0000140f)
SDB: 00000651:eef0b198 WB4-Bridge-GSI (bridge: 00002000)
SDB: 00000651:e6a542c9 WB4-Crossbar-GSI
SDB: 0000ce42:123c5443 WB-I2C-Master (00003000-000030ff)
SDB: 0000ce42:e503947e WB-SPI.Control (00003100-0000311f)
SDB: 0000ce42:123c5443 WB-I2C-Master (00003200-000032ff)
SDB: 0000ce42:00000608 WB-FMC-ADC-Core (00003300-0000337f)
SDB: 0000ce42:779c5443 WB-OneWire-Master (00003400-000034ff)
SDB: 0000ce42:26ec6086 WB-FMC-ADC.EIC (00003500-0000350f)
SDB: 0000ce42:00000604 WB-Timetag-Core (00003600-0000367f)
SDB: Synthesis repository: <a href="git://ohwr.org/fmc-projects/fmc-adc-100m14b4cha.git">git://ohwr.org/fmc-projects/fmc-adc-100m14b4cha.git</a>
SDB: Bitstream 'spec_top_fmc_adcmc-projects/fmc-adc-100m14b4cha.git' \
synthesized 20140116 by mcattin (ISE version 133), commit f0a539dffe6d
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="8939"><a href="https://ohwr.org/twlostow" title="tomasz.wlostowski@cern.ch"><img alt="Tomasz Wlostowski's avatar" src="https://secure.gravatar.com/avatar/a91a5ffaa6c2c9f88ccfbb53b8565162?s=32&d=identicon" class="avatar s16 avatar-inline" title="Tomasz Wlostowski"></a><a href="https://ohwr.org/twlostow" title="tomasz.wlostowski@cern.ch">Tomasz Wlostowski</a> <<a href="mailto:tomasz.wlostowski@cern.ch" title="tomasz.wlostowski@cern.ch">tomasz.wlostowski@cern.ch</a>></span>
Acked-by: <span data-trailer="Acked-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/6ec64757e884f7316499a8b7f34d6e0af728c495doc: update portability section for this release2014-02-14T08:42:02ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/46605739d32e4b300960a6475c42cc5ce3eb37f0doc: generate release value from git version2014-02-14T08:20:44ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/20a4f0170e5a5c92528c4bd56bf126292a4aeb2fFMC: make eeprom attribute writable2014-02-11T16:54:20ZAlessandro Rubinirubini@gnudd.com
This allows easier modification to the eeprom than loading the
fmc-write-eeprom module. The carrier driver will likely refuse
writing if the FPGA is not running the golden gateware image.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/2f0cb305f4c5ed6e24209bb8ecf081b70368b64bfmc: Fix decimal permissions2014-01-28T19:39:05ZJoe Perchesjoe@perches.com
This 444 should have been octal.
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:joe@perches.com" title="joe@perches.com"><img alt="'s avatar" src="https://secure.gravatar.com/avatar/98ef9b90d87d8444e08034e5e5c70d1b?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:joe@perches.com" title="joe@perches.com">Joe Perches</a> <<a href="mailto:joe@perches.com" title="joe@perches.com">joe@perches.com</a>></span>https://ohwr.org/project/fmc-bus/commit/6d77795898c3c7fbd3f9dbc7b294141476d38785FMC: show_sdb_tree: fix offset calculation2014-01-21T22:52:24ZAlessandro Rubinirubini@gnudd.com
The code reported wrong addresses in the sdb dumps. All sdb addresses
are relative, but the code was adding the base address twice. Bug
exposed by a gateware image with two bridge levels.
Reported-by: <span data-trailer="Reported-by:" data-user="8494"><a href="https://ohwr.org/dcobas" title="dcobas@cern.ch"><img alt="Juan David González Cobas's avatar" src="https://secure.gravatar.com/avatar/1ea578c4aae68d4aeee19dd41c6450d2?s=32&d=identicon" class="avatar s16 avatar-inline" title="Juan David González Cobas"></a><a href="https://ohwr.org/dcobas" title="dcobas@cern.ch">Juan David Gonzalez Cobas</a> <<a href="mailto:dcobas@cern.ch" title="dcobas@cern.ch">dcobas@cern.ch</a>></span>
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/fb1a0ef4f6d559bffdf87f249121805fc46d9143FMC: remove unused and misleading conditionals2013-11-18T22:25:19ZAlessandro Rubinirubini@gnudd.com
At registration and unregistration time, I was checking fmc->flags
for FMC_DEVICE_NO_MEZZANINE, to skip initialization and cleanup for
empty slots. But the check was wrong (see previous commit) and
the conditional was never triggered.
I think we should register slots with no mezzanines, because the
carrier may offer some support anyways (the SPEC does), so the commit
removes the conditionals instead of fixing them.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/cc9e0db0a5013a2fef69a7640bbb2f67587a923aFMC: fix the check for no-mezzanine flag2013-11-04T18:41:07ZAlessandro Rubinirubini@gnudd.com
The flag must be checked with "&", not "==". When I tested
it was the only flag, so I didn't notice.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/ac1a39935e97bac87b017a79a130fedcbfe4aa7dFMC: fix error handling in probe() function2013-07-01T15:52:34ZDan Carpenterdan.carpenter@oracle.com
The call to kzalloc() wasn't checked.
The dev_info() message dereferenced freed memory on error.
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:dan.carpenter@oracle.com" title="dan.carpenter@oracle.com"><img alt="'s avatar" src="https://secure.gravatar.com/avatar/85ff6b2aa66ef9f0bf35105783fd2ae2?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dan.carpenter@oracle.com" title="dan.carpenter@oracle.com">Dan Carpenter</a> <<a href="mailto:dan.carpenter@oracle.com" title="dan.carpenter@oracle.com">dan.carpenter@oracle.com</a>></span>
Acked-by: <span data-trailer="Acked-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org"><img alt="'s avatar" src="https://secure.gravatar.com/avatar/cbd18395260b6be2575187286a262f9a?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org">Greg Kroah-Hartman</a> <<a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org">gregkh@linuxfoundation.org</a>></span>https://ohwr.org/project/fmc-bus/commit/5de8348d48602cce9572e45749f423788247aa7dFMC: NULL dereference on allocation failure2013-07-01T15:52:23ZDan Carpenterdan.carpenter@oracle.com
If we don't allocate "arr" then the cleanup path will dereference it and
oops.
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:dan.carpenter@oracle.com" title="dan.carpenter@oracle.com"><img alt="'s avatar" src="https://secure.gravatar.com/avatar/85ff6b2aa66ef9f0bf35105783fd2ae2?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dan.carpenter@oracle.com" title="dan.carpenter@oracle.com">Dan Carpenter</a> <<a href="mailto:dan.carpenter@oracle.com" title="dan.carpenter@oracle.com">dan.carpenter@oracle.com</a>></span>
Acked-by: <span data-trailer="Acked-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org"><img alt="'s avatar" src="https://secure.gravatar.com/avatar/cbd18395260b6be2575187286a262f9a?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org">Greg Kroah-Hartman</a> <<a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org">gregkh@linuxfoundation.org</a>></span>https://ohwr.org/project/fmc-bus/commit/27e6b003f0b99c4218cb4dcdf9297b749bab38bffmc: avoid readl/writel namespace conflict2013-07-01T15:52:15ZArnd Bergmannarnd@arndb.de
The use of the 'readl' and 'writel' identifiers here causes build errors on
architectures where those are macros. This renames the fields to read32/write32
to avoid the problem.
Reported-by: <span data-trailer="Reported-by:"><a href="mailto:fengguang.wu@intel.com" title="fengguang.wu@intel.com"><img alt="'s avatar" src="https://secure.gravatar.com/avatar/6bf3ef91610735cb9e973f375e332247?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:fengguang.wu@intel.com" title="fengguang.wu@intel.com">kbuild test robot</a> <<a href="mailto:fengguang.wu@intel.com" title="fengguang.wu@intel.com">fengguang.wu@intel.com</a>></span>
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:arnd@arndb.de" title="arnd@arndb.de"><img alt="'s avatar" src="https://secure.gravatar.com/avatar/f1897d8cf2fe6c8e75a0c9add2d05b0c?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:arnd@arndb.de" title="arnd@arndb.de">Arnd Bergmann</a> <<a href="mailto:arnd@arndb.de" title="arnd@arndb.de">arnd@arndb.de</a>></span>
Acked-by: <span data-trailer="Acked-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org"><img alt="'s avatar" src="https://secure.gravatar.com/avatar/cbd18395260b6be2575187286a262f9a?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org">Greg Kroah-Hartman</a> <<a href="mailto:gregkh@linuxfoundation.org" title="gregkh@linuxfoundation.org">gregkh@linuxfoundation.org</a>></span>https://ohwr.org/project/fmc-bus/commit/e779512206e2b213bf15823259ad23ebd59a51d0build: add git describe info as modinfo2013-06-07T14:46:42ZJuan David Gonzalez Cobasdcobas@cern.ch
For traceability purposes, we include commit descriptions
as MODULE_VERSION information in drivers that are deployed
in CERN control system.
Ideally, the commit description should be added to all the
binary blobs installed, but the kernel module is critical
in this connection, as it is crucial to trace back quickly
the whereabouts of installed .ko sources.https://ohwr.org/project/fmc-bus/commit/ab23167fe3a029ccf04993a2863d3b1db74d0cc7kernel: add the missing 'static' markers2013-06-07T07:33:16ZAlessandro Rubinirubini@gnudd.com
Change suggested by Emilio Cota, whose coccicheck is newer than mine.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/047896a3376b889294496667d124b715a7b12166kernel: use KERN_CONT for continuation printk calls2013-05-30T15:08:33ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/b45b0171c2f143e644e32d5ef801723c909e59f8kernel/fmc-sdb: report the new types in sdb dump2013-05-30T10:48:22ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/f9e4b73234fdb2ea1b64c6817adaefdf3d1055cfkernel: small whitespace fixes (checkpatch)2013-05-30T10:48:01ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/f5c3b0ea2388f938a3cc48745ac61a822373df34fmc-core: fix an error path in registration2013-05-27T11:42:10ZMichel Arruatmichel.arruat@cern.ch
If a client registered with a null fmc-hwdev, there was a small memory
leak.https://ohwr.org/project/fmc-bus/commit/25ec6c06fffde7130af68a9e3f230e3b530d7608kernel and doc: prefer &fmc->dev to fmc->hwdev in messages2013-05-21T12:44:10ZAlessandro Rubinirubini@gnudd.com
For multi-mezzanine environments, the hwdev name (the carrier)
is not very meaningful, so use fmc->dev for messages as soon as the
device is registered.
Change suggested by David Cobas.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/b7036bfd40911bc0d87e61752fa23a3cbb9c321fkernel/fmc-core: ignore empty slots on register/unregister2013-05-21T12:16:59ZAlessandro Rubinirubini@gnudd.com
Multi-slot boards like the svec may have one ore more empty slots.
This patch makes the core ignore empty slots, but otherwise succeed.
Carriers are not expected to register completely-empty mezzanine sets
(but if that happens registration succeeds with no effect).
Change suggested by David Cobas.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/3b4f5ee33044d326148a609839f47f3516db71aesdb.h: upgrade to official upstream 1.1 release2013-05-20T09:52:01ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/4153c121963483a5e7adf136fca09894e4b29d36trivial: fix an internal documentation reference2013-05-16T17:16:45ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/0d1aca0800ae628666055577837dcbfb6d45e2b0bugfix: fru_strncpy was off by one, leading to rare memory corruptions2013-05-16T09:24:10ZAlessandro Rubinirubini@gnudd.com
After correctly allocating the the manufacturer or device name,
and correctly copying the not-null-terminated string from ipmi-fru,
I put the termination '\0' at string[len + 1] .
If you build a recent kernel under slob (which is the default), it
may fail miserably at unexpected places. For example, if
your string is 15 bytes, I allocated 16 but wrote to the 17th.
slob has 16-byte alloc areas, and so I was corrupting the next area.
This never happened with slab (which I prefer and run) because the smalles
allocation chunk there is 32 bytes -- I would experience the same
with a 31-long manufacturer or device name.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/af52f48a588cec3db2a6adbd9f6b015b5b8c341edoc: updated list of supported versions2013-05-15T08:50:48ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>
Conflicts:
doc/fmc-bus.inhttps://ohwr.org/project/fmc-bus/commit/76591a0994fdf5a4d168c64c51724561e6f5c805trivial: fmc-fakedev.c needs <linux/err.h>2013-05-15T08:50:48ZAlessandro Rubinirubini@gnudd.com
This is only exposed by building for older kernels, as
currently err.h is pulled in by other headers I use, it seems
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/e29f9c64483d0189108d8a0bb7d516d991d83fc1doc: minor details2013-05-15T08:50:48ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/7a652805d64f92e3f50a4377ef351447d1fd0170bug fix: check strings for NULL in match()2013-05-15T08:50:48ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/9ea8a363759432f31565a8612f9cddeb465ad55ctools/sdbfs: updated to new fdelay setup2013-05-15T08:50:48ZAlessandro Rubinirubini@gnudd.com
The example files and configuration matches what is current in
the fdelay driver, to be released soon after this very package.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/2ab5e4868e171a58ef809a9698f97b87790b7b0atrivial: remove backup files in doc, wrongly committed2013-05-15T08:50:36ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/e85a5046755f45733b8a924c0e626769d0ab9c95doc: update about portability related to the new eeprom file2013-04-26T15:57:21ZAlessandro Rubinirubini@gnudd.comSigned-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/eb01ccc69776fabc243d8fef74b19a1b007f106cfmc-core: export the eeprom as a read-only binary file in sysfs2013-04-17T09:10:35ZAlessandro Rubinirubini@gnudd.com
This allows easy access to the eeprom of each mezzanine. For example
I see one at /sys/bus/fmc/devices/FmcDelay1ns4cha-f001/eeprom (fakedev
with a fine-delay eeprom image).
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/d9b6163ec67cc60e0d2ff024f5029391b305a91dfmc-fakedev: move the work queue out of ff_dev2013-04-17T09:10:35ZAlessandro Rubinirubini@gnudd.com
The device is freed while its same work queue is running. I don't know
if this is safe, but definitely using a static work queue is.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/b4ae7fe6d55047ef324ccabb72e8feaf3479b3fcfmc-core: bug fix requiring incompatible changes in registration2013-04-17T09:10:34ZAlessandro Rubinirubini@gnudd.com
My previous code for device management was wrong, because I didn't
understand the allocation. This fixes the thing, by properly using the
release function.
This change however requires that all fmc devices are allocated
separately (not as an array) and are not freed by the registering
entity. So this introduces an incompatible change in the prototype
for register_n and unregister_n -- which is noted at build time, but
also an incompatible change in how a device must be allocated/freed
by the carrier that registers a single device. This change is
not introducing a build error, but I hope the only external users by now
are the SPEC and the SVEC.
fmc-fakedev is fixed by this same commit.
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>https://ohwr.org/project/fmc-bus/commit/f685f5b12f90b6c30f662f928bb543fbbda9cc19fmc-core: remove extra device (/sys/devices/fmc/)2013-04-17T09:10:34ZAlessandro Rubinirubini@gnudd.com
The fmc devices are now children of their own device.
This is what we had with fmc-fakedev and 1 mezzanine using a custom eeprom:
tha lead to custom names):
spusa.root# ls -l /sys/bus/fmc/devices/
FmcDelay1ns4cha-f001 -> ../../../devices/fmc/FmcDelay1ns4cha-f001/
And this is what we have now:
spusa.root# ls -l /sys/bus/fmc/devices/
FmcDelay1ns4cha-f001 -> ../../../devices/fake-fmc-carrier/FmcDelay1ns4cha-f001/
Signed-off-by: <span data-trailer="Signed-off-by:" data-user="9028"><a href="https://ohwr.org/rubini" title="rubini@gnudd.com"><img alt="Alessandro Rubini's avatar" src="https://secure.gravatar.com/avatar/18e4fb369cda4873020839db5911d1d1?s=32&d=identicon" class="avatar s16 avatar-inline" title="Alessandro Rubini"></a><a href="https://ohwr.org/rubini" title="rubini@gnudd.com">Alessandro Rubini</a> <<a href="mailto:rubini@gnudd.com" title="rubini@gnudd.com">rubini@gnudd.com</a>></span>