* Turning off dev_dbg in spi_setup
@ 2012-08-06 9:45 Jack Mitchell
0 siblings, 0 replies; only message in thread
From: Jack Mitchell @ 2012-08-06 9:45 UTC (permalink / raw)
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
I hope this appropriate on this mailing list, please let me know if it
isn't.
I have developed an SPI driver which needs to toggle the SPI_MODE in
between reads and writes (I know, supporting legacy hardware right?). To
do this I do the following:
axonSPI_dev.spi_device->mode = SPI_MODE_0;
spi_setup(axonSPI_dev.spi_device);
This works fine, however I cannot for the life in me stop the dev_dbg
function in spi_setup from printing to the kernel log at every call. So,
1) Is this the best way to toggle the SPI_MODE on the fly?
2) Does anyone have any suggestions to why dev_dbg refuses to stop
outputting every time I call spi_setup.
This is a kernel module and the spi master is registered dynamically on
ismod.
Kind Regards,
--
Jack Mitchell (jack-psbXN780rFT10XsdtD+oqA@public.gmane.org)
Embedded Systems Engineer
http://www.embed.me.uk
--
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-08-06 9:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-06 9:45 Turning off dev_dbg in spi_setup Jack Mitchell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.