From: Greg KH <greg@kroah.com>
To: Christoph Hellwig <hch@infradead.org>,
linux-kernel@vger.kernel.org, sensors@stimpy.netroedge.com
Subject: Re: [PATCH] i2c driver changes for 2.5.64
Date: Fri, 14 Mar 2003 00:56:18 -0800 [thread overview]
Message-ID: <20030314085618.GD3084@kroah.com> (raw)
In-Reply-To: <20030314081904.A11701@infradead.org>
On Fri, Mar 14, 2003 at 08:19:04AM +0000, Christoph Hellwig wrote:
> > +/* Internally used pause function */
> > +void ali15x3_do_pause(unsigned int amount)
> > +{
> > + current->state = TASK_INTERRUPTIBLE;
> > + schedule_timeout(amount);
> > +}
>
> I think this should be moved to linux/kernel.h as delay() - I've seen
> it duplicated in so much code (including XFS)
I'll move this. I think I have this in the usb.h header file too :)
> > +#ifdef DEBUG
> > + printk
> > + ("i2c-ali15x3.o: Transaction (pre): STS=%02x, CNT=%02x, CMD=%02x, ADD=%02x, DAT0=%02x, "
> > + "DAT1=%02x\n", inb_p(SMBHSTSTS), inb_p(SMBHSTCNT),
> > + inb_p(SMBHSTCMD), inb_p(SMBHSTADD), inb_p(SMBHSTDAT0),
> > + inb_p(SMBHSTDAT1));
> > +#endif
>
> use pr_debug() here.
In the next round of patches I'm using dev_dbg() and other dev_*
functions for the printk calls, now that we have device support for the
adapters.
thanks,
greg k-h
prev parent reply other threads:[~2003-03-14 8:56 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-14 0:50 [BK PATCH] i2c driver changes for 2.5.64 Greg KH
2003-03-14 0:55 ` [PATCH] " Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-14 0:55 ` Greg KH
2003-03-15 9:49 ` Vojtech Pavlik
2003-03-15 21:46 ` Greg KH
2003-03-15 22:06 ` Vojtech Pavlik
2003-03-14 8:28 ` Christoph Hellwig
2003-03-14 8:21 ` Christoph Hellwig
2003-03-14 8:53 ` Greg KH
2003-03-14 8:19 ` Christoph Hellwig
2003-03-14 8:56 ` Greg KH [this message]
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=20030314085618.GD3084@kroah.com \
--to=greg@kroah.com \
--cc=hch@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sensors@stimpy.netroedge.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox