Finn Thain | 28 Mar 06:10 2015
Picon

[PATCH] m68k/mac: Fix out-of-bounds array index in OSS IRQ source initialization


Reported-by: David Binderman <dcb314 <at> hotmail.com>
Signed-off-by: Finn Thain <fthain <at> telegraphics.com.au>

Index: linux/arch/m68k/mac/oss.c
===================================================================
--- linux.orig/arch/m68k/mac/oss.c	2015-03-20 20:10:54.000000000 +1100
+++ linux/arch/m68k/mac/oss.c	2015-03-28 14:39:07.000000000 +1100
 <at>  <at>  -47,7 +47,7  <at>  <at>  void __init oss_init(void)
 	/* Disable all interrupts. Unlike a VIA it looks like we    */
 	/* do this by setting the source's interrupt level to zero. */

-	for (i = 0; i <= OSS_NUM_SOURCES; i++) {
+	for (i = 0; i < OSS_NUM_SOURCES; i++) {
 		oss->irq_level[i] = 0;
 	}
 }

David Binderman | 27 Mar 17:15 2015
Picon

arch/m68k/mac/oss.c:51: bad for loop ?

Hello there,

arch/m68k/mac/oss.c:51:21: warning: iteration 16u invokes undefined behavior [-Waggressive-loop-optimizations]

    for (i = 0; i <= OSS_NUM_SOURCES; i++) {
        oss->irq_level[i] = 0;
    }

Maybe better code

    for (i = 0; i < OSS_NUM_SOURCES; i++) {
        oss->irq_level[i] = 0;
    }

Regards

David Binderman

 		 	   		  --
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

gerg | 26 Mar 04:22 2015

[PATCH] m68knommu: fix fec setup warning for ColdFire 5271 builds

From: Greg Ungerer <gerg <at> uclinux.org>

Building for the ColdFire 5271 produces the following warning:

arch/m68k/coldfire/m527x.c: In function ‘m527x_fec_init’:
arch/m68k/coldfire/m527x.c:95:6: warning: unused variable ‘par’

Fix it my moving the definition of par inside the 5271 conditional code.

Reported-by: ertheb <3rth3bnospam <at> ethe.fr>
Signed-off-by: Greg Ungerer <gerg <at> uclinux.org>
---
 arch/m68k/coldfire/m527x.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/m68k/coldfire/m527x.c b/arch/m68k/coldfire/m527x.c
index 2ba4707..c0b3e28 100644
--- a/arch/m68k/coldfire/m527x.c
+++ b/arch/m68k/coldfire/m527x.c
 <at>  <at>  -92,7 +92,6  <at>  <at>  static void __init m527x_uarts_init(void)

 static void __init m527x_fec_init(void)
 {
-	u16 par;
 	u8 v;

 	/* Set multi-function pins to ethernet mode for fec0 */
 <at>  <at>  -100,6 +99,8  <at>  <at>  static void __init m527x_fec_init(void)
 	v = readb(MCFGPIO_PAR_FECI2C);
 	writeb(v | 0xf0, MCFGPIO_PAR_FECI2C);
(Continue reading)

Yijing Wang | 24 Mar 04:33 2015

[PATCH v8 00/30] Refine PCI scan interfaces and make generic pci host bridge

v7->v8:
	Fix some cross building errors found by kbuild test.
	Drop the rename patch for find_pci_host_bridge().
v6->v7:
	Drop previous patch which combined the domain and bus in one argument.
	Make the pci_host_bridge hold the default busn resource, so we could
	check whether new host busn resource is conflict with existing ones.
	Move pci_host_assign_domain_nr() to drivers/pci/host-bridge.c
	Other changes suggested by Bjorn and Suravee.
v5->v6:
	Fix cross building errors found by kbuild test.
	Export busn_resource to Xen pcifront driver.
v4->v5:
	Fix some code style issues and rename some functions suggested by Bjorn.
	Fix some code flaw(Eg. call pci_bus_add_devices() before resources claim
	or lack the return checking).
v3->v4:
	Fix the rebase issue.
v2->v3:
	Rebase this series on v4.0-rc1.
v1->v2:
	Split pci_host_bridge_list into a new patch, remove .phb_probe_mode
	and rework powerpc .phb_of_scan_bus() for simpilicty suggested by
	Arnd. Refresh some patch description log, and add a new patch to fix
	build warning in ia64.

This series is based on Bjorn's pci/enumeration branch.

Now in kernel, we scan pci bus use the following ways:
1. pci_scan_bus. 
(Continue reading)

Yijing Wang | 23 Mar 13:40 2015

[PATCH v7 00/31] Refine PCI scan interfaces and make generic pci host bridge

v6->v7:
	Drop previous patch which combined the domain and bus in one argument.
	Make the pci_host_bridge hold the default busn resource, so we could
	check whether new host busn resource is conflict with existing ones.
	Move pci_host_assign_domain_nr() to drivers/pci/host-bridge.c
	Other changes suggested by Bjorn and Suravee.
v5->v6:
	Fix cross building errors found by kbuild test.
	Export busn_resource to Xen pcifront driver.
v4->v5:
	Fix some code style issues and rename some functions suggested by Bjorn.
	Fix some code flaw(Eg. call pci_bus_add_devices() before resources claim
	or lack the return checking).
v3->v4:
	Fix the rebase issue.
v2->v3:
	Rebase this series on v4.0-rc1.
v1->v2:
	Split pci_host_bridge_list into a new patch, remove .phb_probe_mode
	and rework powerpc .phb_of_scan_bus() for simpilicty suggested by
	Arnd. Refresh some patch description log, and add a new patch to fix
	build warning in ia64.

This series is based on Bjorn's pci/enumeration branch.

Now in kernel, we scan pci bus use the following ways:
1. pci_scan_bus. 
	parent = NULL, default io/mem/bus resources
	call pci_bus_add_devices()

(Continue reading)

UK Credit Ltd Loan | 23 Mar 00:54 2015
Picon

Darlehen anbieten 3%


Grüß Gott,

        Dies ist in Großbritannien Kredit Ltd Darlehen, Eine legitime  
und um Geld für akkreditierte company.We Kredite zu einem niedrigen  
Zinssatz von 3% zu leihen. Wir leihen Geld, um Menschen in Not der  
finanziellen Unterstützung sind. Haben Sie eine schlechte Kredit? oder  
Sie brauchen Geld, um Rechnungen zu bezahlen? Wir möchten dieses  
Medium nutzen, zu beachten, dass zuverlässige Empfänger Hilfe, wie wir  
Ihnen gerne einen Kredit zu geben. Bitte, wenn Sie interessiert sind,  
kontaktieren Sie uns über diese E-Mail: ukcreditltdloan <at> hotmail.com

Nach der Reaktion, werden Sie einen Antrag auf Kredit Füllung  
erhalten. Keine soziale Sicherheit und keine Bonitätsprüfung, 100%  
garantiert.
Wir freuen uns erlauben Sie mir behilflich sein.

INFORMATIONEN

Ihre Namen:
Adresse: ...........
Telefon: ...........
Benötigte Menge: ........
Dauer: ...............
Beruf: ...........
Monatliches Einkommen Level: ........
Geschlecht: ...............
Geburtsdatum: ........
Status: ..................
Land: ..........
(Continue reading)

gerg | 18 Mar 02:56 2015

[PATCH] m68knommu: ColdFire 5271 only has a single FEC controller

From: Greg Ungerer <gerg <at> uclinux.org>

The inclusion of multiple FEC ethernet platform devices is based around
the FEC address definitions in the platform headers. The ColdFire m527x
platform is defining 2 FEC modules, but the 5271 SoC only has a single
FEC hardware module. The attempt to probe and init a second FEC module
causes a trap and dump on boot on this platform.

Fix the definitions so that only the 5275 SoC platform (which has 2 FEC
hardware modules) defines the second base address.

Reported-by: ertheb <3rth3bnospam <at> ethe.fr>
Signed-off-by: Greg Ungerer <gerg <at> uclinux.org>
---
 arch/m68k/include/asm/m527xsim.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/m68k/include/asm/m527xsim.h b/arch/m68k/include/asm/m527xsim.h
index 1bebbe7..2c648a0 100644
--- a/arch/m68k/include/asm/m527xsim.h
+++ b/arch/m68k/include/asm/m527xsim.h
 <at>  <at>  -103,8 +103,10  <at>  <at> 
  */
 #define	MCFFEC_BASE0		(MCF_IPSBAR + 0x1000)
 #define	MCFFEC_SIZE0		0x800
+#ifdef CONFIG_M5275
 #define	MCFFEC_BASE1		(MCF_IPSBAR + 0x1800)
 #define	MCFFEC_SIZE1		0x800
+#endif

(Continue reading)

Mkhize Mthembu | 13 Mar 22:44 2015
Picon

PLEASE GET BACK TO ME AS SOON AS YOU RECEIVE THIS EMAIL


Attachment (Mkhize Mthembu.docx): application/vnd.openxmlformats-officedocument.wordprocessingml.document, 17 KiB
pepa6.es@ono.com | 12 Mar 12:49 2015

(unknown)

Proposal,

Respond to my personal email;  mrs.zhangxiao1962 <at> outlook.
com 

Yours Sincerely.
Mrs. Zhang Xiao (Accounts book Keeper)
Angang 
Steel Company Limited
396 Nan Zhong Hua Lu, Tie Dong District Anshan, 
Liaoning 114021, China.

Yannick Guerrini | 9 Mar 22:29 2015
Picon

[PATCH] m68k: Fix trivial typos in comments

Change 'Reaceive' to 'Receive'
Change 'alighnment' to 'alignment'

Signed-off-by: Yannick Guerrini <yguerrini <at> tomshardware.fr>
---
 arch/m68k/include/asm/m68360_pram.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/m68k/include/asm/m68360_pram.h b/arch/m68k/include/asm/m68360_pram.h
index e6088bb..c0cbd96 100644
--- a/arch/m68k/include/asm/m68360_pram.h
+++ b/arch/m68k/include/asm/m68360_pram.h
 <at>  <at>  -170,7 +170,7  <at>  <at>  struct uart_pram {
     unsigned short  frmer;          /* Rx framing error counter */
     unsigned short  nosec;          /* Rx noise counter */
     unsigned short  brkec;          /* Rx break character counter */
-    unsigned short  brkln;          /* Reaceive break length */
+    unsigned short  brkln;          /* Receive break length */

     unsigned short  uaddr1;         /* address character 1 */
     unsigned short  uaddr2;         /* address character 2 */
 <at>  <at>  -338,7 +338,7  <at>  <at>  struct ethernet_pram {
     unsigned long   c_pres;         /* preset CRC */
     unsigned long   c_mask;         /* constant mask for CRC */
     unsigned long   crcec;          /* CRC error counter */
-    unsigned long   alec;           /* alighnment error counter */
+    unsigned long   alec;           /* alignment error counter */
     unsigned long   disfc;          /* discard frame counter */
     unsigned short  pads;           /* short frame PAD characters */
     unsigned short  ret_lim;        /* retry limit threshold */
(Continue reading)

Yijing Wang | 9 Mar 03:33 2015

[PATCH v6 00/30] Refine PCI scan interfaces and make generic pci host bridge

v5->v6:
	Fix cross building errors found by kbuild test.
	Export busn_resource to Xen pcifront driver.
v4->v5:
	Fix some code style issues and rename some functions suggested by Bjorn.
	Fix some code flaw(Eg. call pci_bus_add_devices() before resources claim
	or lack the return checking).
v3->v4:
	Fix the rebase issue.
v2->v3:
	Rebase this series on v4.0-rc1.
v1->v2:
	Split pci_host_bridge_list into a new patch, remove .phb_probe_mode
	and rework powerpc .phb_of_scan_bus() for simpilicty suggested by
	Arnd. Refresh some patch description log, and add a new patch to fix
	build warning in ia64.

This series is based on Bjorn's pci-next branch.

Patch 1-4 ripped out pci_bus_add_devices() from pci scan interfaces
for better pci scan flow.

Patch 5-11 make a generic pci_host_bridge to hold pci_host_bridge
related informations, and introduce a pci_host_bridge_ops to 
support platform host drivers provide its own pci_host_bridge 
related operations to setup pci_host_bridge during pci enumeration.

Patch 12-28 apply the new pci scan interfaces to platform pci host
bridge drivers.

(Continue reading)


Gmane