Skip to content
  1. Mar 12, 2015
    • Simon Guinot's avatar
      ARM: Kirkwood: add DT description for nas2big · 0c2d652f
      Simon Guinot authored
      
      
      This patch adds the DT description for the LaCie "2Big NAS" (nas2big).
      This NAS is an hardware upgrade of the 2Big Network v2.
      
      Chipset and device list:
      
      - CPU Marvell 88F6282 1600Mhz
      - SDRAM memory, 256MB DDR3 (2x128MB x8) 533Mhz
      - 1 Ethernet Gigabit port (PHY Marvell 88E1518)
      - Flash memory, NAND 256MB TSOP48
      - I2C EEPROM, 512 bytes (AT24 type)
      - PCIe SATA controller JMicron JMB360 (eSATA)
      - I2C fan controller GMT G762 (with a separate alarm GPIO)
      - 1 USB2 host port
      - 1 push button
      - 1 power switch
      - 2 SATA LEDs (bi-color, blue and red)
      - 1 power LED (bi-color, blue and red)
      - CPLD for LEDs and start-up management (Altera Max EMP3064)
      
      Signed-off-by: default avatarSimon Guinot <simon.guinot@sequanux.org>
      Acked-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
      0c2d652f
  2. Mar 04, 2015
  3. Feb 27, 2015
  4. Feb 23, 2015
    • Gregory CLEMENT's avatar
      ARM: mvebu: Add Device Tree description of SDHCI for Armada 388 RD · 444fdf94
      Gregory CLEMENT authored
      
      
      The Device Tree description of SDHCI on Armada 388 RD board was
      missing. This commit adds the node for it.
      
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
      444fdf94
    • Gregory CLEMENT's avatar
      ARM: mvebu: Update the SDHCI node on Armada 38x · ddbdc579
      Gregory CLEMENT authored
      
      
      The binding of the armada-380-sdhci has been extended with a new
      register in order to be able to use the SDR50 and DDR50 mode. This
      commit add the resource associated to this new register for the
      Armada 38x.
      
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
      ddbdc579
    • Gregory CLEMENT's avatar
      ARM: mvebu: Use macros for interrupt flags on Armada 38x sdhci node · b757258a
      Gregory CLEMENT authored
      
      
      Instead of hardcoding the values of the interrupt flags, use the
      macros provided by <include/dt-bindings/interrupt-controller/irq.h>
      and <include/dt-bindings/interrupt-controller/arm-gic.h> for the
      Armada 38x SDHCI node.
      
      Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
      b757258a
    • David Howells's avatar
      VFS: (Scripted) Convert S_ISLNK/DIR/REG(dentry->d_inode) to d_is_*(dentry) · e36cb0b8
      David Howells authored
      
      
      Convert the following where appropriate:
      
       (1) S_ISLNK(dentry->d_inode) to d_is_symlink(dentry).
      
       (2) S_ISREG(dentry->d_inode) to d_is_reg(dentry).
      
       (3) S_ISDIR(dentry->d_inode) to d_is_dir(dentry).  This is actually more
           complicated than it appears as some calls should be converted to
           d_can_lookup() instead.  The difference is whether the directory in
           question is a real dir with a ->lookup op or whether it's a fake dir with
           a ->d_automount op.
      
      In some circumstances, we can subsume checks for dentry->d_inode not being
      NULL into this, provided we the code isn't in a filesystem that expects
      d_inode to be NULL if the dirent really *is* negative (ie. if we're going to
      use d_inode() rather than d_backing_inode() to get the inode pointer).
      
      Note that the dentry type field may be set to something other than
      DCACHE_MISS_TYPE when d_inode is NULL in the case of unionmount, where the VFS
      manages the fall-through from a negative dentry to a lower layer.  In such a
      case, the dentry type of the negative union dentry is set to the same as the
      type of the lower dentry.
      
      However, if you know d_inode is not NULL at the call site, then you can use
      the d_is_xxx() functions even in a filesystem.
      
      There is one further complication: a 0,0 chardev dentry may be labelled
      DCACHE_WHITEOUT_TYPE rather than DCACHE_SPECIAL_TYPE.  Strictly, this was
      intended for special directory entry types that don't have attached inodes.
      
      The following perl+coccinelle script was used:
      
      use strict;
      
      my @callers;
      open($fd, 'git grep -l \'S_IS[A-Z].*->d_inode\' |') ||
          die "Can't grep for S_ISDIR and co. callers";
      @callers = <$fd>;
      close($fd);
      unless (@callers) {
          print "No matches\n";
          exit(0);
      }
      
      my @cocci = (
          '@@',
          'expression E;',
          '@@',
          '',
          '- S_ISLNK(E->d_inode->i_mode)',
          '+ d_is_symlink(E)',
          '',
          '@@',
          'expression E;',
          '@@',
          '',
          '- S_ISDIR(E->d_inode->i_mode)',
          '+ d_is_dir(E)',
          '',
          '@@',
          'expression E;',
          '@@',
          '',
          '- S_ISREG(E->d_inode->i_mode)',
          '+ d_is_reg(E)' );
      
      my $coccifile = "tmp.sp.cocci";
      open($fd, ">$coccifile") || die $coccifile;
      print($fd "$_\n") || die $coccifile foreach (@cocci);
      close($fd);
      
      foreach my $file (@callers) {
          chomp $file;
          print "Processing ", $file, "\n";
          system("spatch", "--sp-file", $coccifile, $file, "--in-place", "--no-show-diff") == 0 ||
      	die "spatch failed";
      }
      
      [AV: overlayfs parts skipped]
      
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      e36cb0b8
  5. Feb 21, 2015
  6. Feb 20, 2015