All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Mitchell <ml-YbFJW3Hi15w4V3TWAi07hPXRex20P6io@public.gmane.org>
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Turning off dev_dbg in spi_setup
Date: Mon, 06 Aug 2012 10:45:03 +0100	[thread overview]
Message-ID: <501F921F.5060607@communistcode.co.uk> (raw)

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/

                 reply	other threads:[~2012-08-06  9:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=501F921F.5060607@communistcode.co.uk \
    --to=ml-ybfjw3hi15w4v3twai07hpxrex20p6io@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.