Commit Graph

5486 Commits (ce5d644ac11b1c94e509fa030ae0899e4a10ea1c)

Author SHA1 Message Date
Gabor Juhos b86e4e1c6a ar71xx: add default network config for the RB433UAH board
SVN-Revision: 21765
14 years ago
Gabor Juhos 9789f0215a ar71xx: nuke AR71XX_MACH_UBNT_AR71XX machtype
SVN-Revision: 21764
14 years ago
Alexandros C. Couloumbis 7f32c3672e generic-2.6/patches-2.6.35: fix ocf missing parts
SVN-Revision: 21757
14 years ago
Alexandros C. Couloumbis 97904a9d2f rb532: fix a module dependency issue
SVN-Revision: 21755
14 years ago
Alexandros C. Couloumbis 69c4e34f3a rb532: add kernel 2.6.35 preliminary support
SVN-Revision: 21754
14 years ago
Alexandros C. Couloumbis 93993b29e0 adm5120: add kernel 2.6.35 preliminary support
SVN-Revision: 21751
14 years ago
Gabor Juhos 9bc1e548a1 generic: move more common options to generic configuration
* CONFIG_ABX500_CORE
 * CONFIG_ATOMIC64_SELFTEST
 * CONFIG_BRIDGE_IGMP_SNOOPING
 * CONFIG_CAIF
 * CONFIG_CEPH_FS
 * CONFIG_CRYSTALHD
 * CONFIG_DEFAULT_SECURITY_SELINUX
 * CONFIG_DEFAULT_SECURITY_SMACK
 * CONFIG_DEFAULT_SECURITY_TOMOYO
 * CONFIG_DT3155
 * CONFIG_IP_MROUTE_MULTIPLE_TABLES
 * CONFIG_L2TP
 * CONFIG_LOGFS
 * CONFIG_LPC_SCH
 * CONFIG_MFD_JANZ_CMODIO
 * CONFIG_MFD_RDC321X
 * CONFIG_N_GSM
 * CONFIG_RAMOOPS
 * CONFIG_SERIAL_ALTERA_JTAGUART
 * CONFIG_SERIAL_ALTERA_UART
 * CONFIG_SERIAL_TIMBERDALE
 * CONFIG_SM_FTL
 * CONFIG_SQUASHFS_XATTRS

SVN-Revision: 21750
14 years ago
Gabor Juhos 4128c72275 generic: don't override CONFIG_DEBUG_FS
SVN-Revision: 21749
14 years ago
Gabor Juhos 2f328ce488 generic: move some common symbols to generic configuration
* CONFIG_MUTEX_SPIN_ON_OWNER
 * CONFIG_DEFAULT_HYDLA
 * CONFIG_DEFAULT_VENO

SVN-Revision: 21748
14 years ago
Gabor Juhos 57c5fe2e7f generic: remove trailing whitespaces from kernel configs
SVN-Revision: 21747
14 years ago
Gabor Juhos 5cad9d5c73 generic: standardize CONFIG_INLINE_* symbols usage
SVN-Revision: 21746
14 years ago
Gabor Juhos 65de4c2102 ar71xx: sync kernel configs
SVN-Revision: 21745
14 years ago
Gabor Juhos f24395618e ar71xx: remove more config overrides
SVN-Revision: 21744
14 years ago
Gabor Juhos adb0a95df1 ar71xx: fix phy_mask for the RB450
SVN-Revision: 21743
14 years ago
Gabor Juhos f731dbec62 ar71xx: don't override CONFIG_BRIDGE_* options
SVN-Revision: 21742
14 years ago
Gabor Juhos 8c6a9eccb7 generic: update xt_layer7 module fix for 2.6.35
SVN-Revision: 21741
14 years ago
Alexandros C. Couloumbis c9f459572e generic-2.6: layer7: convert xt_match_param to xt_action_param
SVN-Revision: 21740
14 years ago
Gabor Juhos 270d8bd6da generic: more missing symbols for 2.6.35
SVN-Revision: 21739
14 years ago
Gabor Juhos e09af769c6 generic: add missing layer7 patches for 2.6.35
SVN-Revision: 21738
14 years ago
Gabor Juhos dc27a440b2 ar71xx: fix nand_scan_ident parameters in the rb{4xx,750}_nand drivers for 2.6.35
SVN-Revision: 21737
14 years ago
Gabor Juhos 6ce447427c ar71xx: fix build error in the rb{4xx,750}_nand drivers on 2.6.34/35
SVN-Revision: 21736
14 years ago
Alexandros C. Couloumbis 3e5f4450b5 generic-2.6: update patches-2.6.35/080-mtd_plat_nand_chip_fixup.patch
SVN-Revision: 21735
14 years ago
Alexandros C. Couloumbis d45dc5e820 ar71xx: add kernel 2.6.35 preliminary support
SVN-Revision: 21734
14 years ago
Alexandros C. Couloumbis bef7ceff09 generic-2.6: add (some) missing config symbols for kernel 2.6.35
SVN-Revision: 21733
14 years ago
Gabor Juhos e16d46a350 generic: rename ip175c driver to ip17xx on 2.6.35 as well
SVN-Revision: 21732
14 years ago
Gabor Juhos 3045632eb0 ar71xx: add default network configuration file for the RB450/RB433 boards
SVN-Revision: 21730
14 years ago
Gabor Juhos 2666ae6f0e ar71xx: enable the IP17xx driver for the nand subtarget
Also disable the old ICPlus driver.

SVN-Revision: 21729
14 years ago
Gabor Juhos d55ebf3a8a ar71xx: fix phy_mask on the RB433 for the IP17xx driver
SVN-Revision: 21728
14 years ago
Gabor Juhos 464d384762 ip17xx: fix autonegotioation issues
SVN-Revision: 21727
14 years ago
Gabor Juhos 94c6afe09d generic: add aneg_done and update_link functions for the phy_device
SVN-Revision: 21726
14 years ago
Gabor Juhos 0cc840f158 ip17xx: Update the copyright message
Update the copyright message to reflect my changes.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21725
14 years ago
Gabor Juhos b650fecb7d ip17xx: Rename the driver to ip17xx.c
Following the big internal rename, this is the external rename.
Rename the source file to ip17xx.c and adjust Makefile and Kconfig.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21724
14 years ago
Gabor Juhos 0b84c5a1c1 ip17xx: The big rename
Recognize that the driver supports many more devices than the ip175c.

The driver itself is now called ip17xx, all generic functions have been
renamed to ip17xx_*. The model-dependent functions have prefixes ip175c_
and ip175d_.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21723
14 years ago
Gabor Juhos 2ccaef4f4a ip17xx: Keep all state locally
Instead of reading the hardware state every time we want to inspect it or
to modify it, maintain it in struct ip175c_state.

This simplifies the code significantly.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21722
14 years ago
Gabor Juhos 4511da99b9 ip17xx: Add support for IP175D
Add support for the IP175D chip. Since the register set is vastly different
from the previous models, we cannot not use the register number tables in struct
register_mappings (except for VLAN_DEFAULT_TAG_REG), so we supply a different
set of low-level functions.

Unlike with the previous models, we keep the VLAN setup in our state structure
instead of querying the hardware (it would be much harder in case of IP175D,
because the mapping between hardware and software state is not 1:1). Therefore,
get_flags() and get_state() are no-ops.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21721
14 years ago
Gabor Juhos d48ba78aa4 ip17xx: Avoid auto-negotiation
Let ip175c_config_init() initialize the link state of the PHY and set the
PHY state machine directly to the PHY_RUNNING state in order to skip the
auto-negotiation phase.

Previously, auto-negotiation on PHY 0 (switch port 0) influenced the ethernet
driver connected to the CPU port, causing all sorts of weird effects.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21720
14 years ago
Gabor Juhos a7301c57a4 ip17xx: New chip detection
Clean up get_model() and make it recognize IP175D using yet another
chip ID register. Log the detected model.

Also fix a bug in the interface between the PHY layer and our probe function,
which caused IP175A devices to be ignored.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21719
14 years ago
Gabor Juhos d577cfa397 ip17xx: Add VLAN tag field
Since IP175D uses tag-based VLANs, we need an ability to set VLAN tag
of every VLAN.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21718
14 years ago
Gabor Juhos d08093b8b3 ip17xx: Maintain state->remove_tag incrementally
So far, state->remove_tag was sometimes updated incrementally, sometimes
left to correct_vlan_state() to recalculate. Since I want to avoid use of
correct_vlan_state() for IP175D, this patch fixes the only two remaining
places which leave state->remove_tag inconsistent with state->add_tag
and it drops the recalculation.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21717
14 years ago
Gabor Juhos e04dd645f2 ip17xx: Initialize VLAN state upon reset
Let VLAN state variables be initialized not only when the enable VLAN bit
is toggled, but also upon reset.

At this point, this should be a no-op, since the driver reads the current
hardware state before doing any modifications anyway, but I plan to keep
some state locally in the subsequent patches.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21716
14 years ago
Gabor Juhos 3c213b14ed ip17xx: Introduce vlan array
Replace vlan_ports array in struct ip175c_state by an array of structures.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21715
14 years ago
Gabor Juhos 065bc60f37 ip17xx: Introduce indirection of low-level operations
This patch introduces seperation between low-level and high-level parts
of the driver. The low-level functions are now called via pointers stored
in struct ip175c_regs.

The only functional changes are:

  o  correct_vlan_state() is now called as a part of every update_state().

  o  The order of setting of MODE_REG and resetting switch ports
     has changed. (These are independent actions, so it should not matter.)

  o  ip175c_set_tagged() sets the tags via update_state() instead of writing
     directly to the registers.

  o  The same for ip175c_set_pvid().

The only gaps in this abstraction are operations on ports (get_port_speed
and friends), which access PHY registers directly.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21714
14 years ago
Gabor Juhos 09be47cf90 ip17xx: Fix use of MODE_VAL
The value written to MODE_REG in ip175c_reset() should be obviously MODE_VAL,
not RESET_VAL. Actually, this change is a NOP, because in the only case where
the MODE_REG is used, the two values are identical, but it makes the code
more readable.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21713
14 years ago
Gabor Juhos f09e3fb65b ip17xx: Fix indentation in get_state() and update_state()
Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21712
14 years ago
Gabor Juhos 7b5a77fa39 ip17xx: Fixed error handling in ip175c_set_val()
Upon error, ip175c_set_val() returned 0 instead of -EINVAL.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21711
14 years ago
Gabor Juhos b3073617a5 ip17xx: Cosmetic cleanups
Trying to unify capitalization and formatting of comments. Writing of periods
at the end of comments is however still inconsistent.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21710
14 years ago
Gabor Juhos f96f1cd16f ip17xx: Consolidate operations with PHY registers
Call mdiobus_{read,write} instead of duplicating their code.

Introduce ip_phy_write_masked(), which changes a part of a register. Will
be used later in this patch series. Please note that it does not hold any
lock between reading and writing, so it is up to the caller to serialize.

Also add DUMP_MII_IO, which enables logging of all MII accesses.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21709
14 years ago
Gabor Juhos c0c0a60718 swconfig: Fix a bug in use of SWITCH_PORT_FLAG_TAGGED
SWITCH_PORT_FLAG_TAGGED is a bit index, not a bit mask.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Patrick Horn <patrick.horn@gmail.com>

SVN-Revision: 21708
14 years ago
Alexandros C. Couloumbis cfa9a1f6d6 brcm47xx: add kernel 2.6.35 preliminary support
SVN-Revision: 21707
14 years ago
Alexandros C. Couloumbis ce6b70119c generic-2.6: fix mini_fo 2.6.35 kernel issue
SVN-Revision: 21706
14 years ago