Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for build on 5.4.+ kernels #16

Open
wants to merge 31 commits into
base: master
Choose a base branch
from

Conversation

rogerjames99
Copy link
Contributor

Fix for building on 5.4.+ kernels. SUBDIRS is no longer parsed by kBuild.

@rogerjames99
Copy link
Contributor Author

rogerjames99 commented Jul 31, 2020

Forgot to add this patch as well.
diff --git a/spi-ch341-usb.c b/spi-ch341-usb.c
index f2ef0a2..eb32262 100644
--- a/spi-ch341-usb.c
+++ b/spi-ch341-usb.c
@@ -620,7 +620,7 @@ static int ch341_spi_probe (struct ch341_device* ch341_dev)
ch341_dev->master->num_chipselect = CH341_SPI_MAX_NUM_DEVICES;
ch341_dev->master->mode_bits = SPI_MODE_3 | SPI_LSB_FIRST;
ch341_dev->master->flags = SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX;

  • ch341_dev->master->bits_per_word_mask = SPI_BIT_MASK(8);
  • ch341_dev->master->bits_per_word_mask = SPI_BPW_MASK(8);
    ch341_dev->master->transfer_one = ch341_spi_transfer_one;
    ch341_dev->master->max_speed_hz = CH341_SPI_MAX_FREQ;
    ch341_dev->master->min_speed_hz = CH341_SPI_MIN_FREQ;

@jtherin
Copy link

jtherin commented Oct 8, 2020

up!

rogerjames99 and others added 2 commits July 16, 2021 09:57
Updates to work with recent kernels (including 5.12.x)  (and other fixes)
@Leo-PL
Copy link

Leo-PL commented Dec 6, 2021

@gschorcht please cherry-pick 4e3d6e4 - this fixes build on Ubuntu 20.04 and Debian 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants