Re: [PATCH 2/2] thermal: cpufreq_cooling: Reuse effective_cpu_util()

2020-07-29 Thread Viresh Kumar
On 17-07-20, 11:46, Vincent Guittot wrote: > On Thu, 16 Jul 2020 at 16:24, Lukasz Luba wrote: > > On 7/16/20 12:56 PM, Peter Zijlstra wrote: > > > Currently cpufreq_cooling appears to estimate the CPU energy usage by > > > calculating the percentage of idle time using the per-cpu cpustat stuff, >

Re: add file system helpers that take kernel pointers for the init code v4

2020-07-29 Thread Christoph Hellwig
On Wed, Jul 29, 2020 at 08:51:17PM +0100, Al Viro wrote: > On Tue, Jul 28, 2020 at 06:33:53PM +0200, Christoph Hellwig wrote: > > Hi Al and Linus, > > > > currently a lot of the file system calls in the early in code (and the > > devtmpfs kthread) rely on the implicit set_fs(KERNEL_DS) during boot

Re: [PATCH 1/2] reset-controller: ti: adjust the reset assert and deassert interface

2020-07-29 Thread Crystal Guo
On Wed, 2020-07-29 at 16:02 +0800, Philipp Zabel wrote: > Hi Crystal, Matthias, > > On Wed, 2020-07-29 at 09:48 +0200, Matthias Brugger wrote: > > > > On 29/07/2020 09:39, Crystal Guo wrote: > > > Add ti_syscon_reset() to integrate assert and deassert together, > > > and change return value of th

Re: [PATCH] Input: elan_i2c - Add ic type 0x15.

2020-07-29 Thread Dmitry Torokhov
On Thu, Jul 30, 2020 at 02:05:26AM -0400, Jingle Wu wrote: > The update firmware flow of ic type 0x15 is same with ic type 0x14. > > Signed-off-by: Jingle Wu Applied, thank you. -- Dmitry

Re: [PATCH] cpufreq: cached_resolved_idx can not be negative

2020-07-29 Thread Amit Kucheria
On Thu, Jul 30, 2020 at 11:40 AM Viresh Kumar wrote: > > On 30-07-20, 11:29, Amit Kucheria wrote: > > On Thu, Jul 30, 2020 at 9:38 AM Viresh Kumar > > wrote: > > > > > > It is not possible for cached_resolved_idx to be invalid here as the > > > cpufreq core always sets index to a positive value.

Re: [PATCH v18 3/3] Input: new da7280 haptic driver

2020-07-29 Thread Dmitry Torokhov
On Thu, Jul 30, 2020 at 08:16:31AM +0200, Uwe Kleine-König wrote: > [Adding vsprintf maintainers to Cc:] > > Hello, > > On Wed, Jul 29, 2020 at 10:06:53PM -0700, Dmitry Torokhov wrote: > > On Wed, Jul 29, 2020 at 09:21:45AM +0200, Uwe Kleine-König wrote: > > > Hello, > > > > > > On Tue, Jul 28,

[PATCH] s390/test_unwind: fix possible memleak in test_unwind()

2020-07-29 Thread Wang Hai
test_unwind() misses to call kfree(bt) in an error path. Add the missed function call to fix it. Fixes: 0610154650f1 ("s390/test_unwind: print verbose unwinding results") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- arch/s390/lib/test_unwind.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH] cpufreq: cached_resolved_idx can not be negative

2020-07-29 Thread Viresh Kumar
On 30-07-20, 12:02, Amit Kucheria wrote: > Looking at this more closely, I found another call site for > cpufreq_frequency_table_target() in cpufreq.c that needs the index to > be unsigned int. > > But then cpufreq_frequency_table_target() returns -EINVAL, so we It returns -EINVAL only in the cas

[PATCH -next] bnxt_en: Remove superfluous memset()

2020-07-29 Thread Li Heng
Fixes coccicheck warning: ./drivers/net/ethernet/broadcom/bnxt/bnxt.c:3730:19-37: WARNING: dma_alloc_coherent use in stats -> hw_stats already zeroes out memory, so memset is not needed dma_alloc_coherent use in status already zeroes out memory, so memset is not needed Reported-by: Hulk Robot

{standard input}:20594: Error: found '(', expected: ')'

2020-07-29 Thread kernel test robot
nths ago config: mips-randconfig-r021-20200729 (attached as .config) compiler: mips-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git chec

Re: [PATCH v3] usb: typec: tcpm: Migrate workqueue to RT priority for processing events

2020-07-29 Thread Greg Kroah-Hartman
On Wed, Jul 29, 2020 at 07:24:57PM -0700, Badhri Jagan Sridharan wrote: > "tReceiverResponse 15 ms Section 6.6.2 > The receiver of a Message requiring a response Shall respond > within tReceiverResponse in order to ensure that the > sender’s SenderResponseTimer does not expire." > > When the cpu c

[PATCH v1 0/3] net: ethernet: use generic power management

2020-07-29 Thread Vaibhav Gupta
Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to upgrade power management in net ethernet drivers. This has been done by upgrading .suspend() and .resume() callbacks. The upgrade makes sure that the involvement of PCI Core does not change the order of op

[PATCH v1 1/3] sc92031: use generic power management

2020-07-29 Thread Vaibhav Gupta
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unn

[PATCH v1 3/3] tlan: use generic power management

2020-07-29 Thread Vaibhav Gupta
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unn

[PATCH v1 2/3] sis900: use generic power management

2020-07-29 Thread Vaibhav Gupta
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unn

Re: [PATCH] vgacon: fix out of bounds write to the scrollback buffer

2020-07-29 Thread Jiri Slaby
Hi, OTOH, you should have CCed all the (public) lists. On 30. 07. 20, 4:50, 张云海 wrote: > Zhang Xiao points out that the check should use > instead of >=, > otherwise the last line will be skip. > I agree with that, so I modify the patch. > Could you please verify that it is still correct and suffi

[PATCH net] qtnfmac: Missing platform_device_unregister() on error in qtnf_core_mac_alloc()

2020-07-29 Thread Wang Hai
Add the missing platform_device_unregister() before return from qtnf_core_mac_alloc() in the error handling case. Fixes: 616f5701f4ab ("qtnfmac: assign each wiphy to its own virtual platform device") Reported-by: Hulk Robot Signed-off-by: Wang Hai --- drivers/net/wireless/quantenna/qtnfmac/cor

[PATCH 2/2] reset: imx7: add the cm4 reset for i.MX8MQ

2020-07-29 Thread peng . fan
From: Peng Fan Add the cm4 reset used by the remoteproc driver Signed-off-by: Peng Fan --- drivers/reset/reset-imx7.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c index d170fe663210..87b6e2d46fb6 100644 --- a/drivers/reset/rese

[PATCH 1/2] dt-bindings: reset: imx8mq: add m4 reset

2020-07-29 Thread peng . fan
From: Peng Fan Add the m4 reset used by the remoteproc driver Signed-off-by: Peng Fan --- include/dt-bindings/reset/imx8mq-reset.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/dt-bindings/reset/imx8mq-reset.h b/include/dt-bindings/reset/imx8mq-reset.h index

Re: [PATCH 2/3] driver core: Use rwsem for kill_device() serialization

2020-07-29 Thread Greg Kroah-Hartman
On Wed, Jul 08, 2020 at 03:27:02PM +0200, Lukas Wunner wrote: > kill_device() is currently serialized with driver probing by way of the > device_lock(). We're about to serialize it with device_add() as well > to prevent addition of children below a device which is going away. Why? Who does this?

RE: [PATCH v2] exfat: integrates dir-entry getting and validation

2020-07-29 Thread Namjae Jeon
> Add validation for num, bh and type on getting dir-entry. > ('file' and 'stream-ext' dir-entries are pre-validated to ensure success) > Renamed > exfat_get_dentry_cached() to exfat_get_validated_dentry() due to a change in > functionality. > > Integrate type-validation with simplified. > This

Re: [PATCH 0/3] Fix races on device removal

2020-07-29 Thread Greg Kroah-Hartman
On Wed, Jul 08, 2020 at 03:27:00PM +0200, Lukas Wunner wrote: > Prevent dynamic SPI device addition below a controller which is > being removed. To do so, set the controller's "dead" flag using > kill_device() (patch [3/3]). Why is the SPI bus allowing this to happen? Don't you have a per-bus lo

[PATCH v1 3/3] tlan: use generic power management

2020-07-29 Thread Vaibhav Gupta
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unn

[PATCH v1 2/3] sis900: use generic power management

2020-07-29 Thread Vaibhav Gupta
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unn

[PATCH v1 0/3] net: ethernet: use generic power management

2020-07-29 Thread Vaibhav Gupta
Linux Kernel Mentee: Remove Legacy Power Management. The purpose of this patch series is to upgrade power management in net ethernet drivers. This has been done by upgrading .suspend() and .resume() callbacks. The upgrade makes sure that the involvement of PCI Core does not change the order of op

[PATCH v1 1/3] sc92031: use generic power management

2020-07-29 Thread Vaibhav Gupta
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unn

RE: [PATCH] exfat: retain 'VolumeFlags' properly

2020-07-29 Thread Namjae Jeon
> Ping.. Hi Tetsuhiro, > > On 2020/07/15 19:06, Tetsuhiro Kohada wrote: > >> It looks complicated. It would be better to simply set/clear VOLUME DIRTY > >> bit. > > > > I think exfat_set_vol_flags() gets a little complicated, because it > > needs the followings (with bit operation) > > a) Set/

Re: [PATCH 2/6] arch: x86: Wrap TIF_IA32 checks

2020-07-29 Thread Christoph Hellwig
On Tue, Jul 28, 2020 at 08:43:27PM -0700, Andy Lutomirski wrote: > > index d4edf281fff4..d39f9b3ae683 100644 > > --- a/arch/x86/include/asm/compat.h > > +++ b/arch/x86/include/asm/compat.h > > @@ -181,7 +181,7 @@ static inline void __user > > *arch_compat_alloc_user_space(long len) > > { > >

Re: [PATCH v2 07/14] iio: sx9310: Use long instead of int for channel bitmaps

2020-07-29 Thread Andy Shevchenko
On Wed, Jul 29, 2020 at 4:03 AM Stephen Boyd wrote: > Quoting Daniel Campello (2020-07-28 16:05:13) > > Uses for_each_set_bit() macro to loop over channel bitmaps. ... > > + unsigned long chan_prox_stat; > > This can be DECLARE_BITMAP(chan_prox_stat, SX9310_NUM_CHANNELS) > > + unsig

Re: [PATCH v7 4/8] scsi: ufs: Add some debug infos to ufshcd_print_host_state

2020-07-29 Thread Stanley Chu
On Tue, 2020-07-28 at 13:00 +0800, Can Guo wrote: > The infos of the last interrupt status and its timestamp are very helpful > when debug system stability issues, e.g. IRQ starvation, so add them to > ufshcd_print_host_state. Meanwhile, UFS device infos like model name and > its FW version also co

[PATCH] f2fs: fix deadlock between quota writes and checkpoint

2020-07-29 Thread Jaegeuk Kim
f2fs_write_data_pages(quota_mapping) __f2fs_write_data_pages f2fs_write_checkpoint * blk_start_plug(&plug); * add bio in write_io[DATA] - block_operations - skip syncing quota by

[PATCH] vgacon: fix out of bounds write to the scrollback buffer

2020-07-29 Thread Jiri Slaby
The current vgacon's scroll up implementation uses a circural buffer in vgacon_scrollback_cur. It always advances tail to prepare it for the next write and caps it to zero if the next ->vc_size_row bytes won't fit. But when we change the VT size (e.g. by VT_RESIZE) in the meantime, the new line mi

Re: [PATCH] Staging : iio : Fixed a punctuation and a spelling mistake.

2020-07-29 Thread Andy Shevchenko
On Wed, Jul 29, 2020 at 3:34 AM Ankit Baluni wrote: > > Added a missing comma and changed 'it it useful' to 'it is useful'. Please, drop spaces before : in the subject line. In all patches you submitted there is such an issue. -- With Best Regards, Andy Shevchenko

Re: linux-next: build failure after merge of the kvm tree

2020-07-29 Thread Stephen Rothwell
Hi all, On Fri, 17 Jul 2020 15:57:01 +1000 Stephen Rothwell wrote: > > After merging the kvm tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > arch/x86/kernel/kvm.c: In function '__sysvec_kvm_asyncpf_interrupt': > arch/x86/kernel/kvm.c:275:13: error: implicit declarat

Re: [PATCH 1/4] drivers/perf: Add support for ARMv8.3-SPE

2020-07-29 Thread Leo Yan
On Tue, Jul 28, 2020 at 09:24:42PM +0800, liwei (GF) wrote: [...] > >> diff --git a/drivers/perf/arm_spe_pmu.c b/drivers/perf/arm_spe_pmu.c > >> index e51ddb6d63ed..5ec7ee0c8fa1 100644 > >> --- a/drivers/perf/arm_spe_pmu.c > >> +++ b/drivers/perf/arm_spe_pmu.c > >> @@ -54,7 +54,7 @@ struct arm_sp

Re: BTF_KIND_FWD enums

2020-07-29 Thread Yonghong Song
On 7/28/20 1:56 PM, Giuliano Procida wrote: Hi. Re: https://github.com/torvalds/linux/commit/9d5f9f701b1891466fb3dbb1806ad97716f95cc3 Both GCC and LLVM support forward-declared (a.k.a. incomplete) enums as a language extension - https://gcc.gnu.org/onlinedocs/gcc/Incomplete-Enums.html. (C+

[PATCH v2] arm: dts: imx7: add QSPI

2020-07-29 Thread Matthias Schiffer
In preparation for an update of the TQ-Systems TQMa7x/MBa7x DTS, add the QSPI controller to imx7s.dtsi. Based-on-patch-by: Han Xu Signed-off-by: Matthias Schiffer --- v2: - renamed node and label - reordered properties (as suggested by Marco Felsch) arch/arm/boot/dts/imx7s.dtsi | 13

[PATCH v6 4/4] arm64: boot: dts: qcom: pm8150b: Add DTS node for PMIC VBUS booster

2020-07-29 Thread Wesley Cheng
Add the required DTS node for the USB VBUS output regulator, which is available on PM8150B. This will provide the VBUS source to connected peripherals. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 6 ++ arch/arm64/boot/dts/qcom/sm8150-mtp.dts | 4 2 files c

[PATCH v6 3/4] arm64: boot: dts: qcom: pm8150b: Add node for USB type C block

2020-07-29 Thread Wesley Cheng
The PM8150B has a dedicated USB type C block, which can be used for type C orientation and role detection. Create the reference node to this type C block for further use. Signed-off-by: Wesley Cheng --- arch/arm64/boot/dts/qcom/pm8150b.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --g

[PATCH v6 1/4] usb: typec: Add QCOM PMIC typec detection driver

2020-07-29 Thread Wesley Cheng
The QCOM SPMI typec driver handles the role and orientation detection, and notifies client drivers using the USB role switch framework. It registers as a typec port, so orientation can be communicated using the typec switch APIs. The driver also attains a handle to the VBUS output regulator, so

Re: [PATCH v2] arm: dts: imx7: add QSPI

2020-07-29 Thread Matthias Schiffer
On Wed, 2020-07-29 at 09:11 +0200, Matthias Schiffer wrote: > In preparation for an update of the TQ-Systems TQMa7x/MBa7x DTS, add > the > QSPI controller to imx7s.dtsi. > > Based-on-patch-by: Han Xu > Signed-off-by: Matthias Schiffer > --- > > v2: > - renamed node and label > - reordered prope

[PATCH v6 2/4] dt-bindings: usb: Add Qualcomm PMIC type C controller dt-binding

2020-07-29 Thread Wesley Cheng
Introduce the dt-binding for enabling USB type C orientation and role detection using the PM8150B. The driver will be responsible for receiving the interrupt at a state change on the CC lines, reading the orientation/role, and communicating this information to the remote clients, which can include

[PATCH v6 0/4] Introduce PMIC based USB type C detection

2020-07-29 Thread Wesley Cheng
Changes in v6: - Removed qcom_usb_vbus-regulator.c and qcom,usb-vbus-regulator.yaml from the series as they have been merged on regulator.git - Added seperate references to the usb-connector.yaml in qcom,pmic-typec.yaml instead of referencing the entire schema. Changes in v5: - Fix dt_bin

[PATCH v5 1/5] dt-bindings: media: venus: Add an optional power domain for perf voting

2020-07-29 Thread Rajendra Nayak
Venus needs to vote for the performance state of a power domain (cx) to be able to support DVFS. This 'cx' power domain is controlled by rpmh and is a common power domain (scalable) not specific to venus alone. This is optional in the sense that, leaving this power domain out does not really impact

[PATCH v5 0/5] DVFS support for Venus

2020-07-29 Thread Rajendra Nayak
v5: Fixed the opp-tables (patch 4/5) to avoid -ERANGE from dev_pm_opp_set_rate v4: Moved code from probe/remove/runtime_suspend into different pm_ops callbacks v3: Renamed the optional power domain as cx v2: Fixed up the labels of OPP nodes in patch 4 Included the bindings update patch as pa

[PATCH v5 2/5] media: venus: core: Fix error handling in probe

2020-07-29 Thread Rajendra Nayak
Post a successful pm_ops->core_get, an error in probe should exit by doing a pm_ops->core_put which seems to be missing. So fix it. Signed-off-by: Rajendra Nayak Acked-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/core.c | 15 ++- 1 file changed, 10 insertions(+), 5 de

[PATCH v5 4/5] arm64: dts: sdm845: Add OPP tables and power-domains for venus

2020-07-29 Thread Rajendra Nayak
Add the OPP tables in order to be able to vote on the performance state of a power-domain. Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 40 ++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sdm

Re: [PATCH v31 00/12] /dev/random - a new approach with full SP800-90B

2020-07-29 Thread Stephan Mueller
Am Dienstag, 28. Juli 2020, 22:40:44 CEST schrieb Pavel Machek: Hi Pavel, > Hi! > > > The following patch set provides a different approach to /dev/random which > > is called Linux Random Number Generator (LRNG) to collect entropy within > > the Linux kernel. The main improvements compared to th

[PATCH v5 5/5] arm64: dts: sc7180: Add OPP tables and power-domains for venus

2020-07-29 Thread Rajendra Nayak
Add the OPP tables in order to be able to vote on the performance state of a power-domain Signed-off-by: Rajendra Nayak --- arch/arm64/boot/dts/qcom/sc7180.dtsi | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc718

[PATCH v5 3/5] media: venus: core: Add support for opp tables/perf voting

2020-07-29 Thread Rajendra Nayak
Add support to add OPP tables and perf voting on the OPP powerdomain. This is needed so venus votes on the corresponding performance state for the OPP powerdomain along with setting the core clock rate. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke Acked-by: Stanimir Varbanov ---

Re: [PATCH v18 3/3] Input: new da7280 haptic driver

2020-07-29 Thread Uwe Kleine-König
Hello, On Tue, Jul 28, 2020 at 11:36:38PM -0700, Dmitry Torokhov wrote: > > v9: > > - Removed the header file and put the definitions into the c file. > > - Updated the pwm code and error logs with %pE > > I believe the %pE is to format an escaped buffer, you probably want to > %pe (lowe

Re: [PATCH 2/4] perf: arm-spe: Add support for ARMv8.3-SPE

2020-07-29 Thread liwei (GF)
Hi Leo, On 2020/7/29 14:29, Leo Yan wrote: > On Fri, Jul 24, 2020 at 05:16:05PM +0800, Wei Li wrote: >> Armv8.3 extends the SPE by adding: >> - Alignment field in the Events packet, and filtering on this event >> using PMSEVFR_EL1. >> - Support for the Scalable Vector Extension (SVE). >> >> The

Re: [PATCH v2] perf evsel: Don't set sample_regs_intr/sample_regs_user for dummy event

2020-07-29 Thread Jin, Yao
Hi Adrian, Could you help to check if following condition will break PT? "(opts->sample_intr_regs && !evsel->no_aux_samples && !evsel__is_dummy_event(evsel))" Thanks Jin Yao On 7/23/2020 9:01 AM, Jin, Yao wrote: Hi Jiri, Adrian, On 7/22/2020 7:08 PM, Jiri Olsa wrote: On Wed, Jul 22, 2020 a

Re: [PATCH -next] drm: xlnx: Fix typo in parameter description

2020-07-29 Thread Daniel Vetter
On Wed, Jul 29, 2020 at 2:33 AM Hyun Kwon wrote: > > Hello, > > On Tue, Jul 28, 2020 at 03:35:43PM -0700, Laurent Pinchart wrote: > > On Wed, Jul 29, 2020 at 12:02:05AM +0200, dan...@ffwll.ch wrote: > > > Hi Hyun Kwon, > > > > > > Are you all sorted with drm-misc commit rights so you can push the

回复: INFO: rcu detected stall in tc_modify_qdisc

2020-07-29 Thread Zhang, Qiang
发件人: linux-kernel-ow...@vger.kernel.org 代表 syzbot 发送时间: 2020年7月29日 13:53 收件人: da...@davemloft.net; fweis...@gmail.com; j...@mojatatu.com; j...@resnulli.us; linux-kernel@vger.kernel.org; mi...@kernel.org; net...@vger.kernel.org; syzkaller-b...@googlegr

Re: [PATCH 2/4] perf: arm-spe: Add support for ARMv8.3-SPE

2020-07-29 Thread Leo Yan
On Wed, Jul 29, 2020 at 03:21:20PM +0800, liwei (GF) wrote: [...] > >> @@ -354,8 +372,38 @@ int arm_spe_pkt_desc(const struct arm_spe_pkt > >> *packet, char *buf, > >>} > >>case ARM_SPE_OP_TYPE: > >>switch (idx) { > >> - case 0: return snprintf(buf, buf_len, "%s", pa

Aw: Re: [PATCH] net: ethernet: mtk_eth_soc: Always call mtk_gmac0_rgmii_adjust() for mt7623

2020-07-29 Thread Frank Wunderlich
Hi, Thank you David's to get this finally applied. Add recipient for stable tree as TRGMII on 5.4+ is also broken without this Patch. regards Frank > Gesendet: Mittwoch, 29. Juli 2020 um 02:05 Uhr > Von: "David Miller" Applied.

RE: [PATCH v1 0/2] scsi: ufs: Introduce and apply DELAY_AFTER_LPM device quirk

2020-07-29 Thread Avri Altman
Looks fine. Thanks, Avri > > Hi, > This patchset introduces and applies DELAY_AFTER_LPM device quirk in > MediaTek platforms. > > Stanley Chu (2): > scsi: ufs: Introduce device quirk "DELAY_AFTER_LPM" > scsi: ufs-mediatek: Apply DELAY_AFTER_LPM quirk to Micron devices > > drivers/scsi/uf

Re: [PATCH] platform/x86:dell-laptop:Add battery charging thresholds and charging mode switch.

2020-07-29 Thread Andy Shevchenko
On Wed, Jul 29, 2020 at 9:54 AM Perry Yuan wrote: > > From: perry_yuan Fix your name, please. Or do you have it spelled in the official documents like above? > The patch control battery charging thresholds when system is under custom > charging mode through smbios API and driver`s sys attribute

Re: [PATCH v3 2/3] Input: snvs_pwrkey - enable snvs clock as needed

2020-07-29 Thread Marco Felsch
Hi, On 20-07-23 10:43, Horia Geantă wrote: > From: André Draszik > > At the moment, enabling this driver without the SNVS RTC driver > being active will hang the kernel as soon as the power button > is pressed. > > The reason is that in that case the SNVS isn't enabled, and > any attempt to rea

[PATCH] Staging: iio: Fixed a punctuation and a spelling mistake.

2020-07-29 Thread Ankit Baluni
Added a missing comma and changed 'it it useful' to 'it is useful'. Signed-off-by: Ankit Baluni --- Changes in -v2: -Remove space before ':' in subject line. drivers/staging/iio/Documentation/overview.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/st

Re: [PATCH v3] drm/virtio: fix missing dma_fence_put() in virtio_gpu_execbuffer_ioctl()

2020-07-29 Thread Muchun Song
On Tue, Jul 21, 2020 at 6:17 PM Xin He wrote: > > From: Qi Liu > > We should put the reference count of the fence after calling > virtio_gpu_cmd_submit(). So add the missing dma_fence_put(). > > Fixes: 2cd7b6f08bc4 ("drm/virtio: add in/out fence support for explicit > synchronization") > Co-deve

[PATCH v3] Staging : media : atomisp : fixed a brace coding sytle issue

2020-07-29 Thread Ankit Baluni
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules. Signed-off-by: Ankit Baluni --- Changes in v2: -Added more description about the patch. -Added space before the symobol '<' in 'From'

[PATCH 1/2] reset-controller: ti: adjust the reset assert and deassert interface

2020-07-29 Thread Crystal Guo
Add ti_syscon_reset() to integrate assert and deassert together, and change return value of the reset assert and deassert interface from regmap_update_bits to regmap_write_bits. when clear bit is already 1, regmap_update_bits can not write 1 to it again. Some IC has the feature that, when set bit

[PATCH 0/2] adjust the reset assert and deassert interface

2020-07-29 Thread Crystal Guo
1. adjust the reset assert and deassert interface to make it more compatible. 2. add infracfg_rst device node. Crystal Guo (2): reset-controller: ti: adjust the reset assert and deassert interface arm64: dts: mt8192: add infracfg_rst node arch/arm64/boot/dts/mediatek/mt8192.dtsi | 10 +++

[PATCH 2/2] arm64: dts: mt8192: add infracfg_rst node

2020-07-29 Thread Crystal Guo
add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi index b16d

Re: [PATCH 2/4] perf: arm-spe: Add support for ARMv8.3-SPE

2020-07-29 Thread liwei (GF)
Hi Leo, On 2020/7/29 15:28, Leo Yan wrote: > On Wed, Jul 29, 2020 at 03:21:20PM +0800, liwei (GF) wrote: > > [...] > @@ -354,8 +372,38 @@ int arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf, } case ARM_SPE_OP_TYPE: switch (idx) { -

Re: [v2,2/3] dt-bindings: watchdog: add a new head file for toprgu reset-controllers

2020-07-29 Thread Matthias Brugger
Hi Crystal, On 29/07/2020 08:30, Crystal Guo wrote: merge all the reset numbers in one head file. Signed-off-by: Crystal Guo --- include/dt-bindings/reset-controller/mtk-resets.h | 13 + 1 file changed, 13 insertions(+) create mode 100644 include/dt-bindings/reset-controller/m

[PATCH 2/2] power: supply: Fix kerneldoc of power_supply_temp2resist_simple()

2020-07-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): drivers/power/supply/power_supply_core.c:747: warning: Function parameter or member 'temp' not described in 'power_supply_temp2resist_simple' drivers/power/supply/power_supply_core.c:747: warning: Excess function parameter 'ocv' description i

[PATCH] ARM: samsung: Fix kerneldoc of s3c_pm_do_restore_core()

2020-07-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): arch/arm/plat-samsung/pm-common.c:68: warning: Function parameter or member 'ptr' not described in 's3c_pm_do_restore_core' arch/arm/plat-samsung/pm-common.c:68: warning: Function parameter or member 'count' not described in 's3c_pm_do_restor

[PATCH 1/2] power: supply: cpcap-battery: Fix kerneldoc of cpcap_battery_read_accumulated()

2020-07-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): drivers/power/supply/cpcap-battery.c:292: warning: Function parameter or member 'ccd' not described in 'cpcap_battery_read_accumulated' drivers/power/supply/cpcap-battery.c:292: warning: Excess function parameter 'regs' description in 'cpcap_

[PATCH 1/2] soc: mediatek: mtk-infracfg: Fix kerneldoc

2020-07-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): drivers/soc/mediatek/mtk-infracfg.c:34: warning: Function parameter or member 'infracfg' not described in 'mtk_infracfg_set_bus_protection' drivers/soc/mediatek/mtk-infracfg.c:34: warning: Excess function parameter 'regmap' description in 'mt

[PATCH 2/2] soc: qcom: smd-rpm: Fix kerneldoc

2020-07-29 Thread Krzysztof Kozlowski
Fix W=1 compile warnings (invalid kerneldoc): drivers/soc/qcom/smd-rpm.c:35: warning: Function parameter or member 'dev' not described in 'qcom_smd_rpm' drivers/soc/qcom/smd-rpm.c:99: warning: Function parameter or member 'state' not described in 'qcom_rpm_smd_write' Signed-off-by: Krzy

Re: [PATCH 2/2] arm64: dts: mt8192: add infracfg_rst node

2020-07-29 Thread Matthias Brugger
On 29/07/2020 09:39, Crystal Guo wrote: add infracfg_rst node which is for MT8192 platform Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8192.dtsi | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch

[PATCH v2] Staging: rtl8712: Fixed a coding sytle issue

2020-07-29 Thread Ankit Baluni
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules. Signed-off-by: Ankit Baluni --- Change in -v2: -Remove space before ':' in subject . drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 3 +-- 1 f

Re: [PATCH v3] Staging : media : atomisp : fixed a brace coding sytle issue

2020-07-29 Thread Greg KH
On Wed, Jul 29, 2020 at 01:09:02PM +0530, Ankit Baluni wrote: > Removed braces for a 'if' condition as it contain only single line & > there is no need for braces for such case according to coding style > rules. > > Signed-off-by: Ankit Baluni > > --- > Changes in v2: > -Added more descri

Re: [PATCH 6/9] phy: qcom-qmp: Add compatible for ipq8074 pcie gen3 qmp phy

2020-07-29 Thread Sivaprakash Murugesan
Hi Vinod, On 7/13/2020 11:34 AM, Vinod Koul wrote: On 05-07-20, 14:47, Sivaprakash Murugesan wrote: ipq8074 has two pcie ports, one gen2 and one gen3 ports. with phy support already available for gen2 pcie ports add support for pcie gen3 port phy. Co-developed-by: Selvam Sathappan Periakaruppa

Re: [PATCH 1/2] reset-controller: ti: adjust the reset assert and deassert interface

2020-07-29 Thread Matthias Brugger
On 29/07/2020 09:39, Crystal Guo wrote: Add ti_syscon_reset() to integrate assert and deassert together, and change return value of the reset assert and deassert interface from regmap_update_bits to regmap_write_bits. when clear bit is already 1, regmap_update_bits can not write 1 to it again

Re: [PATCH v3] net: ethernet: mtk_eth_soc: fix mtu warning

2020-07-29 Thread Landen Chao
Hi Frank, If you send next version of patch, you can help to add the Signed-off line. Thanks. Signed-off-by: Landen Chao On Tue, 2020-07-28 at 23:53 +0800, Jakub Kicinski wrote: > On Tue, 28 Jul 2020 14:27:43 +0200 Frank Wunderlich wrote: > > From: Landen Chao > > Hi gents, > > if the patch i

[PATCH v3] Staging: media: atomisp: fixed a brace coding sytle issue

2020-07-29 Thread Ankit Baluni
Removed braces for a 'if' condition as it contain only single line & there is no need for braces for such case according to coding style rules. Signed-off-by: Ankit Baluni --- Changes in v2: -Added more description about the patch. -Added space before the symobol '<' in 'From'

Re: [PATCH] net: nixge: fix potential memory leak in nixge_probe()

2020-07-29 Thread Markus Elfring
> If some processes in nixge_probe() fail, free_netdev(dev) > needs to be called to aviod a memory leak. * Would you like to avoid a typo in this change description? * An imperative wording can be preferred here, can't it? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree

Re: [PATCH 1/2] soc: mediatek: mtk-infracfg: Fix kerneldoc

2020-07-29 Thread Matthias Brugger
On 29/07/2020 09:44, Krzysztof Kozlowski wrote: Fix W=1 compile warnings (invalid kerneldoc): drivers/soc/mediatek/mtk-infracfg.c:34: warning: Function parameter or member 'infracfg' not described in 'mtk_infracfg_set_bus_protection' drivers/soc/mediatek/mtk-infracfg.c:34: warning:

Re: [PATCH 3/3] tty: Use the preferred form for passing the size of a structure type

2020-07-29 Thread Jiri Slaby
On 24. 07. 20, 0:34, Gustavo A. R. Silva wrote: > Use the preferred form for passing the size of a structure type. The > alternative form where the structure type is spelled out hurts > readability and introduces an opportunity for a bug when the object > type is changed but the corresponding objec

Re: [PATCH v3 3/3] Input: snvs_pwrkey - only IRQ_HANDLED for our own events

2020-07-29 Thread Marco Felsch
Hi, On 20-07-23 10:43, Horia Geantă wrote: > From: André Draszik > > The snvs_pwrkey shares the SNVS LPSR status register with the snvs_rtc. > > This driver here should only return IRQ_HANDLED if the status register > indicates that the event we're handling in the irq handler was genuinely > in

Re: [PATCH v2] arm: dts: imx7: add QSPI

2020-07-29 Thread Marco Felsch
Hi Matthias, On 20-07-29 09:14, Matthias Schiffer wrote: > On Wed, 2020-07-29 at 09:11 +0200, Matthias Schiffer wrote: > > In preparation for an update of the TQ-Systems TQMa7x/MBa7x DTS, add > > the > > QSPI controller to imx7s.dtsi. > > > > Based-on-patch-by: Han Xu > > Signed-off-by: Matthias

Re: [PATCH v2 2/4] i2c: mediatek: Add access to more than 8GB dram in i2c driver

2020-07-29 Thread Matthias Brugger
On 28/07/2020 14:30, Qii Wang wrote: Newer MTK chip support more than 8GB of dram. Replace support_33bits with more general dma_max_support and remove mtk_i2c_set_4g_mode. Signed-off-by: Qii Wang --- drivers/i2c/busses/i2c-mt65xx.c | 38 +- 1 file chang

Re: [PATCH] vgacon: fix out of bounds write to the scrollback buffer

2020-07-29 Thread 张云海
Hi All, This patch dosen't fix the issue, the check should be in the loop. The change of the VT sze is before vgacon_scrollback_update, not in the meantime. Let's consider the following situation: suppose: vgacon_scrollback_cur->size is 65440 vgacon_scroll

[PATCH] iio: adc: ti-ads1015: fix conversion when CONFIG_PM is not set

2020-07-29 Thread Maxim Kochetkov
To stop conversion ads1015_set_power_state function use unimplemented function pm_runtime_put_autosuspend if CONFIG_PM is not set. If CONFIG_PM is disabled, there is no need to start/stop conversion. Fix it by adding return 0 function variant if CONFIG_PM is not set. Signed-off-by: Maxim Kochetkov

Re: [PATCH 1/2] reset-controller: ti: adjust the reset assert and deassert interface

2020-07-29 Thread Philipp Zabel
Hi Crystal, Matthias, On Wed, 2020-07-29 at 09:48 +0200, Matthias Brugger wrote: > > On 29/07/2020 09:39, Crystal Guo wrote: > > Add ti_syscon_reset() to integrate assert and deassert together, > > and change return value of the reset assert and deassert interface > > from regmap_update_bits to r

Re: [PATCH v3 1/3] arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile

2020-07-29 Thread CK Hu
Hi, Seiya: On Wed, 2020-07-29 at 09:30 +0800, Seiya Wang wrote: > Add basic chip support for Mediatek MT8192 > > Signed-off-by: Seiya Wang > --- > arch/arm64/boot/dts/mediatek/Makefile | 1 + > arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 29 ++ > arch/arm64/boot/dts/mediatek/mt8192.d

[PATCH v2] Staging: media: atomisp: Fixed a brace coding sytle issue

2020-07-29 Thread Ankit Baluni
Removed braces in 'if else' condition as it only consists of one line each and according to coding style rules , in this case the braces are not required. Signed-off-by: Ankit Baluni --- Change in -v2: -Removed space before ':' in subject line. -Added space before '<' in 'From'

Re: [PATCH v2 05/18] gpiolib: cdev: support GPIO_GET_LINE_IOCTL and GPIOLINE_GET_VALUES_IOCTL

2020-07-29 Thread Andy Shevchenko
On Wed, Jul 29, 2020 at 5:28 AM Kent Gibson wrote: > On Sun, Jul 26, 2020 at 09:12:44AM +0800, Kent Gibson wrote: ... > I'll rework that for v3. Please give some more time to review v2. Especially the v2 API approach. -- With Best Regards, Andy Shevchenko

Re: [PATCH v5 3/3] ARM: dts: stm32: add initial support for stm32mp157-odyssey board

2020-07-29 Thread Ahmad Fatoum
Hello Marcin, On 7/24/20 4:51 PM, Marcin Sloniewski wrote: > Add support for Seeed Studio's stm32mp157c odyssey board. > Board consists of SoM with stm32mp157c with 4GB eMMC and 512 MB DDR3 RAM > and carrier board with USB and ETH interfaces, SD card connector, > wifi and BT chip AP6236. > > In t

Re: [PATCH] platform/x86:dell-laptop:Add battery charging thresholds and charging mode switch.

2020-07-29 Thread Matthew Garrett
On Tue, Jul 28, 2020 at 11:54:24PM -0700, Perry Yuan wrote: This seems extremely useful, but: > diff --git a/Documentation/ABI/testing/sysfs-class-power > b/Documentation/ABI/testing/sysfs-class-power > index bf3b48f022dc..a8adc3b0ca4b 100644 > --- a/Documentation/ABI/testing/sysfs-class-power >

Re: [PATCH v2 2/3] sched: Cleanup SCHED_THERMAL_PRESSURE kconfig entry

2020-07-29 Thread Dietmar Eggemann
On 28/07/2020 18:16, Valentin Schneider wrote: > > Hi, > > On 27/07/20 18:45, Dietmar Eggemann wrote: >> On 27/07/2020 16:18, Qian Cai wrote: >>> On Sun, Jul 12, 2020 at 05:59:16PM +0100, Valentin Schneider wrote: [...] > I went for having SCHED_THERMAL_PRESSURE in arm64/Kconfig because of wher

Re: [PATCH v3 1/3] arm64: dts: Add Mediatek SoC MT8192 and evaluation board dts and Makefile

2020-07-29 Thread CK Hu
Hi, Seiya: On Wed, 2020-07-29 at 16:02 +0800, CK Hu wrote: > Hi, Seiya: > > On Wed, 2020-07-29 at 09:30 +0800, Seiya Wang wrote: > > Add basic chip support for Mediatek MT8192 > > > > Signed-off-by: Seiya Wang > > --- > > arch/arm64/boot/dts/mediatek/Makefile | 1 + > > arch/arm64/boot

Re: [Linux-kernel-mentees] [PATCH] drm/amdgpu: Prevent kernel-infoleak in amdgpu_info_ioctl()

2020-07-29 Thread Christian König
Am 28.07.20 um 21:29 schrieb Peilin Ye: Compiler leaves a 4-byte hole near the end of `dev_info`, causing amdgpu_info_ioctl() to copy uninitialized kernel stack memory to userspace when `size` is greater than 356. In 2015 we tried to fix this issue by doing `= {};` on `dev_info`, which unfortuna

Re: [PATCH] vgacon: fix out of bounds write to the scrollback buffer

2020-07-29 Thread Jiri Slaby
Hi, On 29. 07. 20, 9:53, 张云海 wrote: > This patch dosen't fix the issue, the check should be in the loop. > > The change of the VT sze is before vgacon_scrollback_update, not in the > meantime. > > Let's consider the following situation: > suppose: > vgacon_scrollback_cur->siz

[PATCH -v2] Staging: iio: Fixed a punctuation and a spelling mistake.

2020-07-29 Thread Ankit Baluni
Added a missing comma and changed 'it it useful' to 'it is useful'. Signed-off-by: Ankit Baluni --- Changes in -v2: -Remove space before ':' in subject line. drivers/staging/iio/Documentation/overview.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/st

Re: [v2,2/3] dt-bindings: watchdog: add a new head file for toprgu reset-controllers

2020-07-29 Thread Crystal Guo
On Wed, 2020-07-29 at 15:42 +0800, Matthias Brugger wrote: > Hi Crystal, > > On 29/07/2020 08:30, Crystal Guo wrote: > > merge all the reset numbers in one head file. > > > > Signed-off-by: Crystal Guo > > --- > > include/dt-bindings/reset-controller/mtk-resets.h | 13 + > > 1 fil

<    1   2   3   4   5   6   7   8   9   10   >