projects/linux·commit bea8d77e

Merge tag 'staging-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging

bea8d77e · Linus Torvalds <[email protected]> · 2026-04-19 08:51:32 -07:00

Pull staging driver updates from Greg KH:
 "Here is the "big" set of staging driver changes for 7.1-rc1.

  Nothing major in here at all, just lots of little cleanups for the
  staging drivers, driven by new developers getting their feet wet in
  kernel development. "Largest" thing in here is the change of some of
  the octeon variable types into proper kernel ones.

  Full details are in the shortlog.

  All of these have been in linux-next for a while with no reported
  issues"

* tag 'staging-7.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (154 commits)
  staging: rtl8723bs: remove redundant & parentheses
  staging: most: dim2: replace BUG_ON() in poison_channel()
  staging: most: dim2: replace BUG_ON() in enqueue()
  staging: most: dim2: replace BUG_ON() in configure_channel()
  staging: most: dim2: replace BUG_ON() in service_done_flag()
  staging: most: dim2: replace BUG_ON() in try_start_dim_transfer()
  staging: rtl8723bs: remove unused RTL8188E antenna selection macros
  staging: rtl8723bs: remove redundant blank lines in basic_types.h
  staging: rtl8723bs: wrap complex macros with parentheses
  staging: rtl8723bs: remove unused WRITEEF/READEF byte macros
  staging: rtl8723bs: rename camelCase variable
  staging: greybus: audio: fix error message for BTN_3 button
  staging: rtl8723bs: rename variables to snake_case
  staging: rtl8723bs: fix spelling in comment
  staging: rtl8723bs: cleanup return in sdio_init()
  staging: rtl8723bs: use direct returns in sdio_dvobj_init()
  staging: rtl8723bs: remove unused arg at odm_interface.h
  greybus: raw: fix use-after-free if write is called after disconnect
  greybus: raw: fix use-after-free on cdev close
  staging: rtl8723bs: fix logical continuations in xmit_linux.c
  ...
Commit
bea8d77e45a8b77f2beca1affc9aa7ed28f39b17
Parents
99ef60d1 · bf9c95f3

Merge commit. Changes below are compared with the first parent: 99ef60d1.

Changes

91 files changed · +1719 −2251

FileStatusAddDelContent
drivers/staging/axis-fifo/axis-fifo.cmodified+19−40View file
drivers/staging/fbtft/Kconfigmodified+5−1View file
drivers/staging/fbtft/READMEmodified+7−22View file
drivers/staging/fbtft/fb_agm1264k-fl.cmodified+1−1View file
drivers/staging/fbtft/fb_hx8340bn.cmodified+0−8View file
drivers/staging/fbtft/fb_hx8353d.cmodified+0−13View file
drivers/staging/fbtft/fb_hx8357d.cmodified+0−14View file
drivers/staging/fbtft/fb_ili9163.cmodified+1−1View file
drivers/staging/fbtft/fb_ili9340.cmodified+0−12View file
drivers/staging/fbtft/fb_ili9341.cmodified+0−12View file
drivers/staging/fbtft/fb_ili9481.cmodified+0−12View file
drivers/staging/fbtft/fb_ili9486.cmodified+0−12View file
drivers/staging/fbtft/fb_s6d02a1.cmodified+0−12View file
drivers/staging/fbtft/fb_st7735r.cmodified+0−12View file
drivers/staging/fbtft/fb_tinylcd.cmodified+1−13View file
drivers/staging/fbtft/fbtft-core.cmodified+5−8View file
drivers/staging/greybus/Documentation/firmware/authenticate.cmodified+1−1View file
drivers/staging/greybus/Kconfigmodified+1−1View file
drivers/staging/greybus/arche-apb-ctrl.cmodified+5−5View file
drivers/staging/greybus/arche-platform.cmodified+5−5View file
drivers/staging/greybus/audio_codec.cmodified+1−1View file
drivers/staging/greybus/audio_manager.cmodified+0−12View file
drivers/staging/greybus/audio_manager.hmodified+0−7View file
drivers/staging/greybus/audio_manager_module.cmodified+6−7View file
drivers/staging/greybus/loopback.cmodified+9−9View file
drivers/staging/greybus/pwm.cmodified+1−1View file
drivers/staging/greybus/raw.cmodified+55−37View file
drivers/staging/greybus/sdio.cmodified+2−2View file
drivers/staging/most/Documentation/driver_usage.txtmodified+5−5View file
drivers/staging/most/dim2/dim2.cmodified+52−46View file
drivers/staging/most/dim2/hal.cmodified+2−5View file
drivers/staging/most/net/net.cmodified+0−1View file
drivers/staging/nvec/nvec.cmodified+10−11View file
drivers/staging/octeon/ethernet-rx.cmodified+1−1View file
drivers/staging/octeon/ethernet-tx.cmodified+0−2View file
drivers/staging/octeon/octeon-stubs.hmodified+807−807View file
drivers/staging/rtl8723bs/core/rtw_ap.cmodified+23−28View file
drivers/staging/rtl8723bs/core/rtw_btcoex.cmodified+0−1View file
drivers/staging/rtl8723bs/core/rtw_cmd.cmodified+61−52View file
drivers/staging/rtl8723bs/core/rtw_efuse.cmodified+3−21View file
drivers/staging/rtl8723bs/core/rtw_ieee80211.cmodified+66−67View file
drivers/staging/rtl8723bs/core/rtw_io.cmodified+7−2View file
drivers/staging/rtl8723bs/core/rtw_ioctl_set.cmodified+8−13View file
drivers/staging/rtl8723bs/core/rtw_mlme.cmodified+88−117View file
drivers/staging/rtl8723bs/core/rtw_mlme_ext.cmodified+32−31View file
drivers/staging/rtl8723bs/core/rtw_pwrctrl.cmodified+49−55View file
drivers/staging/rtl8723bs/core/rtw_recv.cmodified+73−69View file
drivers/staging/rtl8723bs/core/rtw_security.cmodified+52−58View file
drivers/staging/rtl8723bs/core/rtw_sta_mgt.cmodified+18−18View file
drivers/staging/rtl8723bs/core/rtw_wlan_util.cmodified+9−7View file
drivers/staging/rtl8723bs/core/rtw_xmit.cmodified+9−6View file
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.cmodified+15−45View file
drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.cmodified+13−23View file
drivers/staging/rtl8723bs/hal/hal_btcoex.cmodified+4−3View file
drivers/staging/rtl8723bs/hal/hal_com.cmodified+21−31View file
drivers/staging/rtl8723bs/hal/hal_com_phycfg.cmodified+15−9View file
drivers/staging/rtl8723bs/hal/odm.cmodified+2−2View file
drivers/staging/rtl8723bs/hal/odm.hmodified+1−42View file
drivers/staging/rtl8723bs/hal/odm_CfoTracking.cmodified+4−4View file
drivers/staging/rtl8723bs/hal/odm_DIG.cmodified+14−22View file
drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.cmodified+2−4View file
drivers/staging/rtl8723bs/hal/odm_interface.hmodified+6−6View file
drivers/staging/rtl8723bs/hal/odm_types.hmodified+0−4View file
drivers/staging/rtl8723bs/hal/rtl8723b_cmd.cmodified+2−0View file
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.cmodified+7−2View file
drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.cmodified+1−0View file
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.cmodified+1−0View file
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.cmodified+4−2View file
drivers/staging/rtl8723bs/hal/sdio_halinit.cmodified+7−4View file
drivers/staging/rtl8723bs/hal/sdio_ops.cmodified+3−9View file
drivers/staging/rtl8723bs/include/basic_types.hmodified+6−32View file
drivers/staging/rtl8723bs/include/hal_com.hmodified+0−2View file
drivers/staging/rtl8723bs/include/hal_data.hmodified+1−1View file
drivers/staging/rtl8723bs/include/ieee80211.hmodified+9−23View file
drivers/staging/rtl8723bs/include/ioctl_cfg80211.hmodified+0−60View file
drivers/staging/rtl8723bs/include/rtl8192c_recv.hmodified+0−4View file
drivers/staging/rtl8723bs/include/rtl8723b_hal.hmodified+0−2View file
drivers/staging/rtl8723bs/include/rtw_cmd.hmodified+1−1View file
drivers/staging/rtl8723bs/include/rtw_efuse.hmodified+0−19View file
drivers/staging/rtl8723bs/include/rtw_mlme.hmodified+19−17View file
drivers/staging/rtl8723bs/include/rtw_mlme_ext.hmodified+2−2View file
drivers/staging/rtl8723bs/include/wlan_bssdef.hmodified+2−3View file
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.cmodified+17−26View file
drivers/staging/rtl8723bs/os_dep/os_intfs.cmodified+8−10View file
drivers/staging/rtl8723bs/os_dep/sdio_intf.cmodified+10−15View file
drivers/staging/rtl8723bs/os_dep/xmit_linux.cmodified+3−6View file
drivers/staging/sm750fb/ddk750_mode.cmodified+1−1View file
drivers/staging/sm750fb/ddk750_swi2c.cmodified+1−1View file
drivers/staging/sm750fb/sm750.cmodified+12−79View file
drivers/staging/sm750fb/sm750_hw.cmodified+5−21View file
drivers/staging/vme_user/vme_user.hmodified+0−10View file

Only the first 600 diff lines are shown. Download the complete patch.

drivers/staging/axis-fifo/axis-fifo.c

View file
diff --git a/drivers/staging/axis-fifo/axis-fifo.c b/drivers/staging/axis-fifo/axis-fifo.c
index aa90b27..3aa2aa8 100644
--- a/drivers/staging/axis-fifo/axis-fifo.c
+++ b/drivers/staging/axis-fifo/axis-fifo.c
@@ -71,8 +71,8 @@ struct axis_fifo {
unsigned int rx_fifo_depth;
unsigned int tx_fifo_depth;
- int has_rx_fifo;
- int has_tx_fifo;
+ u32 has_rx_fifo;
+ u32 has_tx_fifo;
wait_queue_head_t read_queue;
struct mutex read_lock; /* lock for reading */
@@ -392,60 +392,39 @@ static int axis_fifo_parse_dt(struct axis_fifo *fifo)
ret = of_property_read_u32(node, "xlnx,axi-str-rxd-tdata-width",
&value);
- if (ret) {
- dev_err(fifo->dt_device, "missing xlnx,axi-str-rxd-tdata-width property\n");
- goto end;
- } else if (value != 32) {
- dev_err(fifo->dt_device, "xlnx,axi-str-rxd-tdata-width only supports 32 bits\n");
- ret = -EIO;
- goto end;
- }
+ if (ret)
+ return ret;
+ if (value != 32)
+ return -EINVAL;
ret = of_property_read_u32(node, "xlnx,axi-str-txd-tdata-width",
&value);
- if (ret) {
- dev_err(fifo->dt_device, "missing xlnx,axi-str-txd-tdata-width property\n");
- goto end;
- } else if (value != 32) {
- dev_err(fifo->dt_device, "xlnx,axi-str-txd-tdata-width only supports 32 bits\n");
- ret = -EIO;
- goto end;
- }
+ if (ret)
+ return ret;
+ if (value != 32)
+ return -EINVAL;
ret = of_property_read_u32(node, "xlnx,rx-fifo-depth",
&fifo->rx_fifo_depth);
- if (ret) {
- dev_err(fifo->dt_device, "missing xlnx,rx-fifo-depth property\n");
- ret = -EIO;
- goto end;
- }
+ if (ret)
+ return ret;
ret = of_property_read_u32(node, "xlnx,tx-fifo-depth",
&fifo->tx_fifo_depth);
- if (ret) {
- dev_err(fifo->dt_device, "missing xlnx,tx-fifo-depth property\n");
- ret = -EIO;
- goto end;
- }
+ if (ret)
+ return ret;
ret = of_property_read_u32(node, "xlnx,use-rx-data",
&fifo->has_rx_fifo);
- if (ret) {
- dev_err(fifo->dt_device, "missing xlnx,use-rx-data property\n");
- ret = -EIO;
- goto end;
- }
+ if (ret)
+ return ret;
ret = of_property_read_u32(node, "xlnx,use-tx-data",
&fifo->has_tx_fifo);
- if (ret) {
- dev_err(fifo->dt_device, "missing xlnx,use-tx-data property\n");
- ret = -EIO;
- goto end;
- }
+ if (ret)
+ return ret;
-end:
- return ret;
+ return 0;
}
static int axis_fifo_probe(struct platform_device *pdev)

drivers/staging/fbtft/Kconfig

View file
diff --git a/drivers/staging/fbtft/Kconfig b/drivers/staging/fbtft/Kconfig
index 578412a..9294356 100644
--- a/drivers/staging/fbtft/Kconfig
+++ b/drivers/staging/fbtft/Kconfig
@@ -86,7 +86,11 @@ config FB_TFT_PCD8544
config FB_TFT_RA8875
tristate "FB driver for the RA8875 LCD Controller"
help
- Generic Framebuffer support for RA8875
+ This enables generic framebuffer support for the RAiO RA8875
+ display controller. The controller is intended for medium size text/graphic
+ mixed displays with a resolution of up to 800x480 pixels.
+
+ Say Y if you have such a display that utilizes this controller.
config FB_TFT_S6D02A1
tristate "FB driver for the S6D02A1 LCD Controller"

drivers/staging/fbtft/README

View file
diff --git a/drivers/staging/fbtft/README b/drivers/staging/fbtft/README
index ba4c74c..91f152d 100644
--- a/drivers/staging/fbtft/README
+++ b/drivers/staging/fbtft/README
@@ -6,27 +6,12 @@ The module 'fbtft' makes writing drivers for some of these displays very easy.
Development is done on a Raspberry Pi running the Raspbian "wheezy" distribution.
-INSTALLATION
- Download kernel sources
+For new hardware support consider using DRM subsystem (see TODO).
- From Linux 3.15
- cd drivers/video/fbdev/fbtft
- git clone https://github.com/notro/fbtft.git
+NOTE:
- Add to drivers/video/fbdev/Kconfig: source "drivers/video/fbdev/fbtft/Kconfig"
- Add to drivers/video/fbdev/Makefile: obj-y += fbtft/
-
- Before Linux 3.15
- cd drivers/video
- git clone https://github.com/notro/fbtft.git
-
- Add to drivers/video/Kconfig: source "drivers/video/fbtft/Kconfig"
- Add to drivers/video/Makefile: obj-y += fbtft/
-
- Enable driver(s) in menuconfig and build the kernel
-
-
-See wiki for more information: https://github.com/notro/fbtft/wiki
-
-
-Source: https://github.com/notro/fbtft/
+The driver is in maintenance mode, only performance issue or bug fixes
+are accepted, which effectively means the patches must be tested on
+the real hardware (the patch must be accompanied with the information
+what hardware is that). The treewide changes may also be accepted as
+an exception.

drivers/staging/fbtft/fb_agm1264k-fl.c

View file
diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c
index af2dbeb..6fc8f4e 100644
--- a/drivers/staging/fbtft/fb_agm1264k-fl.c
+++ b/drivers/staging/fbtft/fb_agm1264k-fl.c
@@ -376,7 +376,7 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
/* write bitmap */
gpiod_set_value(par->RS, 1); /* RS->1 (data mode) */
- par->fbtftops.write(par, buf, len);
+ ret = par->fbtftops.write(par, buf, len);
if (ret < 0)
dev_err(par->info->device,
"write failed and returned: %d\n",

drivers/staging/fbtft/fb_hx8340bn.c

View file
diff --git a/drivers/staging/fbtft/fb_hx8340bn.c b/drivers/staging/fbtft/fb_hx8340bn.c
index 2fd7b87..ca27914 100644
--- a/drivers/staging/fbtft/fb_hx8340bn.c
+++ b/drivers/staging/fbtft/fb_hx8340bn.c
@@ -106,13 +106,6 @@ static int init_display(struct fbtft_par *par)
return 0;
}
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS, 0x00, xs, 0x00, xe);
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS, 0x00, ys, 0x00, ye);
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
static int set_var(struct fbtft_par *par)
{
/* MADCTL - Memory data access control */
@@ -207,7 +200,6 @@ static struct fbtft_display display = {
.gamma = DEFAULT_GAMMA,
.fbtftops = {
.init_display = init_display,
- .set_addr_win = set_addr_win,
.set_var = set_var,
.set_gamma = set_gamma,
},

drivers/staging/fbtft/fb_hx8353d.c

View file
diff --git a/drivers/staging/fbtft/fb_hx8353d.c b/drivers/staging/fbtft/fb_hx8353d.c
index 3e73b69..f6cd82d 100644
--- a/drivers/staging/fbtft/fb_hx8353d.c
+++ b/drivers/staging/fbtft/fb_hx8353d.c
@@ -61,18 +61,6 @@ static int init_display(struct fbtft_par *par)
return 0;
};
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- /* column address */
- write_reg(par, 0x2a, xs >> 8, xs & 0xff, xe >> 8, xe & 0xff);
-
- /* Row address */
- write_reg(par, 0x2b, ys >> 8, ys & 0xff, ye >> 8, ye & 0xff);
-
- /* memory write */
- write_reg(par, 0x2c);
-}
-
#define my BIT(7)
#define mx BIT(6)
#define mv BIT(5)
@@ -130,7 +118,6 @@ static struct fbtft_display display = {
.gamma = DEFAULT_GAMMA,
.fbtftops = {
.init_display = init_display,
- .set_addr_win = set_addr_win,
.set_var = set_var,
.set_gamma = set_gamma,
},

drivers/staging/fbtft/fb_hx8357d.c

View file
diff --git a/drivers/staging/fbtft/fb_hx8357d.c b/drivers/staging/fbtft/fb_hx8357d.c
index 94a357e..7b9f020 100644
--- a/drivers/staging/fbtft/fb_hx8357d.c
+++ b/drivers/staging/fbtft/fb_hx8357d.c
@@ -129,19 +129,6 @@ static int init_display(struct fbtft_par *par)
return 0;
}
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- xs >> 8, xs & 0xff, /* XSTART */
- xe >> 8, xe & 0xff); /* XEND */
-
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- ys >> 8, ys & 0xff, /* YSTART */
- ye >> 8, ye & 0xff); /* YEND */
-
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
#define HX8357D_MADCTL_MY 0x80
#define HX8357D_MADCTL_MX 0x40
#define HX8357D_MADCTL_MV 0x20
@@ -184,7 +171,6 @@ static struct fbtft_display display = {
.gamma_len = 14,
.fbtftops = {
.init_display = init_display,
- .set_addr_win = set_addr_win,
.set_var = set_var,
},
};

drivers/staging/fbtft/fb_ili9163.c

View file
diff --git a/drivers/staging/fbtft/fb_ili9163.c b/drivers/staging/fbtft/fb_ili9163.c
index 6582a2c..a2b5033 100644
--- a/drivers/staging/fbtft/fb_ili9163.c
+++ b/drivers/staging/fbtft/fb_ili9163.c
@@ -60,7 +60,7 @@
* configure to constrain the memory and resolution to a fixed dimension (in
* that case 128x128) but they leaved those pins configured for 128x160 so
* there was several pixel memory addressing problems.
- * I solved by setup several parameters that dinamically fix the resolution as
+ * I solved by setup several parameters that dynamically fix the resolution as
* needit so below the parameters for this display. If you have a strain or a
* correct display (can happen with chinese) you can copy those parameters and
* create setup for different displays.

drivers/staging/fbtft/fb_ili9340.c

View file
diff --git a/drivers/staging/fbtft/fb_ili9340.c b/drivers/staging/fbtft/fb_ili9340.c
index 704236b..023d8cb 100644
--- a/drivers/staging/fbtft/fb_ili9340.c
+++ b/drivers/staging/fbtft/fb_ili9340.c
@@ -78,17 +78,6 @@ static int init_display(struct fbtft_par *par)
return 0;
}
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- xs >> 8, xs & 0xFF, xe >> 8, xe & 0xFF);
-
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- ys >> 8, ys & 0xFF, ye >> 8, ye & 0xFF);
-
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
#define ILI9340_MADCTL_MV 0x20
#define ILI9340_MADCTL_MX 0x40
#define ILI9340_MADCTL_MY 0x80
@@ -122,7 +111,6 @@ static struct fbtft_display display = {
.height = HEIGHT,
.fbtftops = {
.init_display = init_display,
- .set_addr_win = set_addr_win,
.set_var = set_var,
},
};

drivers/staging/fbtft/fb_ili9341.c

View file
diff --git a/drivers/staging/fbtft/fb_ili9341.c b/drivers/staging/fbtft/fb_ili9341.c
index 47e72b8..428922d 100644
--- a/drivers/staging/fbtft/fb_ili9341.c
+++ b/drivers/staging/fbtft/fb_ili9341.c
@@ -65,17 +65,6 @@ static int init_display(struct fbtft_par *par)
return 0;
}
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- (xs >> 8) & 0xFF, xs & 0xFF, (xe >> 8) & 0xFF, xe & 0xFF);
-
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- (ys >> 8) & 0xFF, ys & 0xFF, (ye >> 8) & 0xFF, ye & 0xFF);
-
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
#define MEM_Y BIT(7) /* MY row address order */
#define MEM_X BIT(6) /* MX column address order */
#define MEM_V BIT(5) /* MV row / column exchange */
@@ -139,7 +128,6 @@ static struct fbtft_display display = {
.gamma = DEFAULT_GAMMA,
.fbtftops = {
.init_display = init_display,
- .set_addr_win = set_addr_win,
.set_var = set_var,
.set_gamma = set_gamma,
},

drivers/staging/fbtft/fb_ili9481.c

View file
diff --git a/drivers/staging/fbtft/fb_ili9481.c b/drivers/staging/fbtft/fb_ili9481.c
index 19eba08..5f31b5d 100644
--- a/drivers/staging/fbtft/fb_ili9481.c
+++ b/drivers/staging/fbtft/fb_ili9481.c
@@ -42,17 +42,6 @@ static const s16 default_init_sequence[] = {
-3
};
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- xs >> 8, xs & 0xff, xe >> 8, xe & 0xff);
-
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- ys >> 8, ys & 0xff, ye >> 8, ye & 0xff);
-
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
#define HFLIP 0x01
#define VFLIP 0x02
#define ROW_X_COL 0x20
@@ -86,7 +75,6 @@ static struct fbtft_display display = {
.height = HEIGHT,
.init_sequence = default_init_sequence,
.fbtftops = {
- .set_addr_win = set_addr_win,
.set_var = set_var,
},
};

drivers/staging/fbtft/fb_ili9486.c

View file
diff --git a/drivers/staging/fbtft/fb_ili9486.c b/drivers/staging/fbtft/fb_ili9486.c
index 66210a7..a4d699e 100644
--- a/drivers/staging/fbtft/fb_ili9486.c
+++ b/drivers/staging/fbtft/fb_ili9486.c
@@ -43,17 +43,6 @@ static const s16 default_init_sequence[] = {
-3
};
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- xs >> 8, xs & 0xFF, xe >> 8, xe & 0xFF);
-
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- ys >> 8, ys & 0xFF, ye >> 8, ye & 0xFF);
-
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
static int set_var(struct fbtft_par *par)
{
switch (par->info->var.rotate) {
@@ -86,7 +75,6 @@ static struct fbtft_display display = {
.height = HEIGHT,
.init_sequence = default_init_sequence,
.fbtftops = {
- .set_addr_win = set_addr_win,
.set_var = set_var,
},
};

drivers/staging/fbtft/fb_s6d02a1.c

View file
diff --git a/drivers/staging/fbtft/fb_s6d02a1.c b/drivers/staging/fbtft/fb_s6d02a1.c
index d3d6871..d8ddc80 100644
--- a/drivers/staging/fbtft/fb_s6d02a1.c
+++ b/drivers/staging/fbtft/fb_s6d02a1.c
@@ -97,17 +97,6 @@ static const s16 default_init_sequence[] = {
};
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- xs >> 8, xs & 0xFF, xe >> 8, xe & 0xFF);
-
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- ys >> 8, ys & 0xFF, ye >> 8, ye & 0xFF);
-
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
#define MY BIT(7)
#define MX BIT(6)
#define MV BIT(5)
@@ -149,7 +138,6 @@ static struct fbtft_display display = {
.height = 160,
.init_sequence = default_init_sequence,
.fbtftops = {
- .set_addr_win = set_addr_win,
.set_var = set_var,
},
};

drivers/staging/fbtft/fb_st7735r.c

View file
diff --git a/drivers/staging/fbtft/fb_st7735r.c b/drivers/staging/fbtft/fb_st7735r.c
index 9670a89..6d9735f 100644
--- a/drivers/staging/fbtft/fb_st7735r.c
+++ b/drivers/staging/fbtft/fb_st7735r.c
@@ -83,17 +83,6 @@ static const s16 default_init_sequence[] = {
-3
};
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- xs >> 8, xs & 0xFF, xe >> 8, xe & 0xFF);
-
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- ys >> 8, ys & 0xFF, ye >> 8, ye & 0xFF);
-
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
#define MY BIT(7)
#define MX BIT(6)
#define MV BIT(5)
@@ -168,7 +157,6 @@ static struct fbtft_display display = {
.gamma_len = 16,
.gamma = DEFAULT_GAMMA,
.fbtftops = {
- .set_addr_win = set_addr_win,
.set_var = set_var,
.set_gamma = set_gamma,
},

drivers/staging/fbtft/fb_tinylcd.c

View file
diff --git a/drivers/staging/fbtft/fb_tinylcd.c b/drivers/staging/fbtft/fb_tinylcd.c
index 9469248..afa8f1c 100644
--- a/drivers/staging/fbtft/fb_tinylcd.c
+++ b/drivers/staging/fbtft/fb_tinylcd.c
@@ -41,23 +41,12 @@ static int init_display(struct fbtft_par *par)
0x00, 0x35, 0x33, 0x00, 0x00, 0x00);
write_reg(par, MIPI_DCS_SET_PIXEL_FORMAT, 0x55);
write_reg(par, MIPI_DCS_EXIT_SLEEP_MODE);
- udelay(250);
+ fsleep(250);
write_reg(par, MIPI_DCS_SET_DISPLAY_ON);
return 0;
}
-static void set_addr_win(struct fbtft_par *par, int xs, int ys, int xe, int ye)
-{
- write_reg(par, MIPI_DCS_SET_COLUMN_ADDRESS,
- xs >> 8, xs & 0xFF, xe >> 8, xe & 0xFF);
-
- write_reg(par, MIPI_DCS_SET_PAGE_ADDRESS,
- ys >> 8, ys & 0xFF, ye >> 8, ye & 0xFF);
-
- write_reg(par, MIPI_DCS_WRITE_MEMORY_START);
-}
-
static int set_var(struct fbtft_par *par)
{
switch (par->info->var.rotate) {
@@ -88,7 +77,6 @@ static struct fbtft_display display = {
.height = HEIGHT,
.fbtftops = {
.init_display = init_display,
- .set_addr_win = set_addr_win,
.set_var = set_var,
},
};

drivers/staging/fbtft/fbtft-core.c

View file
diff --git a/drivers/staging/fbtft/fbtft-core.c b/drivers/staging/fbtft/fbtft-core.c
index f427c09..3da42c8 100644
--- a/drivers/staging/fbtft/fbtft-core.c
+++ b/drivers/staging/fbtft/fbtft-core.c
@@ -300,12 +300,6 @@ static void fbtft_mkdirty(struct fb_info *info, int y, int height)
struct fbtft_par *par = info->par;
struct fb_deferred_io *fbdefio = info->fbdefio;
- /* special case, needed ? */
- if (y == -1) {
- y = 0;
- height = info->var.yres;
- }
-
/* Mark display lines/area as dirty */
spin_lock(&par->dirty_lock);
if (y < par->dirty_lines_start)
@@ -413,9 +407,12 @@ static int fbtft_fb_blank(int blank, struct fb_info *info)
static void fbtft_ops_damage_range(struct fb_info *info, off_t off, size_t len)
{
struct fbtft_par *par = info->par;
+ u32 start, end;
+
+ start = off / info->fix.line_length;
+ end = (off + len - 1) / info->fix.line_length;
- /* TODO: only mark changed area update all for now */
- par->fbtftops.mkdirty(info, -1, 0);
+ par->fbtftops.mkdirty(info, start, end - start + 1);
}
static void fbtft_ops_damage_area(struct fb_info *info, u32 x, u32 y, u32 width, u32 height)

drivers/staging/greybus/Documentation/firmware/authenticate.c

View file
diff --git a/drivers/staging/greybus/Documentation/firmware/authenticate.c b/drivers/staging/greybus/Documentation/firmware/authenticate.c
index 3d2c6f8..0ef88b7 100644
--- a/drivers/staging/greybus/Documentation/firmware/authenticate.c
+++ b/drivers/staging/greybus/Documentation/firmware/authenticate.c
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
goto close_fd;
}
- printf("UID received: 0x%llx\n", *(unsigned long long int *)(uid.uid));
+ printf("UID received: 0x%llx\n", *(unsigned long long *)(uid.uid));
/* Get certificate */
printf("Get IMS certificate\n");

drivers/staging/greybus/Kconfig

View file
diff --git a/drivers/staging/greybus/Kconfig b/drivers/staging/greybus/Kconfig
index 1e745a8..7635f3e 100644
--- a/drivers/staging/greybus/Kconfig
+++ b/drivers/staging/greybus/Kconfig
@@ -123,7 +123,7 @@ menuconfig GREYBUS_BRIDGED_PHY
help
Select this option to pick from a variety of Greybus Bridged
PHY class drivers. These drivers emulate a number of
- different "traditional" busses by tunneling them over Greybus.
+ different "traditional" buses by tunneling them over Greybus.
Examples of this include serial, SPI, USB, and others.
To compile this code as a module, chose M here: the module

drivers/staging/greybus/arche-apb-ctrl.c

View file
diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c
index 33f26a6..19a6e59 100644
--- a/drivers/staging/greybus/arche-apb-ctrl.c
+++ b/drivers/staging/greybus/arche-apb-ctrl.c
@@ -300,16 +300,16 @@ static ssize_t state_show(struct device *dev,
switch (apb->state) {
case ARCHE_PLATFORM_STATE_OFF:
- return sprintf(buf, "off%s\n",
+ return sysfs_emit(buf, "off%s\n",
apb->init_disabled ? ",disabled" : "");
case ARCHE_PLATFORM_STATE_ACTIVE:
- return sprintf(buf, "active\n");
+ return sysfs_emit(buf, "active\n");
case ARCHE_PLATFORM_STATE_STANDBY:
- return sprintf(buf, "standby\n");
+ return sysfs_emit(buf, "standby\n");
case ARCHE_PLATFORM_STATE_FW_FLASHING:
- return sprintf(buf, "fw_flashing\n");
+ return sysfs_emit(buf, "fw_flashing\n");
default:
- return sprintf(buf, "unknown state\n");
+ return sysfs_emit(buf, "unknown state\n");
}
}

drivers/staging/greybus/arche-platform.c

View file
diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c
index f669a7e..de5de59 100644
--- a/drivers/staging/greybus/arche-platform.c
+++ b/drivers/staging/greybus/arche-platform.c
@@ -374,15 +374,15 @@ static ssize_t state_show(struct device *dev,
switch (arche_pdata->state) {
case ARCHE_PLATFORM_STATE_OFF:
- return sprintf(buf, "off\n");
+ return sysfs_emit(buf, "off\n");
case ARCHE_PLATFORM_STATE_ACTIVE:
- return sprintf(buf, "active\n");
+ return sysfs_emit(buf, "active\n");
case ARCHE_PLATFORM_STATE_STANDBY:
- return sprintf(buf, "standby\n");
+ return sysfs_emit(buf, "standby\n");
case ARCHE_PLATFORM_STATE_FW_FLASHING:
- return sprintf(buf, "fw_flashing\n");
+ return sysfs_emit(buf, "fw_flashing\n");
default:
- return sprintf(buf, "unknown state\n");
+ return sysfs_emit(buf, "unknown state\n");
}
}

drivers/staging/greybus/audio_codec.c

View file
diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c
index 444c53b..720aa75 100644
--- a/drivers/staging/greybus/audio_codec.c
+++ b/drivers/staging/greybus/audio_codec.c
@@ -781,7 +781,7 @@ static int gbaudio_init_jack(struct gbaudio_module_info *module,
ret = snd_jack_set_key(module->button.jack.jack, SND_JACK_BTN_3,
KEY_VOLUMEDOWN);
if (ret) {
- dev_err(module->dev, "Failed to set BTN_0\n");
+ dev_err(module->dev, "Failed to set BTN_3\n");

This diff is incomplete. Download the complete patch.

drivers/staging/greybus/audio_manager.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/greybus/audio_manager.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/greybus/audio_manager_module.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/greybus/loopback.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/greybus/pwm.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/greybus/raw.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/greybus/sdio.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/most/Documentation/driver_usage.txt

View file

This diff is incomplete. Download the complete patch.

drivers/staging/most/dim2/dim2.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/most/dim2/hal.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/most/net/net.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/nvec/nvec.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/octeon/ethernet-rx.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/octeon/ethernet-tx.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/octeon/octeon-stubs.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_ap.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_btcoex.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_cmd.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_efuse.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_ieee80211.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_io.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_ioctl_set.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_mlme.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_pwrctrl.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_recv.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_security.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_sta_mgt.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_wlan_util.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/core/rtw_xmit.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/HalPhyRf_8723B.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/hal_btcoex.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/hal_com.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/hal_com_phycfg.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/odm.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/odm.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/odm_CfoTracking.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/odm_DIG.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/odm_interface.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/odm_types.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/rtl8723b_phycfg.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/sdio_halinit.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/hal/sdio_ops.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/basic_types.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/hal_com.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/hal_data.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/ieee80211.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/ioctl_cfg80211.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/rtl8192c_recv.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/rtl8723b_hal.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/rtw_cmd.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/rtw_efuse.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/rtw_mlme.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/rtw_mlme_ext.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/include/wlan_bssdef.h

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/os_dep/os_intfs.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/os_dep/sdio_intf.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/rtl8723bs/os_dep/xmit_linux.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/sm750fb/ddk750_mode.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/sm750fb/ddk750_swi2c.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/sm750fb/sm750.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/sm750fb/sm750_hw.c

View file

This diff is incomplete. Download the complete patch.

drivers/staging/vme_user/vme_user.h

View file

This diff is incomplete. Download the complete patch.