Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1209884

Re: [PATCH] staging: wilc1000: Set all options in region debugfs file

From Greg KH <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH] staging: wilc1000: Set all options in region debugfs file
Date 2015-08-19 17:10 +0200
Message-ID <pZda2-150-21@gated-at.bofh.it> (permalink)
References <pYSyC-48R-43@gated-at.bofh.it> <pZ1Vf-1B3-1@gated-at.bofh.it> <pZaOS-5Zp-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Aug 19, 2015 at 06:00:12PM +0530, Chandra Gorentla wrote:
> On Tue, Aug 18, 2015 at 08:01:00PM -0700, Greg KH wrote:
> > On Tue, Aug 18, 2015 at 10:32:17PM +0530, Chandra S Gorentla wrote:
> > > This patch allows setting all options in the module's debug region
> > > options file 'wilc_debug_region'.  This functionality allows the user
> > > to enable logging from all regions (initialization, locks, firmware
> > > etc.) of the driver.  Logging from the following regions is enabled
> > > during the driver initialization:
> > > 
> > > INIT_DBG, GENERIC_DBG, CFG80211_DBG, FIRM_DBG and HOSTAPD_DBG
> > > 
> > > Before this change, the numerical value set is equal first byte of 
> > > input minus 0x30 (ASCII value of '0').  Because of this, after a write 
> > > to this debugfs file, it is difficult to predict the regions on which
> > > logging is enabled.
> > > 
> > > The DBG_REGION_ALL now includes 3 additional regions TCP_ENH, SPIN_DEBUG
> > > and FIRM_DBG.
> > 
> > Why did you add these extra ones?
> I added them because there is code support them and to avoid a holes in
> the range of the options.

But why do you need to debug such things?

> > All of this should eventually just be deleted, as network drivers need
> > to use the networking driver debug interfaces, not their own crazy ones.
> In that case, can I assume that we are not going forward with this change?

I hope not, please work on fixing the driver up to work properly (i.e.
not with this type of stuff...)

thanks,

greg k-h
--
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/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] staging: wilc1000: Set all options in region debugfs file Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-18 19:10 +0200
  Re: [PATCH] staging: wilc1000: Set all options in region debugfs file Greg KH <gregkh@linuxfoundation.org> - 2015-08-19 05:10 +0200
    Re: [PATCH] staging: wilc1000: Set all options in region debugfs file Chandra Gorentla <csgorentla@gmail.com> - 2015-08-19 14:40 +0200
      Re: [PATCH] staging: wilc1000: Set all options in region debugfs file Greg KH <gregkh@linuxfoundation.org> - 2015-08-19 17:10 +0200

csiph-web