Re: [PATCH] ibmvnic: remove excessive irqsave

2021-03-04 Thread Lijun Pan
> On Mar 4, 2021, at 11:49 PM, Christophe Leroy > wrote: > > > > Le 05/03/2021 à 02:43, angkery a écrit : >> From: Junlin Yang >> ibmvnic_remove locks multiple spinlocks while disabling interrupts: >> spin_lock_irqsave(>state_lock, flags); >> spin_lock_irqsave(>rwi_lock, flags); >> there

Re: [PATCH] vio: make remove callback return void

2021-01-29 Thread Lijun Pan
e() returns > calling this unconditionally is the consistent behaviour which is > implemented here. > > Signed-off-by: Uwe Kleine-König Acked-by: Lijun Pan

Re: [PATCH] ibmvnic: fix: NULL pointer dereference.

2020-12-30 Thread Lijun Pan
scrq->irq, scrq->msgs); > return -EINVAL; > } > > If the expression is true, scrq must be a null pointer and cannot > dereference. > > Signed-off-by: YANG LI > Reported-by: Abaci > --- Acked-by: Lijun Pan

[PATCH] ARM: dts: ls2080a: Add quirk for Erratum A009116

2016-02-09 Thread Lijun Pan
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Lijun Pan --- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |2 ++ 1 file changed, 2 insertion

[PATCH] usb: fsl: fix typo FLS_USB2_WORKAROUND_ENGCM09152

2016-02-09 Thread Lijun Pan
FLS_USB2_WORKAROUND_ENGCM09152 is a typo. It should be FSL_USB2_WORKAROUND_ENGCM09152 since FSL is the abbreviation of Freescale. Signed-off-by: Lijun Pan --- arch/arm/mach-imx/mach-mx35_3ds.c|2 +- arch/arm/mach-imx/mach-vpr200.c |2 +- drivers/usb/gadget/udc/fsl_mxc_udc.c

[PATCH] usb: fsl: fix typo FLS_USB2_WORKAROUND_ENGCM09152

2016-02-09 Thread Lijun Pan
FLS_USB2_WORKAROUND_ENGCM09152 is a typo. It should be FSL_USB2_WORKAROUND_ENGCM09152 since FSL is the abbreviation of Freescale. Signed-off-by: Lijun Pan <lijun@freescale.com> --- arch/arm/mach-imx/mach-mx35_3ds.c|2 +- arch/arm/mach-imx/mach-vpr200.c |2 +- drive

[PATCH] ARM: dts: ls2080a: Add quirk for Erratum A009116

2016-02-09 Thread Lijun Pan
Add "snps,quirk-frame-length-adjustment" property to USB3 node for erratum A009116. This property provides value of GFLADJ_30MHZ for post silicon frame length adjustment. Signed-off-by: Lijun Pan <lijun@freescale.com> --- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |

RE: [PATCH RESEND v2 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2016-02-08 Thread Lijun Pan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Sunday, February 07, 2016 9:34 PM > To: Lijun Pan > Cc: a...@arndb.de; de...@driverdev.osuosl.org; linux- > ker...@vger.kernel.org; bhamc...@freescale.com; lijun.pan2...@gmail.

[PATCH v3 7/8] staging: fsl-mc: update TODO and README for restool driver

2016-02-08 Thread Lijun Pan
Add more introduction of restool driver and state why restool driver is needed in helping moving fsl-mc bus out of staging tree. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/README.txt | 11 ++- drivers/staging/fsl-mc/TODO | 18 -- 2 files changed, 26

[PATCH v3 6/8] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2016-02-08 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan --- v3: rebased on top of greg's staging-testing drivers/staging/fsl-mc/bus/mc-bus.c |

[PATCH v3 3/8] staging: fsl-mc: dprc device's sysfs rescan documentation

2016-02-08 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of dprc devices. Signed-off-by: Lijun Pan --- Documentation/ABI/testing/sysfs-devices-dprc | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-dprc diff --git a/Documentation/ABI

[PATCH v3 0/8] Management Complex restool driver

2016-02-08 Thread Lijun Pan
This series of patches are rebased on https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/commit/?h=staging-next=c75955d1ee43b214c497cc297956866ca05ef22b patch v1 1/5 "staging: fsl-mc: section mismatch bug fix" is already accepted. Lijun Pan (8): staging: fsl-mc: sta

[PATCH v3 2/8] staging: fsl-mc: add sysfs rescan attribute in TODO

2016-02-08 Thread Lijun Pan
Demonstrate why sysfs rescan attribute is helpful for moving fsl-mc bus out of staging. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/TODO |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO index 3894368..5065821 100644

[PATCH v3 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2016-02-08 Thread Lijun Pan
Define a static inline function is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Remove fsl_mc_is_root_dprc() because is_root_dprc() is simpler and easier to understand. Signed-off-by: Lijun Pan --- v3: rebased on top of greg's staging-testing v2: use static

[PATCH v3 5/8] staging: fsl-mc: fsl-mc bus's sysfs rescan documentation

2016-02-08 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of fsl-mc bus. Signed-off-by: Lijun Pan --- Documentation/ABI/testing/sysfs-bus-fsl-mc | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc diff --git a/Documentation/ABI/testing

[PATCH v3 8/8] staging: fsl-mc: Management Complex restool driver

2016-02-08 Thread Lijun Pan
to associate with this root dprc. Signed-off-by: Lijun Pan --- v3: rebased on top of greg's staging-testing v2: remove verbose printk improve error handling synchronize misc_list access reserve ioctl range in Documentation/ioctl/ioctl-number.txt remove ioctl sync command flip

[PATCH v3 4/8] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2016-02-08 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan --- v3: rebased on top of greg's staging-testing drivers/staging/fsl

RE: [PATCH RESEND v2 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2016-02-08 Thread Lijun Pan
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Sunday, February 07, 2016 9:34 PM > To: Lijun Pan <lijun@freescale.com> > Cc: a...@arndb.de; de...@driverdev.osuosl.org; linux- > ker...@vger.kernel.org; bhamc...@freescale.com;

[PATCH v3 8/8] staging: fsl-mc: Management Complex restool driver

2016-02-08 Thread Lijun Pan
to associate with this root dprc. Signed-off-by: Lijun Pan <lijun@freescale.com> --- v3: rebased on top of greg's staging-testing v2: remove verbose printk improve error handling synchronize misc_list access reserve ioctl range in Documentation/ioctl/ioctl-number.txt remove

[PATCH v3 5/8] staging: fsl-mc: fsl-mc bus's sysfs rescan documentation

2016-02-08 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of fsl-mc bus. Signed-off-by: Lijun Pan <lijun@freescale.com> --- Documentation/ABI/testing/sysfs-bus-fsl-mc | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc diff

[PATCH v3 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2016-02-08 Thread Lijun Pan
Define a static inline function is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Remove fsl_mc_is_root_dprc() because is_root_dprc() is simpler and easier to understand. Signed-off-by: Lijun Pan <lijun@freescale.com> --- v3: rebased on top of

[PATCH v3 2/8] staging: fsl-mc: add sysfs rescan attribute in TODO

2016-02-08 Thread Lijun Pan
Demonstrate why sysfs rescan attribute is helpful for moving fsl-mc bus out of staging. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/TODO |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO

[PATCH v3 0/8] Management Complex restool driver

2016-02-08 Thread Lijun Pan
This series of patches are rebased on https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/commit/?h=staging-next=c75955d1ee43b214c497cc297956866ca05ef22b patch v1 1/5 "staging: fsl-mc: section mismatch bug fix" is already accepted. Lijun Pan (8): staging: fsl-mc: sta

[PATCH v3 7/8] staging: fsl-mc: update TODO and README for restool driver

2016-02-08 Thread Lijun Pan
Add more introduction of restool driver and state why restool driver is needed in helping moving fsl-mc bus out of staging tree. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/README.txt | 11 ++- drivers/staging/fsl-mc/TODO

[PATCH v3 3/8] staging: fsl-mc: dprc device's sysfs rescan documentation

2016-02-08 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of dprc devices. Signed-off-by: Lijun Pan <lijun@freescale.com> --- Documentation/ABI/testing/sysfs-devices-dprc | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-dprc

[PATCH v3 6/8] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2016-02-08 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan <lijun@freescale.com> --- v3: rebased on top of greg's staging-testing drivers/st

[PATCH v3 4/8] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2016-02-08 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan <lijun@freescale.com> --- v3: rebased on top of greg's stagin

[PATCH RESEND v2 8/8] staging: fsl-mc: Management Complex restool driver

2015-12-11 Thread Lijun Pan
to associate with this root dprc. Signed-off-by: Lijun Pan --- v2: remove verbose printk improve error handling synchronize misc_list access reserve ioctl range in Documentation/ioctl/ioctl-number.txt remove ioctl sync command flip if(!...) to make them fit in 80 columns

[PATCH RESEND v3] fsl-ifc: add missing include on ARM64

2015-12-11 Thread Lijun Pan
m/stat.h does not include ./arch/arm64/include/asm/compat.h, then it will not include include/linux/sched.h Hence we have to manually add "#include " in drivers/memory/fsl_ifc.c Signed-off-by: Lijun Pan --- v3: change the subject title to better reflect the commit message insert li

[PATCH RESEND v2 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2015-12-11 Thread Lijun Pan
Define a static inline function is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Remove fsl_mc_is_root_dprc() because is_root_dprc() is simpler and easier to understand. Signed-off-by: Lijun Pan --- v2: use static inline function instead of macro replace

[PATCH RESEND v2 6/8] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-12-11 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/mc-bus.c | 46 + 1 f

[PATCH RESEND v2 2/8] staging: fsl-mc: add sysfs rescan attribute in TODO

2015-12-11 Thread Lijun Pan
Demonstrate why sysfs rescan attribute is helpful for moving fsl-mc bus out of staging. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/TODO | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO index 3894368..5065821 100644

[PATCH RESEND v3 3/8] staging: fsl-mc: dprc device's sysfs rescan documentation

2015-12-11 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of dprc devices. Signed-off-by: Lijun Pan --- Documentation/ABI/testing/sysfs-devices-dprc | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-dprc diff --git a/Documentation/ABI

[PATCH RESEND v2 4/8] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2015-12-11 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/mc-bus.c |

[PATCH RESEND v2 5/8] staging: fsl-mc: fsl-mc bus's sysfs rescan documentation

2015-12-11 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of fsl-mc bus. Signed-off-by: Lijun Pan --- Documentation/ABI/testing/sysfs-bus-fsl-mc | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc diff --git a/Documentation/ABI/testing

[PATCH RESEND v2 0/8] Management Complex restool driver

2015-12-11 Thread Lijun Pan
ool driver is the first driver to start using fsl-mc bus. This restool driver is small and helps fsl-mc bus move out of staging. Lijun Pan (8): staging: fsl-mc: static inline function to differentiate root dprc staging: fsl-mc: add sysfs rescan attribute in TODO staging: fsl-mc: dprc device's sy

[PATCH RESEND v2 7/8] staging: fsl-mc: update TODO and README for restool driver

2015-12-11 Thread Lijun Pan
Add more introduction of restool driver and state why restool driver is needed in helping moving fsl-mc bus out of staging tree. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/README.txt | 11 ++- drivers/staging/fsl-mc/TODO | 18 -- 2 files changed, 26

[PATCH RESEND v2 7/8] staging: fsl-mc: update TODO and README for restool driver

2015-12-11 Thread Lijun Pan
Add more introduction of restool driver and state why restool driver is needed in helping moving fsl-mc bus out of staging tree. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/README.txt | 11 ++- drivers/staging/fsl-mc/TODO | 18 +++

[PATCH RESEND v2 4/8] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2015-12-11 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/bus/mc-b

[PATCH RESEND v2 5/8] staging: fsl-mc: fsl-mc bus's sysfs rescan documentation

2015-12-11 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of fsl-mc bus. Signed-off-by: Lijun Pan <lijun@freescale.com> --- Documentation/ABI/testing/sysfs-bus-fsl-mc | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc diff

[PATCH RESEND v2 0/8] Management Complex restool driver

2015-12-11 Thread Lijun Pan
ool driver is the first driver to start using fsl-mc bus. This restool driver is small and helps fsl-mc bus move out of staging. Lijun Pan (8): staging: fsl-mc: static inline function to differentiate root dprc staging: fsl-mc: add sysfs rescan attribute in TODO staging: fsl-mc: dprc device's sy

[PATCH RESEND v3 3/8] staging: fsl-mc: dprc device's sysfs rescan documentation

2015-12-11 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of dprc devices. Signed-off-by: Lijun Pan <lijun@freescale.com> --- Documentation/ABI/testing/sysfs-devices-dprc | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-dprc

[PATCH RESEND v2 2/8] staging: fsl-mc: add sysfs rescan attribute in TODO

2015-12-11 Thread Lijun Pan
Demonstrate why sysfs rescan attribute is helpful for moving fsl-mc bus out of staging. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/TODO | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO

[PATCH RESEND v2 6/8] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-12-11 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/bus/mc-b

[PATCH RESEND v2 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2015-12-11 Thread Lijun Pan
Define a static inline function is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Remove fsl_mc_is_root_dprc() because is_root_dprc() is simpler and easier to understand. Signed-off-by: Lijun Pan <lijun@freescale.com> --- v2: use static inline fu

[PATCH RESEND v3] fsl-ifc: add missing include on ARM64

2015-12-11 Thread Lijun Pan
m/stat.h does not include ./arch/arm64/include/asm/compat.h, then it will not include include/linux/sched.h Hence we have to manually add "#include " in drivers/memory/fsl_ifc.c Signed-off-by: Lijun Pan <lijun@freescale.com> --- v3: change the subject title to better reflect t

[PATCH RESEND v2 8/8] staging: fsl-mc: Management Complex restool driver

2015-12-11 Thread Lijun Pan
to associate with this root dprc. Signed-off-by: Lijun Pan <lijun@freescale.com> --- v2: remove verbose printk improve error handling synchronize misc_list access reserve ioctl range in Documentation/ioctl/ioctl-number.txt remove ioctl sync command flip if(!...) to mak

[PATCH v2 4/8] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2015-10-30 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/mc-bus.c |

[PATCH v2 5/8] staging: fsl-mc: fsl-mc bus's sysfs rescan documentation

2015-10-30 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of fsl-mc bus. Signed-off-by: Lijun Pan --- Documentation/ABI/testing/sysfs-bus-fsl-mc | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc diff --git a/Documentation/ABI/testing

[PATCH v2 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2015-10-30 Thread Lijun Pan
Define a static inline function is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Remove fsl_mc_is_root_dprc() because is_root_dprc() is simpler and easier to understand. Signed-off-by: Lijun Pan --- v2: use static inline function instead of macro replace

[PATCH v2 2/8] staging: fsl-mc: add sysfs rescan attribute in TODO

2015-10-30 Thread Lijun Pan
Demonstrate why sysfs rescan attribute is helpful for moving fsl-mc bus out of staging. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/TODO | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO index 3894368..5065821 100644

[PATCH v2 7/8] staging: fsl-mc: update TODO and README for restool driver

2015-10-30 Thread Lijun Pan
Add more introduction of restool driver and state why restool driver is needed in helping moving fsl-mc bus out of staging tree. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/README.txt | 11 ++- drivers/staging/fsl-mc/TODO | 18 -- 2 files changed, 26

[PATCH v2 8/8] staging: fsl-mc: Management Complex restool driver

2015-10-30 Thread Lijun Pan
to associate with this root dprc. Signed-off-by: Lijun Pan --- v2: remove verbose printk improve error handling synchronize misc_list access reserve ioctl range in Documentation/ioctl/ioctl-number.txt remove ioctl sync command flip if(!...) to make them fit in 80 columns

[PATCH v2 6/8] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-10-30 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/mc-bus.c | 46 + 1 f

[PATCH v3 3/8] staging: fsl-mc: dprc device's sysfs rescan documentation

2015-10-30 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of dprc devices. Signed-off-by: Lijun Pan --- Documentation/ABI/testing/sysfs-devices-dprc | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-dprc diff --git a/Documentation/ABI

[PATCH v2 0/8] Management Complex restool driver

2015-10-30 Thread Lijun Pan
r is small and helps fsl-mc bus move out of staging. Lijun Pan (8): staging: fsl-mc: static inline function to differentiate root dprc staging: fsl-mc: add sysfs rescan attribute in TODO staging: fsl-mc: dprc device's sysfs rescan documentation staging: fsl-mc: root dprc rescan attribute to s

RE: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-30 Thread Lijun Pan
Schmitt Richard-B43082 > > ; dan.carpen...@oracle.com > > Subject: Re: [PATCH 5/5] staging: fsl-mc: Management Complex restool > > driver > > > > On Sun, 2015-10-25 at 17:41 -0500, Lijun Pan wrote: > > > The kernel support for the restool (a user space resource

RE: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-30 Thread Lijun Pan
le...@freescale.com>; ag...@suse.de; Hamciuc Bogdan-BHAMCIU1 > > <bhamc...@freescale.com>; Marginean Alexandru-R89243 > > <r89...@freescale.com>; Sharma Bhupesh-B45370 > > <bhupesh.sha...@freescale.com>; Erez Nir-RM30794 > > <nir.e...@freescale.com>; S

[PATCH v2 0/8] Management Complex restool driver

2015-10-30 Thread Lijun Pan
r is small and helps fsl-mc bus move out of staging. Lijun Pan (8): staging: fsl-mc: static inline function to differentiate root dprc staging: fsl-mc: add sysfs rescan attribute in TODO staging: fsl-mc: dprc device's sysfs rescan documentation staging: fsl-mc: root dprc rescan attribute to s

[PATCH v3 3/8] staging: fsl-mc: dprc device's sysfs rescan documentation

2015-10-30 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of dprc devices. Signed-off-by: Lijun Pan <lijun@freescale.com> --- Documentation/ABI/testing/sysfs-devices-dprc | 13 + 1 file changed, 13 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-devices-dprc

[PATCH v2 7/8] staging: fsl-mc: update TODO and README for restool driver

2015-10-30 Thread Lijun Pan
Add more introduction of restool driver and state why restool driver is needed in helping moving fsl-mc bus out of staging tree. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/README.txt | 11 ++- drivers/staging/fsl-mc/TODO | 18 +++

[PATCH v2 8/8] staging: fsl-mc: Management Complex restool driver

2015-10-30 Thread Lijun Pan
to associate with this root dprc. Signed-off-by: Lijun Pan <lijun@freescale.com> --- v2: remove verbose printk improve error handling synchronize misc_list access reserve ioctl range in Documentation/ioctl/ioctl-number.txt remove ioctl sync command flip if(!...) to mak

[PATCH v2 6/8] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-10-30 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/bus/mc-b

[PATCH v2 1/8] staging: fsl-mc: static inline function to differentiate root dprc

2015-10-30 Thread Lijun Pan
Define a static inline function is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Remove fsl_mc_is_root_dprc() because is_root_dprc() is simpler and easier to understand. Signed-off-by: Lijun Pan <lijun@freescale.com> --- v2: use static inline fu

[PATCH v2 2/8] staging: fsl-mc: add sysfs rescan attribute in TODO

2015-10-30 Thread Lijun Pan
Demonstrate why sysfs rescan attribute is helpful for moving fsl-mc bus out of staging. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/TODO | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/staging/fsl-mc/TODO b/drivers/staging/fsl-mc/TODO

[PATCH v2 5/8] staging: fsl-mc: fsl-mc bus's sysfs rescan documentation

2015-10-30 Thread Lijun Pan
Add the sysfs documentation for the rescan attribute of fsl-mc bus. Signed-off-by: Lijun Pan <lijun@freescale.com> --- Documentation/ABI/testing/sysfs-bus-fsl-mc | 11 +++ 1 file changed, 11 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-bus-fsl-mc diff

[PATCH v2 4/8] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2015-10-30 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/bus/mc-b

RE: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-29 Thread Lijun Pan
omplex restool driver > > On Sun, 2015-10-25 at 17:41 -0500, Lijun Pan wrote: > > The kernel support for the restool (a user space resource management > > tool) is a driver for the /dev/dprc.N device file. > > Its purpose is to provide an ioctl interface, which the restool

RE: [PATCH 4/5] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-10-29 Thread Lijun Pan
ing: fsl-mc: bus rescan attribute to sync kernel > with MC > > On Sun, Oct 25, 2015 at 05:41:22PM -0500, Lijun Pan wrote: > > Introduce the rescan attribute as a bus attribute to synchronize the > > fsl-mc bus objects and the MC firmware. > > > > To rescan the fsl-m

RE: [PATCH 4/5] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-10-29 Thread Lijun Pan
...@freescale.com> > Subject: Re: [PATCH 4/5] staging: fsl-mc: bus rescan attribute to sync kernel > with MC > > On Sun, Oct 25, 2015 at 05:41:22PM -0500, Lijun Pan wrote: > > Introduce the rescan attribute as a bus attribute to synchronize the > > fsl-mc bus objects a

RE: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-29 Thread Lijun Pan
n Alexandru-R89243 > <r89...@freescale.com>; Sharma Bhupesh-B45370 > <bhupesh.sha...@freescale.com>; Erez Nir-RM30794 > <nir.e...@freescale.com>; Schmitt Richard-B43082 > <richard.schm...@freescale.com>; dan.carpen...@oracle.com > Subject: Re: [PATCH 5/5] s

RE: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-26 Thread Lijun Pan
ng: fsl-mc: Management Complex restool driver > > A few style issues and error handling bugs. See below. > > On Sun, Oct 25, 2015 at 05:41:23PM -0500, Lijun Pan wrote: > > +static int fsl_mc_restool_dev_open(struct inode *inode, struct file > > +*filep) { > > +

RE: [PATCH 2/5] staging: fsl-mc: define a macro to differentiate root dprc

2015-10-26 Thread Lijun Pan
fsl-mc: define a macro to differentiate root > dprc > > On Sun, Oct 25, 2015 at 05:41:20PM -0500, Lijun Pan wrote: > > Define is_root_dprc(dev) to tell whether a device is root dprc or not > > via platform_bus_type. > > > > Signed-off-by: Lijun Pan > >

RE: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-26 Thread Lijun Pan
scale.com> > Subject: Re: [PATCH 5/5] staging: fsl-mc: Management Complex restool driver > > A few style issues and error handling bugs. See below. > > On Sun, Oct 25, 2015 at 05:41:23PM -0500, Lijun Pan wrote: > > +static int fsl_mc_restool_dev_open(struct in

RE: [PATCH 2/5] staging: fsl-mc: define a macro to differentiate root dprc

2015-10-26 Thread Lijun Pan
acle.com > Subject: Re: [PATCH 2/5] staging: fsl-mc: define a macro to differentiate root > dprc > > On Sun, Oct 25, 2015 at 05:41:20PM -0500, Lijun Pan wrote: > > Define is_root_dprc(dev) to tell whether a device is root dprc or not > > via platform_bus_type. > > >

[PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-25 Thread Lijun Pan
to associate with this root dprc. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/Kconfig | 7 +- drivers/staging/fsl-mc/bus/Makefile | 3 + drivers/staging/fsl-mc/bus/mc-ioctl.h | 24 ++ drivers/staging/fsl-mc/bus/mc-restool.c | 488 4 files

[PATCH 1/5] staging: fsl-mc: section mismatch bug fix

2015-10-25 Thread Lijun Pan
handling in the init function uses functionality in the exit path. The fix is often to remove the __exit annotation of dprc_driver_exit() so it may be used outside an exit section. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/dprc-driver.c| 2 +- drivers/staging/fsl-mc/include/mc

[PATCH 3/5] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2015-10-25 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/mc-bus.c |

[PATCH 0/5] Management Complex restool driver

2015-10-25 Thread Lijun Pan
move out of staging. Lijun Pan (5): staging: fsl-mc: section mismatch bug fix staging: fsl-mc: define a macro to differentiate root dprc staging: fsl-mc: root dprc rescan attribute to sync kernel with MC staging: fsl-mc: bus rescan attribute to sync kernel with MC staging: fsl-mc

[PATCH 4/5] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-10-25 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/bus/mc-bus.c | 46 + 1 f

[PATCH 2/5] staging: fsl-mc: define a macro to differentiate root dprc

2015-10-25 Thread Lijun Pan
Define is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Signed-off-by: Lijun Pan --- drivers/staging/fsl-mc/include/mc.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/fsl-mc/include/mc.h b/drivers/staging/fsl-mc/include

[PATCH 2/5] staging: fsl-mc: define a macro to differentiate root dprc

2015-10-25 Thread Lijun Pan
Define is_root_dprc(dev) to tell whether a device is root dprc or not via platform_bus_type. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/include/mc.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/fsl-mc/include/mc.h b/d

[PATCH 4/5] staging: fsl-mc: bus rescan attribute to sync kernel with MC

2015-10-25 Thread Lijun Pan
Introduce the rescan attribute as a bus attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the fsl-mc bus, e.g., echo 1 > /sys/bus/fsl-mc/rescan Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/bus/mc-b

[PATCH 1/5] staging: fsl-mc: section mismatch bug fix

2015-10-25 Thread Lijun Pan
handling in the init function uses functionality in the exit path. The fix is often to remove the __exit annotation of dprc_driver_exit() so it may be used outside an exit section. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/bus/dprc-driver.c| 2 +- d

[PATCH 0/5] Management Complex restool driver

2015-10-25 Thread Lijun Pan
move out of staging. Lijun Pan (5): staging: fsl-mc: section mismatch bug fix staging: fsl-mc: define a macro to differentiate root dprc staging: fsl-mc: root dprc rescan attribute to sync kernel with MC staging: fsl-mc: bus rescan attribute to sync kernel with MC staging: fsl-mc

[PATCH 3/5] staging: fsl-mc: root dprc rescan attribute to sync kernel with MC

2015-10-25 Thread Lijun Pan
Introduce the rescan attribute as a device attribute to synchronize the fsl-mc bus objects and the MC firmware. To rescan the root dprc only, e.g. echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/bus/mc-b

[PATCH 5/5] staging: fsl-mc: Management Complex restool driver

2015-10-25 Thread Lijun Pan
to associate with this root dprc. Signed-off-by: Lijun Pan <lijun@freescale.com> --- drivers/staging/fsl-mc/bus/Kconfig | 7 +- drivers/staging/fsl-mc/bus/Makefile | 3 + drivers/staging/fsl-mc/bus/mc-ioctl.h | 24 ++ drivers/staging/fsl-mc/bus/mc-restool.c

Re: [PATCH v3] fsl-ifc: add missing include on ARM64

2015-10-12 Thread Lijun Pan
Dear Arnd, I would like to have your feedback on this patch. If it is good now, can you accept it? Lijun On 10/1/15, 4:14 PM, "Lijun Pan" wrote: >Need to include sched.h to fix the following compilation error >if FSL_IFC is enabled on ARM64 machine. > >In file inclu

Re: [PATCH v3] fsl-ifc: add missing include on ARM64

2015-10-12 Thread Lijun Pan
Dear Arnd, I would like to have your feedback on this patch. If it is good now, can you accept it? Lijun On 10/1/15, 4:14 PM, "Lijun Pan" <lijun@freescale.com> wrote: >Need to include sched.h to fix the following compilation error >if FSL_IFC is enabled on ARM

[PATCH v3] fsl-ifc: add missing include on ARM64

2015-10-01 Thread Lijun Pan
m/stat.h does not include ./arch/arm64/include/asm/compat.h, then it will not include include/linux/sched.h Hence we have to manually add "#include " in drivers/memory/fsl_ifc.c Signed-off-by: Lijun Pan --- v3: change the subject title to better reflect the commit message insert li

[PATCH v3] fsl-ifc: add missing include on ARM64

2015-10-01 Thread Lijun Pan
m/stat.h does not include ./arch/arm64/include/asm/compat.h, then it will not include include/linux/sched.h Hence we have to manually add "#include " in drivers/memory/fsl_ifc.c Signed-off-by: Lijun Pan <lijun@freescale.com> --- v3: change the subject title to better reflect t

[PATCH v2] fsl-ifc: fix compilation error on ARM's 42 bit VA

2015-09-30 Thread Lijun Pan
not include ./arch/arm64/include/asm/compat.h, it will not include include/linux/sched.h Hence we have to manually add "#include " in drivers/memory/fsl_ifc.c Signed-off-by: Lijun Pan --- v2: reordering the include .h files according to Arnd's suggestion detailing why l

[PATCH v2] fsl-ifc: fix compilation error on ARM's 42 bit VA

2015-09-30 Thread Lijun Pan
not include ./arch/arm64/include/asm/compat.h, it will not include include/linux/sched.h Hence we have to manually add "#include " in drivers/memory/fsl_ifc.c Signed-off-by: Lijun Pan <lijun@freescale.com> --- v2: reordering the include .h files according to Arnd's suggestio

[PATCH] fsl-ifc: fix compilation error on 42 bit VA

2015-09-23 Thread Lijun Pan
ULL) ^ drivers/memory/fsl_ifc.c:136:3: note: in expansion of macro ‘wake_up’ wake_up(>nand_wait); ^ make[2]: *** [drivers/memory/fsl_ifc.o] Error 1 make[1]: *** [drivers/memory] Error 2 make[1]: *** Waiting for unfinished jobs Signed-off-by: Lijun Pan --- drivers/memory/fsl_ifc.c | 1 +

[PATCH] fsl-ifc: fix compilation error on 42 bit VA

2015-09-23 Thread Lijun Pan
ULL) ^ drivers/memory/fsl_ifc.c:136:3: note: in expansion of macro ‘wake_up’ wake_up(>nand_wait); ^ make[2]: *** [drivers/memory/fsl_ifc.o] Error 1 make[1]: *** [drivers/memory] Error 2 make[1]: *** Waiting for unfinished jobs Signed-off-by: Lijun Pan <lijun@freescale.com>