tmp_suning_uos_patched/scripts
Nathaniel McCallum afe2dab4f6 USB: add hex/bcd detection to usb modalias generation
The current code to generate usb modaliases from usb_device_id assumes
that the device's bcdDevice descriptor will actually be in BCD format.
While this should be a sane assumption, some devices don't follow spec
and just use plain old hex.  This causes drivers for these devices to
generate invalid modalias lines which will never actually match for the
hardware.

The following patch adds hex support for bcdDevice in file2alias.c by
detecting when a driver uses a hex formatted bcdDevice_(lo|hi) and
adjusts the output to hex format accordingly.

Drivers for devices which have bcdDevice conforming to BCD will have no
change in modalias output.  Drivers for devices which don't conform
(i.e. ibmcam) should now generate valid modaliases.

EXAMPLE OUTPUT (ibmcam; space added to highlight change)
    Old: usb:v0545p800D d030[10-9] dc*dsc*dp*ic*isc*ip*
    New: usb:v0545p800D d030a      dc*dsc*dp*ic*isc*ip*

Signed-off-by: Nathaniel McCallum <nathaniel@natemccallum.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-12-11 11:55:20 -08:00
..
basic Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-next 2009-09-23 15:37:02 -07:00
dtc dtc: Mark various internal functions static 2009-11-15 15:01:41 -08:00
genksyms genksyms: Mark is_reserved_word static 2009-11-15 15:01:22 -08:00
kconfig Merge branch 'for-next' into for-linus 2009-12-07 18:36:35 +01:00
ksymoops
mod USB: add hex/bcd detection to usb modalias generation 2009-12-11 11:55:20 -08:00
package kbuild: fix the binrpm-pkg target to work with KBUILD_OUTPUT set 2009-10-11 23:21:24 +02:00
rt-tester
selinux SELinux: header generation may hit infinite loop 2009-11-23 09:00:44 +11:00
tracing tracing, perf: Convert the power tracer into an event tracer 2009-09-19 11:42:12 +02:00
.gitignore
bin2c.c
binoffset.c
bloat-o-meter
bootgraph.pl
checkincludes.pl checkincludes.pl: add option to remove duplicates in place 2009-09-20 12:27:43 +02:00
checkkconfigsymbols.sh kbuild,scripts: use non-builtin echo for '-e' 2009-10-11 23:21:25 +02:00
checkpatch.pl checkpatch: version 0.30 2009-10-29 07:39:31 -07:00
checkstack.pl
checksyscalls.sh
checkversion.pl
cleanfile
cleanpatch
config
conmakehash.c Fix all -Wmissing-prototypes warnings in x86 defconfig 2009-09-23 07:39:28 -07:00
decodecode
diffconfig
export_report.pl
extract-ikconfig
gcc-version.sh
gcc-x86_32-has-stack-protector.sh
gcc-x86_64-has-stack-protector.sh
gen_initramfs_list.sh
get_maintainer.pl get_maintainer: fix usage comment 2009-11-12 07:25:56 -08:00
gfp-translate
headerdep.pl
headers_check.pl
headers_install.pl warn about use of uninstalled kernel headers 2009-10-11 23:21:25 +02:00
headers.sh
kallsyms.c kallsyms: fix segfault in prefix_underscores_count() 2009-09-23 07:39:30 -07:00
Kbuild.include kbuild,scripts: use non-builtin echo for '-e' 2009-10-11 23:21:25 +02:00
kernel-doc tracing: Add DEFINE_EVENT(), DEFINE_SINGLE_EVENT() support to docbook 2009-12-02 09:57:37 +01:00
Lindent
Makefile
Makefile.build kbuild: Don't define ALIGN and ENTRY when preprocessing linker scripts. 2009-09-21 06:27:08 +02:00
Makefile.clean
Makefile.fwinst
Makefile.headersinst
Makefile.host
Makefile.lib kbuild: Fix size_append issue for bzip2/lzma kernel 2009-10-11 23:21:25 +02:00
Makefile.modinst
Makefile.modpost tracing: Remove markers 2009-09-18 21:22:08 +02:00
makelst
markup_oops.pl markup_oops: use modinfo to avoid confusion with underscored module names 2009-09-20 12:27:43 +02:00
mkcompile_h kbuild: mkcompile_h: trivial cleanups 2009-10-11 23:21:25 +02:00
mkmakefile
mksysmap
mkuboot.sh
mkversion
module-common.lds
namespace.pl
patch-kernel
pnmtologo.c
profile2linkerlist.pl
recordmcount.pl tracing: Only print objcopy version warning once from recordmcount 2009-11-17 11:05:52 -05:00
setlocalversion
show_delta
tags.sh ctags: usability fix 2009-09-20 12:27:43 +02:00
unifdef.c
ver_linux