CBUS Patches
Subsystems (4)
cover CBUS Patches
Hi Tony,
the following two patches get rid of the static global variable holding the bus context. It's not needed at all.
This will allow us to have multiple CBUS buses by using different GPIOs.
Will never be useful, but that's it should've been done anyway :-p
Felipe Balbi (2):
cbus: make cbus parent of bus users
cbus: pass device as argument
arch/arm/mach-omap1/board-nokia770.c | 4 ++++ arch/arm/mach-omap2/board-n8x0.c | 4 ++++ drivers/cbus/cbus.c | 20 +++++++++++--------- drivers/cbus/cbus.h | 5 +++-- drivers/cbus/retu.c | 4 ++-- drivers/cbus/tahvo.c | 9 +++++++-- 6 files changed, 31 insertions(+), 15 deletions(-)
Signature · 1 line
1.7.6.rc1
PATCH 1/2 cbus: make cbus parent of bus users
CBUS is the underlying bus device, make
it the parent of the bus users (retu and
tahvo).
--- arch/arm/mach-omap1/board-nokia770.c | 4 ++++ arch/arm/mach-omap2/board-n8x0.c | 4 ++++ 2 files changed, 8 insertions(+), 0 deletions(-)
arch/arm/mach-omap1/board-nokia770.c +4 -0
@@ -136,6 +136,7 @@ static struct platform_device retu_device = { .num_resources = ARRAY_SIZE(retu_resource), .dev = { .platform_data = &nokia770_retu_data, + .parent = &nokia770_cbus_device.dev, }, };
@@ -151,6 +152,9 @@ static struct platform_device tahvo_device = { .id = -1, .resource = tahvo_resource, .num_resources = ARRAY_SIZE(tahvo_resource), + .dev = { + .parent = &nokia770_cbus_device.dev, + }, };static struct platform_device tahvo_usb_device = {
arch/arm/mach-omap2/board-n8x0.c +4 -0
@@ -232,6 +232,7 @@ static struct platform_device retu_device = { .num_resources = ARRAY_SIZE(retu_resource), .dev = { .platform_data = &n8x0_retu_data, + .parent = &n8x0_cbus_device.dev, }, };
@@ -247,6 +248,9 @@ static struct platform_device tahvo_device = { .id = -1, .resource = tahvo_resource, .num_resources = ARRAY_SIZE(tahvo_resource), + .dev = { + .parent = &n8x0_cbus_device.dev, + }, };static struct platform_device tahvo_usb_device = {
Signature · 1 line
1.7.6.rc1
PATCH 2/2 cbus: pass device as argument
In reply to Felipe Balbithat way we can fetch struct cbus_host
via dev_get_platform_data(child->parent).
This also allows us to remove the static
global variable holding cbus_host pointer.
--- drivers/cbus/cbus.c | 20 +++++++++++--------- drivers/cbus/cbus.h | 5 +++-- drivers/cbus/retu.c | 4 ++-- drivers/cbus/tahvo.c | 9 +++++++-- 4 files changed, 23 insertions(+), 15 deletions(-)
drivers/cbus/cbus.c +11 -9
@@ -52,8 +52,6 @@ struct cbus_host {int sel_gpio; }; -static struct cbus_host *cbus_host; -/** * cbus_send_bit - sends one bit over the bus * @host: the host we're using
@@ -220,24 +218,31 @@ out:/** * cbus_read_reg - reads a given register from the device +* @child: the child device * @dev: device address * @reg: register address */ -int cbus_read_reg (unsigned dev,unsigned reg) +int cbus_read_reg (struct device *child,unsigned dev,unsigned reg) { -return cbus_transfer (cbus_host,CBUS_XFER_READ , dev, reg,0 ); +struct cbus_host *host =dev_get_drvdata (child->parent); + +return cbus_transfer (host,CBUS_XFER_READ , dev, reg,0 ); }EXPORT_SYMBOL (cbus_read_reg);/** * cbus_write_reg - writes to a given register of the device +* @child: the child device * @dev: device address * @reg: register address * @val: data to be written to @reg */ -int cbus_write_reg (unsigned dev,unsigned reg,unsigned val) +int cbus_write_reg (struct device *child,unsigned dev,unsigned reg, +unsigned val) { -return cbus_transfer (cbus_host,CBUS_XFER_WRITE , dev, reg, val); +struct cbus_host *host =dev_get_drvdata (child->parent); + +return cbus_transfer (host,CBUS_XFER_WRITE , dev, reg, val); }EXPORT_SYMBOL (cbus_write_reg);
@@ -279,8 +284,6 @@ static int __init cbus_bus_probe(struct platform_device *pdev)platform_set_drvdata (pdev, chost); - cbus_host = chost; -return 0 ; exit3:gpio_free (chost->dat_gpio);
@@ -301,7 +304,6 @@ static void __exit cbus_bus_remove(struct platform_device *pdev)gpio_free (chost->clk_gpio);kfree (chost); - cbus_host =NULL ; }static struct platform_driver cbus_driver = {
drivers/cbus/cbus.h +3 -2
@@ -23,7 +23,8 @@#ifndef __DRIVERS_CBUS_CBUS_H#define __DRIVERS_CBUS_CBUS_H -extern int cbus_read_reg (unsigned dev,unsigned reg); -extern int cbus_write_reg (unsigned dev,unsigned reg,unsigned val); +extern int cbus_read_reg (struct device *,unsigned dev,unsigned reg); +extern int cbus_write_reg (struct device *,unsigned dev,unsigned reg, +unsigned val);#endif /* __DRIVERS_CBUS_CBUS_H */
drivers/cbus/retu.c +2 -2
@@ -79,7 +79,7 @@ static struct retu *the_retu;*/ static int __retu_read_reg (struct retu *retu,unsigned reg) { -return cbus_read_reg (retu->devid, reg); +return cbus_read_reg (retu->dev, retu->devid, reg); }/**
@@ -90,7 +90,7 @@ static int __retu_read_reg(struct retu *retu, unsigned reg)*/ static void __retu_write_reg (struct retu *retu,unsigned reg,u16 val) { -cbus_write_reg (retu->devid, reg, val); +cbus_write_reg (retu->dev, retu->devid, reg, val); }/**
drivers/cbus/tahvo.c +7 -2
@@ -55,6 +55,8 @@ static int tahvo_is_betty;static struct tasklet_struct tahvo_tasklet;static DEFINE_SPINLOCK (tahvo_lock); +static struct device *the_dev; +struct tahvo_irq_handler_desc {int (*func)(unsigned long );unsigned long arg;
@@ -78,7 +80,7 @@ EXPORT_SYMBOL(tahvo_get_status);int tahvo_read_reg (unsigned reg) {BUG_ON (!tahvo_initialized); -return cbus_read_reg (TAHVO_ID , reg); +return cbus_read_reg (the_dev,TAHVO_ID , reg); }EXPORT_SYMBOL (tahvo_read_reg);
@@ -92,7 +94,7 @@ EXPORT_SYMBOL(tahvo_read_reg);void tahvo_write_reg (unsigned reg,u16 val) {BUG_ON (!tahvo_initialized); -cbus_write_reg (TAHVO_ID , reg, val); +cbus_write_reg (the_dev,TAHVO_ID , reg, val); }EXPORT_SYMBOL (tahvo_write_reg);
@@ -305,6 +307,8 @@ static int __init tahvo_probe(struct platform_device *pdev)int rev, id, ret;int irq; + the_dev = &pdev->dev; +/* Prepare tasklet */ tasklet_init (&tahvo_tasklet, tahvo_tasklet_handler,0 );
@@ -351,6 +355,7 @@ static int __exit tahvo_remove(struct platform_device *pdev)tahvo_write_reg (TAHVO_REG_IMR ,0xffff );free_irq (irq,0 );tasklet_kill (&tahvo_tasklet); + the_dev =NULL ;return 0 ; }
Signature · 1 line
1.7.6.rc1
Tony Lindgren
maintainerQuoted 11 lines · Felipe Balbi
Hi Tony,
the following two patches get rid of the static global variable holding the bus context. It's not needed at all.
This will allow us to have multiple CBUS buses by using different GPIOs.
Will never be useful, but that's it should've been done anyway :-p
OK cool applying to cbus branch.
Tony
Tony Lindgren
maintainerQuoted 7 lines · Tony Lindgren
Quoted 6 lines · Felipe Balbi
Hi Tony,
the following two patches get rid of the static global variable holding the bus context. It's not needed at all.
Quoted 7 lines
Quoted 5 lines
This will allow us to have multiple CBUS buses by using different GPIOs.
Will never be useful, but that's it should've been done anyway :-p
OK cool applying to cbus branch.
Hmm the second patch "cbus: pass device as argument" breaks booting on n800. Anyways pushed out already so that will need to be fixed in a separate patch.
Tony
Quoted 11 lines · Tony Lindgren
Quoted 10 lines · Tony Lindgren
Quoted 9 lines · Felipe Balbi
Hi Tony,
the following two patches get rid of the static global variable holding the bus context. It's not needed at all.
This will allow us to have multiple CBUS buses by using different GPIOs.
Quoted 8 lines
Quoted 4 lines
Quoted 2 lines
Will never be useful, but that's it should've been done anyway :-p
OK cool applying to cbus branch.
Hmm the second patch "cbus: pass device as argument" breaks booting on n800. Anyways pushed out already so that will need to be fixed in a separate patch.
any good dmesg output for me to take a look at ?
Signature · 1 line
balbi
Tony Lindgren
maintainerQuoted 7 lines · Felipe Balbi
Quoted 4 lines · Tony Lindgren
Hmm the second patch "cbus: pass device as argument" breaks booting on n800. Anyways pushed out already so that will need to be fixed in a separate patch.
any good dmesg output for me to take a look at ?
Here's the trace with DEBUG_LL + EARLY_PRINTK + earlyprintk in the added to the CMDLINE in .config.
Regards,
Tony
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.0.0-rc3-11084-g9d85261 (tmlind@kaulin) (gcc version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #18 SMP Tue Jun 14 06:40:28 PDT 2011 [ 0.000000] CPU: ARMv6-compatible processor [4107b362] revision 2 (ARMv6TEJ), cr=00c5387f [ 0.000000] CPU: VIPT aliasing data cache, unknown instruction cache [ 0.000000] Machine: Nokia N800 [ 0.000000] Ignoring unrecognised tag 0x414f4d50 [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] OMAP2420 [ 0.000000] [ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0xa0000 [ 0.000000] Clocking rate (Crystal/DPLL/MPU): 19.2/658/329 MHz [ 0.000000] PERCPU: Embedded 7 pages/cpu @c0cc4000 s5952 r8192 d14528 u32768 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait console=ttyO2,115200 earlyprintk [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 128MB = 128MB total [ 0.000000] Memory: 117868k/117868k available, 13204k reserved, 0K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB) [ 0.000000] vmalloc : 0xc8800000 - 0xf8000000 ( 760 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .init : 0xc0008000 - 0xc0053000 ( 300 kB) [ 0.000000] .text : 0xc0053000 - 0xc05e7e90 (5716 kB) [ 0.000000] .data : 0xc05e8000 - 0xc066a6f0 ( 522 kB) [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: at arch/arm/kernel/hw_breakpoint.c:142 get_debug_arch+0x4c/0x68() [ 0.000000] CPUID feature registers not supported. Assuming v6 debug is present. [ 0.000000] Modules linked in: [ 0.000000] [<c0065e14>] (unwind_backtrace+0x0/0xf8) from [<c009a794>] (warn_slowpath_common+0x4c/0x64) [ 0.000000] [<c009a794>] (warn_slowpath_common+0x4c/0x64) from [<c009a840>] (warn_slowpath_fmt+0x30/0x40) [ 0.000000] [<c009a840>] (warn_slowpath_fmt+0x30/0x40) from [<c006676c>] (get_debug_arch+0x4c/0x68) [ 0.000000] [<c006676c>] (get_debug_arch+0x4c/0x68) from [<c0066834>] (hw_breakpoint_slots+0xc/0x54) [ 0.000000] [<c0066834>] (hw_breakpoint_slots+0xc/0x54) from [<c001f628>] (init_hw_breakpoint+0x10/0x150) [ 0.000000] [<c001f628>] (init_hw_breakpoint+0x10/0x150) from [<c001f5a8>] (perf_event_init+0x118/0x188) [ 0.000000] [<c001f5a8>] (perf_event_init+0x118/0x188) from [<c0008a44>] (start_kernel+0x164/0x300) [ 0.000000] [<c0008a44>] (start_kernel+0x164/0x300) from [<80008040>] (0x80008040) [ 0.000000] ---[ end trace 1b75b31a2719ed1c ]--- [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:426 [ 0.000000] IRQ: Found an INTC at 0xfa0fe000 (revision 2.0) with 96 interrupts [ 0.000000] Total of 96 interrupts on 1 active controller [ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz [ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms [ 0.000000] Console: colour dummy device 80x30 [ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar [ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8 [ 0.000000] ... MAX_LOCK_DEPTH: 48 [ 0.000000] ... MAX_LOCKDEP_KEYS: 8191 [ 0.000000] ... CLASSHASH_SIZE: 4096 [ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384 [ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768 [ 0.000000] ... CHAINHASH_SIZE: 16384 [ 0.000000] memory used by lock dependency info: 3695 kB [ 0.000000] per task-struct memory footprint: 1152 bytes [ 0.058380] Calibrating delay loop... 325.10 BogoMIPS (lpj=1271808) [ 0.119628] pid_max: default: 32768 minimum: 301 [ 0.125976] Security Framework initialized [ 0.131011] Mount-cache hash table entries: 512 [ 0.145416] CPU: Testing write buffer coherency: ok [ 0.159057] Brought up 1 CPUs [ 0.162231] SMP: Total of 1 processors activated (325.10 BogoMIPS). [ 0.199188] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l3_main [ 0.206787] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_core [ 0.214324] omap_hwmod: _populate_mpu_rt_base found no _mpu_rt_va for l4_wkup [ 0.238128] omap_hwmod: i2c1: softreset failed (waited 10000 usec) [ 0.259277] omap_hwmod: i2c2: softreset failed (waited 10000 usec) [ 0.277587] print_constraints: dummy: [ 0.284423] NET: Registered protocol family 16 [ 0.289825] GPMC revision 2.0 [ 0.308715] omap_device: omap_gpio.0: new worst case activate latency 0: 244140 [ 0.322479] OMAP GPIO hardware version 1.8 [ 0.330535] OMAP GPIO hardware version 1.8 [ 0.338073] OMAP GPIO hardware version 1.8 [ 0.345703] OMAP GPIO hardware version 1.8 [ 0.371704] omap_mux_init: Add partition: #1: core, flags: 3 [ 0.395080] omap_device: omap_uart.0: new worst case activate latency 0: 30517 [ 0.407348] omap_device: omap_uart.1: new worst case deactivate latency 0: 30517 [ 0.423431] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. [ 0.430755] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.455413] pm_dbg_init: only OMAP3 supported [ 0.463348] OMAP DMA hardware revision 2.0 [ 0.636199] bio: create slab <bio-0> at 0 [ 0.662750] SCSI subsystem initialized [ 0.668457] omap_device: omap2_mcspi.1: new worst case activate latency 0: 30517 [ 0.680267] omap_device: omap2_mcspi.1: new worst case deactivate latency 0: 30517 [ 0.704010] usbcore: registered new interface driver usbfs [ 0.713226] usbcore: registered new interface driver hub [ 0.721343] usbcore: registered new device driver usb [ 0.731781] omap_device: omap_i2c.1: new worst case activate latency 0: 30517 [ 0.750518] omap_i2c omap_i2c.1: bus 1 rev3.4 at 400 kHz [ 0.762237] omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517 [ 0.781188] omap_i2c omap_i2c.2: bus 2 rev3.4 at 400 kHz [ 0.793243] tahvo tahvo: Betty v2.1 found [ 0.801361] Unable to handle kernel NULL pointer dereference at virtual address 00000000 [ 0.809997] pgd = c0004000 [ 0.812988] [00000000] *pgd=00000000 [ 0.816772] Internal error: Oops: 5 [#1] SMP [ 0.821289] Modules linked in: [ 0.824554] CPU: 0 Tainted: G W (3.0.0-rc3-11084-g9d85261 #18) [ 0.831848] PC is at cbus_read_reg+0x10/0x38 [ 0.836364] LR is at retu_probe+0xe4/0x2f8 [ 0.840698] pc : [<c0368a8c>] lr : [<c002e124>] psr: 60000013 [ 0.840698] sp : c7825eb0 ip : 00000006 fp : c066a720 [ 0.852722] r10: c0660b8c r9 : c0bb81f0 r8 : c0653cf0 [ 0.858215] r7 : c0632ce0 r6 : 000001aa r5 : 00000000 r4 : 00000001 [ 0.865020] r3 : 000095e6 r2 : 00000000 r1 : 00000001 r0 : 00000000 [ 0.871856] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel [ 0.879516] Control: 00c5387f Table: 80004000 DAC: 00000017 [ 0.885528] Process swapper (pid: 1, stack limit = 0xc78242f8) [ 0.891662] Stack: (0xc7825eb0 to 0xc7826000) [ 0.896240] 5ea0: 000001a9 60000013 000001aa 000001aa [ 0.904815] 5ec0: c78d5a40 c002e124 c0660b8c c0632ce0 c0632ce0 c0632ce0 c0660b8c c02c9950 [ 0.913360] 5ee0: c0653cf0 c0bb6310 c0660b8c c02cabb4 c0632ce0 c02c9824 c0632ce0 c0632d14 [ 0.921905] 5f00: c0660b8c c02c9950 c0653cf0 00000000 c78d5ac0 c02c99e4 00000000 c7825f28 [ 0.930450] 5f20: c0660b8c c02c9050 c781a658 c7880eb0 00000000 c0553a64 c00371c0 c0660b8c [ 0.939025] 5f40: c0660b8c c02c8960 c0553a64 c026c440 c0660b78 c00371c0 c0660b8c 00000013 [ 0.947570] 5f60: c7824000 c002e02c 00000000 c02c9fe4 c0660b78 c00371c0 c0036c94 00000013 [ 0.956115] 5f80: c7824000 c02cafc8 c0036e14 c00371c0 c0036c94 c0053520 c05ee880 c00e629c [ 0.964660] 5fa0: 0000005f 00000000 c0036c94 35390013 00000000 00000000 00000000 000001aa [ 0.973236] 5fc0: c06436cc c0036e14 c00371c0 c0036c94 00000013 00000000 00000000 00000000 [ 0.981781] 5fe0: 00000000 c000859c 00000000 c00084e8 c005fc54 c005fc54 ffffffff ffffffff [ 0.990356] [<c0368a8c>] (cbus_read_reg+0x10/0x38) from [<c002e124>] (retu_probe+0xe4/0x2f8) [ 0.999206] [<c002e124>] (retu_probe+0xe4/0x2f8) from [<c02cabb4>] (platform_drv_probe+0x18/0x1c) [ 1.008483] [<c02cabb4>] (platform_drv_probe+0x18/0x1c) from [<c02c9824>] (driver_probe_device+0x98/0x1c4) [ 1.018554] [<c02c9824>] (driver_probe_device+0x98/0x1c4) from [<c02c99e4>] (__driver_attach+0x94/0x98) [ 1.028381] [<c02c99e4>] (__driver_attach+0x94/0x98) from [<c02c9050>] (bus_for_each_dev+0x60/0x8c) [ 1.037811] [<c02c9050>] (bus_for_each_dev+0x60/0x8c) from [<c02c8960>] (bus_add_driver+0x198/0x260) [ 1.047363] [<c02c8960>] (bus_add_driver+0x198/0x260) from [<c02c9fe4>] (driver_register+0x6c/0x150) [ 1.056915] [<c02c9fe4>] (driver_register+0x6c/0x150) from [<c02cafc8>] (platform_driver_probe+0x18/0x9c) [ 1.066925] [<c02cafc8>] (platform_driver_probe+0x18/0x9c) from [<c0053520>] (do_one_initcall+0x34/0x180) [ 1.076904] [<c0053520>] (do_one_initcall+0x34/0x180) from [<c000859c>] (kernel_init+0xb4/0x168) [ 1.086120] [<c000859c>] (kernel_init+0xb4/0x168) from [<c005fc54>] (kernel_thread_exit+0x0/0x8) [ 1.095306] Code: e92d4030 e1a04001 e1a05002 e24dd00c (e5900000) [ 1.101776] ---[ end trace 1b75b31a2719ed1d ]--- [ 1.106689] Kernel panic - not syncing: Attempted to kill init!
Hi,
Quoted 11 lines · Tony Lindgren
Quoted 7 lines · Felipe Balbi
Quoted 4 lines · Tony Lindgren
Hmm the second patch "cbus: pass device as argument" breaks booting on n800. Anyways pushed out already so that will need to be fixed in a separate patch.
any good dmesg output for me to take a look at ?
Here's the trace with
DEBUG_LL+EARLY_PRINTK+ earlyprintk in the added to the CMDLINE in .config.
fix attached.
Signature · 1 line
balbi
From e0db8f98be32cd84914b90264abda6777ddffac7 Mon Sep 17 00:00:00 2001
From: Felipe Balbi <[email protected]>
Date: Tue, 14 Jun 2011 16:56:32 +0300
Subject: [PATCH] cbus: retu: initialize dev pointer
Organization: Texas Instruments\n
without it we have a kernel oops when
booting n8x0.
--- drivers/cbus/retu.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/cbus/retu.c +1 -0
@@ -455,6 +455,7 @@ static int __init retu_probe(struct platform_device *pdev) retu->irq_base = pdata->irq_base; retu->irq_end = pdata->irq_end; retu->devid = pdata->devid; + retu->dev = &pdev->dev; the_retu = retu;mutex_init (&retu->mutex);
Signature · 1 line
1.7.6.rc1
Tony Lindgren
maintainerQuoted 10 lines · Felipe Balbi
Hi,
Quoted 7 lines · Tony Lindgren
Quoted 6 lines · Felipe Balbi
Quoted 4 lines · Tony Lindgren
Hmm the second patch "cbus: pass device as argument" breaks booting on n800. Anyways pushed out already so that will need to be fixed in a separate patch.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
any good dmesg output for me to take a look at ?
Here's the trace with
DEBUG_LL+EARLY_PRINTK+ earlyprintk in the added to the CMDLINE in .config.fix attached.
Thanks, pushing to cbus branch and also applying to master branch.
Tony