1. 14 10月, 2012 1 次提交
    • R
      ARM: config: sort select statements alphanumerically · b1b3f49c
      Russell King 提交于
      As suggested by Andrew Morton:
      
        This is a pet peeve of mine.  Any time there's a long list of items
        (header file inclusions, kconfig entries, array initalisers, etc) and
        someone wants to add a new item, they *always* go and stick it at the
        end of the list.
      
        Guys, don't do this.  Either put the new item into a randomly-chosen
        position or, probably better, alphanumerically sort the list.
      
      lets sort all our select statements alphanumerically.  This commit was
      created by the following perl:
      
      while (<>) {
      	while (/\\\s*$/) {
      		$_ .= <>;
      	}
      	undef %selects if /^\s*config\s+/;
      	if (/^\s+select\s+(\w+).*/) {
      		if (defined($selects{$1})) {
      			if ($selects{$1} eq $_) {
      				print STDERR "Warning: removing duplicated $1 entry\n";
      			} else {
      				print STDERR "Error: $1 differently selected\n".
      					"\tOld: $selects{$1}\n".
      					"\tNew: $_\n";
      				exit 1;
      			}
      		}
      		$selects{$1} = $_;
      		next;
      	}
      	if (%selects and (/^\s*$/ or /^\s+help/ or /^\s+---help---/ or
      			  /^endif/ or /^endchoice/)) {
      		foreach $k (sort (keys %selects)) {
      			print "$selects{$k}";
      		}
      		undef %selects;
      	}
      	print;
      }
      if (%selects) {
      	foreach $k (sort (keys %selects)) {
      		print "$selects{$k}";
      	}
      }
      
      It found two duplicates:
      
      Warning: removing duplicated S5P_SETUP_MIPIPHY entry
      Warning: removing duplicated HARDIRQS_SW_RESEND entry
      
      and they are identical duplicates, hence the shrinkage in the diffstat
      of two lines.
      
      We have four testers reporting success of this change (Tony, Stephen,
      Linus and Sekhar.)
      Acked-by: NJason Cooper <jason@lakedaemon.net>
      Acked-by: NTony Lindgren <tony@atomide.com>
      Acked-by: NStephen Warren <swarren@nvidia.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Acked-by: NSekhar Nori <nsekhar@ti.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      b1b3f49c
  2. 14 9月, 2012 4 次提交
  3. 19 12月, 2011 1 次提交
  4. 16 11月, 2011 2 次提交
  5. 11 11月, 2011 2 次提交
  6. 01 8月, 2011 2 次提交
  7. 21 6月, 2011 1 次提交
  8. 14 6月, 2011 1 次提交
  9. 09 3月, 2011 1 次提交
  10. 15 2月, 2011 2 次提交
  11. 22 1月, 2011 2 次提交
  12. 08 1月, 2011 2 次提交
  13. 01 12月, 2010 2 次提交
  14. 23 11月, 2010 1 次提交
  15. 30 10月, 2010 1 次提交
  16. 28 10月, 2010 1 次提交
  17. 09 10月, 2010 7 次提交
  18. 07 10月, 2010 2 次提交
    • G
      msm: Featurize gpiomux. · ab78cde5
      Gregory Bean 提交于
      Featurize gpiomux so that systems like 7x00 which do not wish to use it
      do not have to be saddled with the configuration tables.
      Signed-off-by: NGregory Bean <gbean@codeaurora.org>
      Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
      ab78cde5
    • G
      msm: add gpiomux api for gpio multiplex & configuration. · 1963a2af
      Gregory Bean 提交于
      Add the 'gpiomux' api, which addresses the following shortcomings
      of existing tlmm api:
      
      - gpio power-collapse, which is managed by a peripheral processor on
        other targets, must be managed by the application processor on the 8x60.
      - The enable/disable flag of the legacy gpio_tlmm_config api
        is not applicable on the 8x60, and causes confusion.
      - The gpio 'direction' bits are meaningless for all func_sel
        configurations except for generic-gpio mode (func_sel 0), in which
        case the gpio_direction_* functions should be used.  Having these
        bits in the tlmm api leads to confusion and misuse of the gpiolib
        api, and they have been removed in gpiomux.
      - The functional api of the legacy system ran contrary to the typical
        use-case, which is a single massive configuration at boot.  Rather
        than forcing hundreds of 'config' function calls, the new api
        allows data to be configured with a single table.
      
      gpiomux_get and gpiomux_put are meant to be called automatically
      when gpio_request and gpio_free are called, giving automatic
      gpiomux/tlmm control to those drivers/lines with simple
      power profiles - in the simplest cases, an entry in the gpiomux table
      and the correct usage of gpiolib is all that is required to get proper
      gpio power control.
      Signed-off-by: NGregory Bean <gbean@codeaurora.org>
      Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
      1963a2af
  19. 14 5月, 2010 3 次提交
  20. 13 5月, 2010 2 次提交
    • D
      arm: msm: smd: remove Kconfig menu option · 3a9f346a
      Daniel Walker 提交于
      This removes the Kconfig menu option. SMD can still be selected
      but it's done inside the Kconfig file and not via the menu.
      Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
      3a9f346a
    • D
      arm: msm: smd: use either package v3 or v4 not both · bf83de40
      Daniel Walker 提交于
      This modifies SMD to use either the package v3 or package v4,
      but not both. The current code tries to allocate as v4 on all
      system which can produce a scary looking error message on boot up,
      
      smem_find(16, 40): wrong size 16424
      smd_alloc_channel() cid=02 size=08192 'SMD_RPCCALL'
      
      With this error the code then falls back on the package v3 allocation
      method. This method is inefficient because it causes a slow down
      on some systems even when the allocation method can be determined
      at compile time. It also causes a kernel size increase that effects
      all system and is not needed.
      
      This change corrects the allocation to use one method or the other
      and not both.
      Signed-off-by: NDaniel Walker <c_dwalke@quicinc.com>
      bf83de40