1. 02 5月, 2013 2 次提交
    • D
      ppc: Clean up rtas_flash driver somewhat · e8eeded3
      David Howells 提交于
      Clean up some of the problems with the rtas_flash driver:
      
       (1) It shouldn't fiddle with the internals of the procfs filesystem (altering
           pde->count).
      
       (2) If pid namespaces are in effect, then you can get multiple inodes
           connected to a single pde, thereby rendering the pde->count > 2 test
           useless.
      
       (3) The pde->count fudging doesn't work for forked, dup'd or cloned file
           descriptors, so add static mutexes and use them to wrap access to the
           driver through read, write and release methods.
      
       (4) The driver can only handle one device, so allocate most of the data
           previously attached to the pde->data as static variables instead (though
           allocate the validation data buffer with kmalloc).
      
       (5) We don't need to save the pde pointers as long as we have the filenames
           available for removal.
      
       (6) Don't try to multiplex what the update file read method does based on the
           filename.  Instead provide separate file ops and split the function.
      
      Whilst we're at it, tabulate the procfile information and loop through it when
      creating or destroying them rather than manually coding each one.
      
      [Folded fixes from Vasant Hegde <hegdevasant@linux.vnet.ibm.com>]
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      cc: Paul Mackerras <paulus@samba.org>
      cc: Anton Blanchard <anton@samba.org>
      cc: linuxppc-dev@lists.ozlabs.org
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      e8eeded3
    • D
      proc: Supply PDE attribute setting accessor functions · 271a15ea
      David Howells 提交于
      Supply accessor functions to set attributes in proc_dir_entry structs.
      
      The following are supplied: proc_set_size() and proc_set_user().
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Acked-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      cc: linuxppc-dev@lists.ozlabs.org
      cc: linux-media@vger.kernel.org
      cc: netdev@vger.kernel.org
      cc: linux-wireless@vger.kernel.org
      cc: linux-pci@vger.kernel.org
      cc: netfilter-devel@vger.kernel.org
      cc: alsa-devel@alsa-project.org
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      271a15ea
  2. 30 4月, 2013 11 次提交
  3. 10 4月, 2013 15 次提交
  4. 23 3月, 2013 1 次提交
  5. 22 3月, 2013 1 次提交
  6. 20 3月, 2013 7 次提交
  7. 19 3月, 2013 3 次提交
    • P
      arm64: Do not select GENERIC_HARDIRQS_NO_DEPRECATED · 63b7743f
      Paul Bolle 提交于
      Config option GENERIC_HARDIRQS_NO_DEPRECATED was removed in commit
      78c89825 ("genirq: Remove the now obsolete
      config options and select statements"), but the select was accidentally
      reintroduced in commit 8c2c3df3 ("arm64:
      Build infrastructure").
      Signed-off-by: NPaul Bolle <pebolle@tiscali.nl>
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      63b7743f
    • S
      ARM: imx: add dependency check for DEBUG_IMX_UART_PORT · 287939a3
      Shawn Guo 提交于
      While adding i.MX DEBUG_LL selection, commit f8c95fe6 (ARM: imx: support
      DEBUG_LL uart port selection for all i.MX SoCs) leaves Kconfig symbol
      DEBUG_IMX_UART_PORT there without any dependency check.  This results in
      that everyone gets the symbol in their config, which is someting
      undesirable.  Add "depends on ARCH_MXC" for the symbol to prevent that.
      Reported-by: NKarl Beldan <karl.beldan@gmail.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      287939a3
    • M
      ARM: video: mxs: Fix mxsfb misconfiguring VDCTRL0 · 6a15075e
      Marek Vasut 提交于
      The issue fixed by this patch manifests only then using X11
      with mxsfb driver. The X11 will display either shifted image
      or otherwise distorted image on the LCD.
      
      The problem is that the X11 tries to reconfigure the framebuffer
      and along the way calls fb_ops.fb_set_par() with X11's desired
      configuration values. The field of particular interest is
      fb_info->var.sync which contains non-standard values if
      configured by kernel. These are either FB_SYNC_DATA_ENABLE_HIGH_ACT,
      FB_SYNC_DOTCLK_FAILING_ACT or both, depending on the platform
      configuration. Both of these values are defined in the
      include/linux/mxsfb.h file.
      
      The driver interprets these values and configures the LCD controller
      accordingly. Yet X11 only has access to the standard values for this
      field defined in include/uapi/linux/fb.h and thus, unlike kernel,
      omits these special values. This results in distorted image on the
      LCD.
      
      This patch moves these non-standard values into new field of the
      mxsfb_platform_data structure so the driver can in turn check this
      field instead of the video mode field for these specific portions.
      
      Moreover, this patch prefixes these values with MXSFB_SYNC_ prefix
      instead of FB_SYNC_ prefix to prevent confusion of subsequent users.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Fabio Estevam <fabio.estevam@freescale.com>
      Cc: Linux ARM <linux-arm-kernel@lists.infradead.org>
      Cc: Linux FBDEV <linux-fbdev@vger.kernel.org>
      Cc: Lothar Waßmann <LW@karo-electronics.de>
      Cc: Sascha Hauer <kernel@pengutronix.de>
      Tested-by: NFabio Estevam <fabio.estevam@freescale.com>
      Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
      6a15075e