lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <s5h7i4fwpma.wl%tiwai@suse.de>
Date:	Wed, 28 Jan 2009 14:02:05 +0100
From:	Takashi Iwai <tiwai@...e.de>
To:	Thadeu Lima de Souza Cascardo <cascardo@...oscopio.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: Don't cold reset AC97 codecs in some ICH chipsets

At Wed, 28 Jan 2009 10:27:30 -0200,
Thadeu Lima de Souza Cascardo wrote:
> 
> On Wed, Jan 28, 2009 at 01:06:20PM +0100, Takashi Iwai wrote:
> > At Wed, 28 Jan 2009 08:02:36 -0200,
> > Thadeu Lima de Souza Cascardo wrote:
> > > 
> > > Check in a quirk list if it should do cold reset when AC97 power saving
> > > is enabled. Some devices do not resume properly when cold reset,
> > > although power saving works OK.
> > > 
> > > Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@...oscopio.com>
> > 
> > Thanks for the patch.
> > We can go better further with this patch now :)
> > 
> > The logic is basically fine, but just a few comments...
> > 
> > > diff --git a/sound/pci/intel8x0.c b/sound/pci/intel8x0.c
> > > index 19d3391..69b3ed8 100644
> > > --- a/sound/pci/intel8x0.c
> > > +++ b/sound/pci/intel8x0.c
> > ...
> > > +static int snd_intel8x0_ich_chip_cold_reset(struct intel8x0 *chip)
> > > +{
> > > +	unsigned int cnt;
> > >  	/* ACLink on, 2 channels */
> > > +
> > > +	if (snd_pci_quirk_lookup(chip->pci, ich_chip_reset_mode))
> > > +		return -EIO;
> > 
> > I feel it isn't intuitive to return -EIO here.
> > It'd be more straightforward to call snd_intel8x0_ich_chip_reset()
> > from here?
> > 
> > 	if (snd_pci_quirk_lookup(chip->pci, ich_chip_reset_mode))
> > 		return snd_intl8x0_ich_chip_reset(chip);
> > 
> > 
> > > +	if (snd_intel8x0_ich_chip_cold_reset(chip) < 0)
> > > +		if ((err = snd_intel8x0_ich_chip_reset(chip)) < 0)
> > > +			return err;
> > 
> > Please make the change checkpatch-clean.
> > 
> > Could you fix and repost?
> 
> I did checkpatch it, but since this style is used in many places in the
> intel8x0.c code, I thought I would leave it this way. Should I send a
> cleanup patch too?

Just make your patch checkpatch-clean.  The other parts don't have to
be changed in this case.

> By the way, I have some very trivial comment typo patches lying around.
> I will post them too.

That'll be fine.


thanks,

Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ