Skip to content

Commit

Permalink
enable optoe driver
Browse files Browse the repository at this point in the history
  • Loading branch information
lguohan committed Feb 13, 2018
1 parent 8d60faf commit 4d1b806
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 27 deletions.
21 changes: 21 additions & 0 deletions patch/config-optoe.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
enable CONFIG_EEPROM_OPTOE=m

From: Guohan Lu <[email protected]>


---
debian/build/build_amd64_none_amd64/.config | 1 +
1 file changed, 1 insertion(+)

diff --git a/debian/build/build_amd64_none_amd64/.config b/debian/build/build_amd64_none_amd64/.config
index 5bc6c67..0a94577 100644
--- a/debian/build/build_amd64_none_amd64/.config
+++ b/debian/build/build_amd64_none_amd64/.config
@@ -2036,6 +2036,7 @@ CONFIG_EEPROM_MAX6875=m
CONFIG_EEPROM_93CX6=m
# CONFIG_EEPROM_93XX46 is not set
CONFIG_EEPROM_SFF_8436=m
+CONFIG_EEPROM_OPTOE=m
CONFIG_CB710_CORE=m
# CONFIG_CB710_DEBUG is not set
CONFIG_CB710_DEBUG_ASSUMPTIONS=y
37 changes: 11 additions & 26 deletions patch/driver-support-optoe.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,17 @@ Subject: [PATCH] drivers/misc/eeprom: Add optoe driver (SFP/QSFP EEPROM

Signed-off-by: Don Bollinger <[email protected]>
---
debian/build/build_amd64_none_amd64/.config | 1
drivers/misc/eeprom/Kconfig | 18
drivers/misc/eeprom/Makefile | 1
drivers/misc/eeprom/optoe.c | 1126 +++++++++++++++++++++++++++
4 files changed, 1146 insertions(+)
drivers/misc/eeprom/Kconfig | 18 +
drivers/misc/eeprom/Makefile | 1
drivers/misc/eeprom/optoe.c | 1126 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 1145 insertions(+)
create mode 100644 drivers/misc/eeprom/optoe.c

diff --git a/debian/build/build_amd64_none_amd64/.config b/debian/build/build_amd64_none_amd64/.config
index ae681ac..6bd2b13 100644
--- a/debian/build/build_amd64_none_amd64/.config
+++ b/debian/build/build_amd64_none_amd64/.config
@@ -1787,6 +1787,7 @@ CONFIG_EEPROM_MAX6875=m
CONFIG_EEPROM_93CX6=m
# CONFIG_EEPROM_93XX46 is not set
CONFIG_EEPROM_SFF_8436=m
+CONFIG_EEPROM_OPTOE=m
CONFIG_CB710_CORE=m
# CONFIG_CB710_DEBUG is not set
CONFIG_CB710_DEBUG_ASSUMPTIONS=y
diff --git a/drivers/misc/eeprom/Kconfig b/drivers/misc/eeprom/Kconfig
index 484e3e1..33e4030 100644
index 9582d48..2d5ab6e 100644
--- a/drivers/misc/eeprom/Kconfig
+++ b/drivers/misc/eeprom/Kconfig
@@ -108,6 +108,24 @@ config EEPROM_SFF_8436
@@ -113,4 +113,22 @@ config EEPROM_SFF_8436
This driver can also be built as a module. If so, the module
will be called sff_8436.

Expand All @@ -56,17 +43,15 @@ index 484e3e1..33e4030 100644
+
+ If unsure, say N.
+
config EEPROM_SUNXI_SID
tristate "Allwinner sunxi security ID support"
depends on ARCH_SUNXI && SYSFS
endmenu
diff --git a/drivers/misc/eeprom/Makefile b/drivers/misc/eeprom/Makefile
index 235b5cc..2a95beb 100644
index db9097c..afcf73c 100644
--- a/drivers/misc/eeprom/Makefile
+++ b/drivers/misc/eeprom/Makefile
@@ -7,3 +7,4 @@ obj-$(CONFIG_EEPROM_93XX46) += eeprom_93xx46.o
obj-$(CONFIG_EEPROM_SUNXI_SID) += sunxi_sid.o
@@ -6,3 +6,4 @@ obj-$(CONFIG_EEPROM_93CX6) += eeprom_93cx6.o
obj-$(CONFIG_EEPROM_93XX46) += eeprom_93xx46.o
obj-$(CONFIG_EEPROM_DIGSY_MTC_CFG) += digsy_mtc_eeprom.o
obj-$(CONFIG_EEPROM_SFF_8436) += sff_8436_eeprom.o
obj-$(CONFIG_EEPROM_SFF_8436) += sff_8436_eeprom.o
+obj-$(CONFIG_EEPROM_OPTOE) += optoe.o
diff --git a/drivers/misc/eeprom/optoe.c b/drivers/misc/eeprom/optoe.c
new file mode 100644
Expand Down
3 changes: 2 additions & 1 deletion patch/series
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ driver-hwmon-max6620-update.patch
driver-hwmon-pmbus-dni_dps460.patch
driver-hwmon-pmbus-dni_dps460-update-pmbus-core.patch
driver-support-tun-config-carrier-enable.patch
driver-support-optoe.patch
bridge-add-per-port-broadcast-flood-flag.patch
config-dell-s6000.patch
config-dell-z9100.patch
config-ingrasys-s9100.patch
config-arista-7060-cx32s.patch
config-mitac-ly1200.patch
config-optoe.patch
#
# This series applies on GIT commit 1451b36b2b0d62178e42f648d8a18131af18f7d8
# Tkernel-sched-core-fix-cgroup-fork-race.patch
Expand All @@ -46,4 +48,3 @@ config-mitac-ly1200.patch
# Tlinux-3.19-mmc-sdhci-pci-enable-sdhci-doesn-t-support-hs200-qui.patch
# Trtnetlink-catch-EOPNOTSUPP-errors.patch
# Tbridge-per-port-multicast-broadcast-flood-flags.patch
# Tdriver-support-optoe.patch

0 comments on commit 4d1b806

Please sign in to comment.