Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Re: WTF: patch "[PATCH] MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver" was seriously submitted to be applied to the 4.9-stable tree?
       [not found]   ` <20171127125649.GA13615@kroah.com>
@ 2017-11-27 14:13     ` James Hogan
  2017-11-27 14:13       ` James Hogan
  2017-11-27 15:06       ` Greg KH
  0 siblings, 2 replies; 3+ messages in thread
From: James Hogan @ 2017-11-27 14:13 UTC (permalink / raw)
  To: Greg KH; +Cc: john, ralf, stable, linux-mips

[-- Attachment #1: Type: text/plain, Size: 2685 bytes --]

On Mon, Nov 27, 2017 at 01:56:49PM +0100, Greg KH wrote:
> On Mon, Nov 27, 2017 at 12:40:36PM +0000, James Hogan wrote:
> > Hi Greg,
> > 
> > On Mon, Nov 27, 2017 at 01:35:46PM +0100, gregkh@linuxfoundation.org wrote:
> > > The patch below was submitted to be applied to the 4.9-stable tree.
> > > 
> > > I fail to see how this patch meets the stable kernel rules as found at
> > > Documentation/process/stable-kernel-rules.rst.
> > > 
> > > I could be totally wrong, and if so, please respond to 
> > > <stable@vger.kernel.org> and let me know why this patch should be
> > > applied.  Otherwise, it is now dropped from my patch queues, never to be
> > > seen again.
> > 
> > I should have adjusted the commit message. KERN_WARN doesn't exist so it
> > actually fixes a build error as well as switching to pr_warn().
> 
> What build error?  I have not heard of this breaking the build on 4.9
> for the past year, is it in some config that no one uses?  :)

The LEDE project has been carrying the patch [1] since February when
they added 4.9 support (their 4.4 support had a slightly earlier version
of the driver added with just a plain printk, no KERN_WARN).

They have both CONFIG_SOC_MT7620 and CONFIG_PCI=y in their ralink mt7620
config [2], and they are keeping up to date with stable releases [3], so
I have no doubt they would appreciate having the patch applied to
upstream stable to reduce their delta.

The only defconfigs in mainline which enable this platform
(CONFIG_SOC_MT7620) are omega2p_defconfig and vocore2_defconfig, which
were added in August by Harvey to help widen our internal continuous
build & boot test coverage. Neither defconfig enables CONFIG_PCI yet
which is required to see the build failure below, but regardless it is a
valid configuration which LEDE is actively using.

arch/mips/pci/pci-mt7620.c: In function ‘wait_pciephy_busy’:
arch/mips/pci/pci-mt7620.c:123:11: error: ‘KERN_WARN’ undeclared (first use in this function)
    printk(KERN_WARN "PCIE-PHY retry failed.\n");
           ^~~~~~~~~

John: I'm not familiar with the hardware, but would it be appropriate to
add CONFIG_PCI=y to either of those 2 defconfigs (omega2p_defconfig and
vocore2_defconfig) so this driver gets some upstream build[/boot]
testing?

Anyway, hopefully that helps allay stable backport concerns.

Thanks
James

[1] https://github.com/lede-project/source/blob/master/target/linux/ramips/patches-4.9/0099-pci-mt7620.patch
[2] https://github.com/lede-project/source/blob/master/target/linux/ramips/mt7620/config-4.9
[3] https://github.com/lede-project/source/commit/9fe59abef8bde3b7f32868873c4e1f76e9222d46

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: WTF: patch "[PATCH] MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver" was seriously submitted to be applied to the 4.9-stable tree?
  2017-11-27 14:13     ` WTF: patch "[PATCH] MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver" was seriously submitted to be applied to the 4.9-stable tree? James Hogan
@ 2017-11-27 14:13       ` James Hogan
  2017-11-27 15:06       ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: James Hogan @ 2017-11-27 14:13 UTC (permalink / raw)
  To: Greg KH; +Cc: john, ralf, stable, linux-mips

[-- Attachment #1: Type: text/plain, Size: 2685 bytes --]

On Mon, Nov 27, 2017 at 01:56:49PM +0100, Greg KH wrote:
> On Mon, Nov 27, 2017 at 12:40:36PM +0000, James Hogan wrote:
> > Hi Greg,
> > 
> > On Mon, Nov 27, 2017 at 01:35:46PM +0100, gregkh@linuxfoundation.org wrote:
> > > The patch below was submitted to be applied to the 4.9-stable tree.
> > > 
> > > I fail to see how this patch meets the stable kernel rules as found at
> > > Documentation/process/stable-kernel-rules.rst.
> > > 
> > > I could be totally wrong, and if so, please respond to 
> > > <stable@vger.kernel.org> and let me know why this patch should be
> > > applied.  Otherwise, it is now dropped from my patch queues, never to be
> > > seen again.
> > 
> > I should have adjusted the commit message. KERN_WARN doesn't exist so it
> > actually fixes a build error as well as switching to pr_warn().
> 
> What build error?  I have not heard of this breaking the build on 4.9
> for the past year, is it in some config that no one uses?  :)

The LEDE project has been carrying the patch [1] since February when
they added 4.9 support (their 4.4 support had a slightly earlier version
of the driver added with just a plain printk, no KERN_WARN).

They have both CONFIG_SOC_MT7620 and CONFIG_PCI=y in their ralink mt7620
config [2], and they are keeping up to date with stable releases [3], so
I have no doubt they would appreciate having the patch applied to
upstream stable to reduce their delta.

The only defconfigs in mainline which enable this platform
(CONFIG_SOC_MT7620) are omega2p_defconfig and vocore2_defconfig, which
were added in August by Harvey to help widen our internal continuous
build & boot test coverage. Neither defconfig enables CONFIG_PCI yet
which is required to see the build failure below, but regardless it is a
valid configuration which LEDE is actively using.

arch/mips/pci/pci-mt7620.c: In function ‘wait_pciephy_busy’:
arch/mips/pci/pci-mt7620.c:123:11: error: ‘KERN_WARN’ undeclared (first use in this function)
    printk(KERN_WARN "PCIE-PHY retry failed.\n");
           ^~~~~~~~~

John: I'm not familiar with the hardware, but would it be appropriate to
add CONFIG_PCI=y to either of those 2 defconfigs (omega2p_defconfig and
vocore2_defconfig) so this driver gets some upstream build[/boot]
testing?

Anyway, hopefully that helps allay stable backport concerns.

Thanks
James

[1] https://github.com/lede-project/source/blob/master/target/linux/ramips/patches-4.9/0099-pci-mt7620.patch
[2] https://github.com/lede-project/source/blob/master/target/linux/ramips/mt7620/config-4.9
[3] https://github.com/lede-project/source/commit/9fe59abef8bde3b7f32868873c4e1f76e9222d46

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: WTF: patch "[PATCH] MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver" was seriously submitted to be applied to the 4.9-stable tree?
  2017-11-27 14:13     ` WTF: patch "[PATCH] MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver" was seriously submitted to be applied to the 4.9-stable tree? James Hogan
  2017-11-27 14:13       ` James Hogan
@ 2017-11-27 15:06       ` Greg KH
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2017-11-27 15:06 UTC (permalink / raw)
  To: James Hogan; +Cc: john, ralf, stable, linux-mips

On Mon, Nov 27, 2017 at 02:13:00PM +0000, James Hogan wrote:
> On Mon, Nov 27, 2017 at 01:56:49PM +0100, Greg KH wrote:
> > On Mon, Nov 27, 2017 at 12:40:36PM +0000, James Hogan wrote:
> > > Hi Greg,
> > > 
> > > On Mon, Nov 27, 2017 at 01:35:46PM +0100, gregkh@linuxfoundation.org wrote:
> > > > The patch below was submitted to be applied to the 4.9-stable tree.
> > > > 
> > > > I fail to see how this patch meets the stable kernel rules as found at
> > > > Documentation/process/stable-kernel-rules.rst.
> > > > 
> > > > I could be totally wrong, and if so, please respond to 
> > > > <stable@vger.kernel.org> and let me know why this patch should be
> > > > applied.  Otherwise, it is now dropped from my patch queues, never to be
> > > > seen again.
> > > 
> > > I should have adjusted the commit message. KERN_WARN doesn't exist so it
> > > actually fixes a build error as well as switching to pr_warn().
> > 
> > What build error?  I have not heard of this breaking the build on 4.9
> > for the past year, is it in some config that no one uses?  :)
> 
> The LEDE project has been carrying the patch [1] since February when
> they added 4.9 support (their 4.4 support had a slightly earlier version
> of the driver added with just a plain printk, no KERN_WARN).
> 
> They have both CONFIG_SOC_MT7620 and CONFIG_PCI=y in their ralink mt7620
> config [2], and they are keeping up to date with stable releases [3], so
> I have no doubt they would appreciate having the patch applied to
> upstream stable to reduce their delta.
> 
> The only defconfigs in mainline which enable this platform
> (CONFIG_SOC_MT7620) are omega2p_defconfig and vocore2_defconfig, which
> were added in August by Harvey to help widen our internal continuous
> build & boot test coverage. Neither defconfig enables CONFIG_PCI yet
> which is required to see the build failure below, but regardless it is a
> valid configuration which LEDE is actively using.
> 
> arch/mips/pci/pci-mt7620.c: In function ‘wait_pciephy_busy’:
> arch/mips/pci/pci-mt7620.c:123:11: error: ‘KERN_WARN’ undeclared (first use in this function)
>     printk(KERN_WARN "PCIE-PHY retry failed.\n");
>            ^~~~~~~~~
> 
> John: I'm not familiar with the hardware, but would it be appropriate to
> add CONFIG_PCI=y to either of those 2 defconfigs (omega2p_defconfig and
> vocore2_defconfig) so this driver gets some upstream build[/boot]
> testing?
> 
> Anyway, hopefully that helps allay stable backport concerns.

Yes, thanks, that explains it a lot better, now queued up.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-11-27 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1511786146225230@kroah.com>
     [not found] ` <20171127124036.GA11276@jhogan-linux.mipstec.com>
     [not found]   ` <20171127125649.GA13615@kroah.com>
2017-11-27 14:13     ` WTF: patch "[PATCH] MIPS: pci: Remove KERN_WARN instance inside the mt7620 driver" was seriously submitted to be applied to the 4.9-stable tree? James Hogan
2017-11-27 14:13       ` James Hogan
2017-11-27 15:06       ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox