/* * File: sound/soc/blackfin/bf5xx-ad1980.c * Author: Cliff Cai * * Created: Tue June 06 2008 * Description: Board driver for AD1980/1 audio codec * * Modified: * Copyright 2008 Analog Devices Inc. * * Bugs: Enter bugs at http://blackfin.uclinux.org/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see the file COPYING, or write * to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* * WARNING: * * Because Analog Devices Inc. discontinued the ad1980 sound chip since * Sep. 2009, this ad1980 driver is not maintained, tested and supported * by ADI now. */ #include #include #include #include #include #include #include #include #include #include "bf5xx-ac97.h" static struct snd_soc_card bf5xx_board; static struct snd_soc_dai_link bf5xx_board_dai[] = { { .name = "AC97", .stream_name = "AC97 HiFi", .cpu_dai_name = "bfin-ac97.0", .codec_dai_name = "ad1980-hifi", .platform_name = "bfin-ac97-pcm-audio", .codec_name = "ad1980", }, { .name = "AC97", .stream_name = "AC97 HiFi", .cpu_dai_name = "bfin-ac97.1", .codec_dai_name = "ad1980-hifi", .platform_name = "bfin-ac97-pcm-audio", .codec_name = "ad1980", }, }; static struct snd_soc_card bf5xx_board = { .name = "bfin-ad1980", .owner = THIS_MODULE, .dai_link = &bf5xx_board_dai[CONFIG_SND_BF5XX_SPORT_NUM], .num_links = 1, }; static struct platform_device *bf5xx_board_snd_device; static int __init bf5xx_board_init(void) { int ret; bf5xx_board_snd_device = platform_device_alloc("soc-audio", -1); if (!bf5xx_board_snd_device) return -ENOMEM; platform_set_drvdata(bf5xx_board_snd_device, &bf5xx_board); ret = platform_device_add(bf5xx_board_snd_device); if (ret) platform_device_put(bf5xx_board_snd_device); return ret; } static void __exit bf5xx_board_exit(void) { platform_device_unregister(bf5xx_board_snd_device); } module_init(bf5xx_board_init); module_exit(bf5xx_board_exit); /* Module information */ MODULE_AUTHOR("Cliff Cai"); MODULE_DESCRIPTION("ALSA SoC AD1980/1 BF5xx board (Obsolete)"); MODULE_LICENSE("GPL"); e7c05a88e4996e8177f91b'>root/include/dt-bindings/gpio/meson-gxl-gpio.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2017-02-03 17:10:28 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2017-02-08 23:36:29 +1100
commitd7df2443cd5f67fc6ee7c05a88e4996e8177f91b (patch)
tree098a7c0ca4fceb8a65cb1f693c9d71990388933d /include/dt-bindings/gpio/meson-gxl-gpio.h
parenta0615a16f7d0ceb5804d295203c302d496d8ee91 (diff)
powerpc/mm: Fix spurrious segfaults on radix with autonuma
When autonuma (Automatic NUMA balancing) marks a PTE inaccessible it clears all the protection bits but leave the PTE valid. With the Radix MMU, an attempt at executing from such a PTE will take a fault with bit 35 of SRR1 set "SRR1_ISI_N_OR_G". It is thus incorrect to treat all such faults as errors. We should pass them to handle_mm_fault() for autonuma to deal with. The case of pages that are really not executable is handled by the existing test for VM_EXEC further down. That leaves us with catching the kernel attempts at executing user pages. We can catch that earlier, even before we do find_vma. It is never valid on powerpc for the kernel to take an exec fault to begin with. So fold that test with the existing test for the kernel faulting on kernel addresses to bail out early. Fixes: 1d18ad026844 ("powerpc/mm: Detect instruction fetch denied and report") Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Acked-by: Balbir Singh <bsingharora@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'include/dt-bindings/gpio/meson-gxl-gpio.h')