Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753056AbZG3W0x (ORCPT ); Thu, 30 Jul 2009 18:26:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752676AbZG3W0w (ORCPT ); Thu, 30 Jul 2009 18:26:52 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]:52274 "EHLO mail-fx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752516AbZG3W0v (ORCPT ); Thu, 30 Jul 2009 18:26:51 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:message-id; b=oJhsNm7OCsFvREUJJPemw2clvyKR996K86TCiRb/g+qIAfXe3SjoAlaGPfK6DZ1BZd QpKt+06UmaSbMUDD9HyfTT09XbYi0b6YOf+XFHj/txRjsKOZEG7/v8LgVpIbs4Y0WTCg YXpxJxvocWf/i4vJyN162y68e2U6anfM/By3c= From: Bartlomiej Zolnierkiewicz To: Jeff Garzik Subject: Re: [PATCH] pcnet32: VLB support fixes Date: Fri, 31 Jul 2009 00:25:44 +0200 User-Agent: KMail/1.11.4 (Linux/2.6.31-rc3-next-20090722-04415-ge5aa24a-dirty; KDE/4.2.4; i686; ; ) Cc: Don Fry , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Dan Carpenter , corbet@lwn.net, eteo@redhat.com, Julia Lawall References: <200907302317.52648.bzolnier@gmail.com> <200907302346.26017.bzolnier@gmail.com> <4A721768.2060102@garzik.org> In-Reply-To: <4A721768.2060102@garzik.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907310025.44576.bzolnier@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2483 Lines: 62 On Thursday 30 July 2009 23:58:00 Jeff Garzik wrote: > Bartlomiej Zolnierkiewicz wrote: > > On Thursday 30 July 2009 23:32:19 Jeff Garzik wrote: > >> Bartlomiej Zolnierkiewicz wrote: > >>> From: Bartlomiej Zolnierkiewicz > >>> Subject: [PATCH] pcnet32: VLB support fixes > >>> > >>> VLB support has been broken since at least 2004-2005 period as some > >>> changes introduced back then assumed that ->pci_dev is always valid, > >>> lets try to fix it: > >>> > >>> - remove duplicated SET_NETDEV_DEV() call > >>> > >>> - call SET_NETDEV_DEV() only for PCI devices > >>> > >>> - check for ->pci_dev validity in pcnet32_open() > >>> > >>> [ Alternatively we may consider removing VLB support but there would not > >>> be much gain in it since an extra driver code needed for VLB support is > >>> minimal and quite simple. ] > >>> > >>> This takes care of the following entry from Dan's list: > >>> > >>> drivers/net/pcnet32.c +1889 pcnet32_probe1(298) warning: variable derefenced before check 'pdev' > >>> > >>> Reported-by: Dan Carpenter > >>> Cc: corbet@lwn.net > >>> Cc: eteo@redhat.com > >>> Cc: Julia Lawall > >>> Signed-off-by: Bartlomiej Zolnierkiewicz > >>> --- > >>> PS I still keep the original cc: list from the smatch thread -- please let > >>> me know if you don't want to be spammed.. ;-) > >>> > >>> drivers/net/pcnet32.c | 12 +++++++----- > >>> 1 file changed, 7 insertions(+), 5 deletions(-) > >> ACK -- the patch is correct AFAICS -- but would it not be better to have > >> a struct device for the VLB device? > > > > Sure, such addition would be needed for sysfs support on VLB devices.. > > > >> We have capability to create struct device for isa and eisa, so VLB is > >> quite doable. > >> > >> Jeff, who converted old-ISDN ISA+EISA+PCI drivers to > >> hotplug model, once upon a time > > > > ..and it seems that you've the needed experience! :) > > In my esteemed experience, I point you to the 39-line > include/linux/isa.h as a starting point for grep... :) Send patches. I don't have a time/motivation for enhancing VLB support, not even mentioning the access to hardware needed to test such changes.. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/