Commit 0dac723e authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc

* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
  [POWERPC] Update defconfigs
  [POWERPC] Uninline and export virq_to_hw() for the pasemi_mac driver
  [POWERPC] Fix PMI breakage in cbe_cbufreq driver
  [POWERPC] Disable old EMAC driver in arch/powerpc
parents 87a927c7 795bb15e
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -412,6 +412,12 @@ struct irq_map_entry irq_map[NR_IRQS]; ...@@ -412,6 +412,12 @@ struct irq_map_entry irq_map[NR_IRQS];
static unsigned int irq_virq_count = NR_IRQS; static unsigned int irq_virq_count = NR_IRQS;
static struct irq_host *irq_default_host; static struct irq_host *irq_default_host;
irq_hw_number_t virq_to_hw(unsigned int virq)
{
return irq_map[virq].hwirq;
}
EXPORT_SYMBOL_GPL(virq_to_hw);
struct irq_host *irq_alloc_host(unsigned int revmap_type, struct irq_host *irq_alloc_host(unsigned int revmap_type,
unsigned int revmap_arg, unsigned int revmap_arg,
struct irq_host_ops *ops, struct irq_host_ops *ops,
......
...@@ -74,6 +74,7 @@ static unsigned int pmi_frequency_limit = 0; ...@@ -74,6 +74,7 @@ static unsigned int pmi_frequency_limit = 0;
static struct of_device *pmi_dev; static struct of_device *pmi_dev;
#ifdef CONFIG_PPC_PMI
static int set_pmode_pmi(int cpu, unsigned int pmode) static int set_pmode_pmi(int cpu, unsigned int pmode)
{ {
int ret; int ret;
...@@ -102,7 +103,7 @@ static int set_pmode_pmi(int cpu, unsigned int pmode) ...@@ -102,7 +103,7 @@ static int set_pmode_pmi(int cpu, unsigned int pmode)
#endif #endif
return ret; return ret;
} }
#endif
static int get_pmode(int cpu) static int get_pmode(int cpu)
{ {
...@@ -157,9 +158,11 @@ static int set_pmode_reg(int cpu, unsigned int pmode) ...@@ -157,9 +158,11 @@ static int set_pmode_reg(int cpu, unsigned int pmode)
} }
static int set_pmode(int cpu, unsigned int slow_mode) { static int set_pmode(int cpu, unsigned int slow_mode) {
#ifdef CONFIG_PPC_PMI
if (pmi_dev) if (pmi_dev)
return set_pmode_pmi(cpu, slow_mode); return set_pmode_pmi(cpu, slow_mode);
else else
#endif
return set_pmode_reg(cpu, slow_mode); return set_pmode_reg(cpu, slow_mode);
} }
...@@ -323,26 +326,28 @@ static struct cpufreq_driver cbe_cpufreq_driver = { ...@@ -323,26 +326,28 @@ static struct cpufreq_driver cbe_cpufreq_driver = {
static int __init cbe_cpufreq_init(void) static int __init cbe_cpufreq_init(void)
{ {
#ifdef CONFIG_PPC_PMI
struct device_node *np; struct device_node *np;
#endif
if (!machine_is(cell)) if (!machine_is(cell))
return -ENODEV; return -ENODEV;
#ifdef CONFIG_PPC_PMI
np = of_find_node_by_type(NULL, "ibm,pmi"); np = of_find_node_by_type(NULL, "ibm,pmi");
pmi_dev = of_find_device_by_node(np); pmi_dev = of_find_device_by_node(np);
if (pmi_dev) if (pmi_dev)
pmi_register_handler(pmi_dev, &cbe_pmi_handler); pmi_register_handler(pmi_dev, &cbe_pmi_handler);
#endif
return cpufreq_register_driver(&cbe_cpufreq_driver); return cpufreq_register_driver(&cbe_cpufreq_driver);
} }
static void __exit cbe_cpufreq_exit(void) static void __exit cbe_cpufreq_exit(void)
{ {
#ifdef CONFIG_PPC_PMI
if (pmi_dev) if (pmi_dev)
pmi_unregister_handler(pmi_dev, &cbe_pmi_handler); pmi_unregister_handler(pmi_dev, &cbe_pmi_handler);
#endif
cpufreq_unregister_driver(&cbe_cpufreq_driver); cpufreq_unregister_driver(&cbe_cpufreq_driver);
} }
......
...@@ -1187,7 +1187,7 @@ config IBMVETH ...@@ -1187,7 +1187,7 @@ config IBMVETH
config IBM_EMAC config IBM_EMAC
tristate "PowerPC 4xx on-chip Ethernet support" tristate "PowerPC 4xx on-chip Ethernet support"
depends on 4xx depends on 4xx && !PPC_MERGE
help help
This driver supports the PowerPC 4xx EMAC family of on-chip This driver supports the PowerPC 4xx EMAC family of on-chip
Ethernet controllers. Ethernet controllers.
......
...@@ -138,10 +138,7 @@ struct irq_map_entry { ...@@ -138,10 +138,7 @@ struct irq_map_entry {
extern struct irq_map_entry irq_map[NR_IRQS]; extern struct irq_map_entry irq_map[NR_IRQS];
static inline irq_hw_number_t virq_to_hw(unsigned int virq) extern irq_hw_number_t virq_to_hw(unsigned int virq);
{
return irq_map[virq].hwirq;
}
/** /**
* irq_alloc_host - Allocate a new irq_host data structure * irq_alloc_host - Allocate a new irq_host data structure
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment