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

Add compatibility to upboard/upsquared to blokas Pisound raspberry hat. #664

Open
wants to merge 3,475 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
3475 commits
Select commit Hold shift + click to select a range
8af0937
usb: dwc3: omap: fix race of pm runtime with irq handler in probe
grygoriyS Dec 12, 2016
e360353
ARM64: zynqmp: Fix W=1 dtc 1.4 warnings
Nov 15, 2016
3209f3f
ARM64: zynqmp: Fix i2c node's compatible string
mfischer Dec 22, 2016
69f3df1
perf probe: Fix to get correct modname from elf header
mhiramat Jan 2, 2017
ebd4642
ARM: s3c2410_defconfig: Fix invalid values for NF_CT_PROTO_*
krzk Dec 29, 2016
a15a3d9
ACPI / scan: Prefer devices without _HID/_CID for _ADR matching
rafaeljw Dec 30, 2016
92d6a81
usb: gadget: Fix copy/pasted error message
dlech Jan 2, 2017
78418b8
Btrfs: use down_read_nested to make lockdep silent
Dec 1, 2016
6731212
Btrfs: fix lockdep warning about log_mutex
Dec 1, 2016
49fc90b
benet: stricter vxlan offloading check in be_features_check
qsn Jan 3, 2017
f76ddff
Btrfs: adjust outstanding_extents counter properly when dio write is …
Dec 23, 2016
704a6d7
Xen: ARM: Zero reserved fields of xatp before making hypervisor call
Dec 28, 2016
ab5e7df
tools lib traceevent: Fix prev/next_prio for deadline tasks
Jan 3, 2017
0b86564
xfrm: Don't use sk_family for socket policy lookups
klassert Feb 14, 2017
d8086c3
perf tools: Install tools/lib/traceevent plugins with install-bin
acmel Jan 3, 2017
ddc0ec3
perf symbols: Robustify reading of build-id from sysfs
acmel Jan 3, 2017
a417ea5
video: fbdev: cobalt_lcdfb: Handle return NULL error from devm_ioremap
ArvindYadavCs Dec 13, 2016
812a7df
vfio-pci: Handle error from pci_iomap
ArvindYadavCs Jan 3, 2017
e95ec35
arm64: mm: fix show_pte KERN_CONT fallout
Jan 3, 2017
a752672
nvmem: imx-ocotp: Fix wrong register size
dnltz Jan 4, 2017
2548d89
net: usb: asix_devices: add .reset_resume for USB PM
Jan 3, 2017
2909c9c
ASoC: fsl_ssi: set fifo watermark to more reliable value
ccrome Jan 3, 2017
f10e206
sh_eth: enable RX descriptor word 0 shift on SH7734
Jan 4, 2017
301681d
ARCv2: IRQ: Call entry/exit functions for chained handlers in MCIP
kolerov Dec 28, 2016
12dac5f
ALSA: usb-audio: test EP_FLAG_RUNNING at urb completion
10ne1 Jan 4, 2017
efa2252
x86/platform/intel-mid: Rename 'spidev' to 'mrfld_spidev'
andy-shev Jan 2, 2017
b899142
perf/x86: Set pmu->module in Intel PMU modules
Dec 23, 2016
3f0dfa1
ASoC: Intel: bytcr-rt5640: fix settings in internal clock mode
plbossart Jan 4, 2017
3b6f4e2
HID: ignore Petzl USB headlamp
Jan 5, 2017
2803ea7
scsi: fnic: Avoid sending reset to firmware when another reset is in …
Dec 14, 2016
5f70407
scsi: snic: Return error code on memory allocation failure
Dec 21, 2016
23ab274
scsi: bfa: Increase requested firmware version to 3.2.5.1
gobenji Dec 24, 2016
27ef028
ASoC: Intel: Skylake: Release FW ctx in cleanup
kpjeeja Jan 2, 2017
007dffc
ASoC: dpcm: Avoid putting stream state to STOP when FE stream is paused
Jan 1, 2017
db397d9
Linux 4.9.41
gregkh Aug 7, 2017
5d23e4f
parisc: Handle vma's whose context is not current in flush_cache_range
danglin44 Jul 30, 2017
4a99eac
cgroup: create dfl_root files on subsys registration
htejun Jul 18, 2017
445ee6c
cgroup: fix error return value from cgroup_subtree_control()
htejun Jul 23, 2017
804b1a9
libata: array underflow in ata_find_dev()
Jul 19, 2017
61a0adb
workqueue: restore WQ_UNBOUND/max_active==1 to be ordered
htejun Jul 18, 2017
de8c332
iwlwifi: dvm: prevent an out of bounds access
egrumbach Jun 8, 2017
f5214eb
brcmfmac: fix memleak due to calling brcmf_sdiod_sgtable_alloc() twice
Jul 26, 2017
f7d3e54
NFSv4: Fix EXCHANGE_ID corrupt verifier issue
trondmypd Aug 1, 2017
347be00
mmc: sdhci-of-at91: force card detect value for non removable devices
ldesroches Jul 26, 2017
1f32e67
device property: Make dev_fwnode() public
Mar 28, 2017
943281e
mmc: core: Fix access to HS400-ES devices
groeck Mar 1, 2017
5a1eef7
mm, mprotect: flush TLB if potentially racing with a parallel reclaim…
Aug 2, 2017
45a636e
cpuset: fix a deadlock due to incomplete patching of cpusets_enabled()
dimaz-waymo Aug 2, 2017
c531a24
ALSA: hda - Fix speaker output from VAIO VPCL14M1R
STrusov Aug 2, 2017
69f15ff
drm/amdgpu: Fix undue fallthroughs in golden registers initialization
jdelvare Jul 30, 2017
650c763
ASoC: do not close shared backend dailink
Jul 15, 2017
0c609d3
KVM: async_pf: make rcu irq exit if not triggered from idle task
Wanpeng-Li Aug 1, 2017
7b95b74
mm/page_alloc: Remove kernel address exposure in free_reserved_area()
jpoimboe Oct 25, 2016
9ef8b23
timers: Fix overflow in get_next_timer_interrupt
matijaGP Aug 1, 2017
8164692
powerpc/tm: Fix saving of TM SPRs in core dump
Jul 19, 2017
03ebdd1
powerpc/64: Fix __check_irq_replay missing decrementer interrupt
npiggin Aug 1, 2017
be5c6ef
iommu/amd: Enable ga_log_intr when enabling guest_mode
ssuthiku-amd Jul 6, 2017
b680e22
gpiolib: skip unwanted events, don't convert them to opposite edge
brgl Jul 3, 2017
0814c3a
ext4: fix SEEK_HOLE/SEEK_DATA for blocksize < pagesize
jankara Aug 5, 2017
12353a0
ext4: fix overflow caused by missing cast in ext4_resize_fs()
Aug 6, 2017
ff603e0
ARM: dts: armada-38x: Fix irq type for pca955
gclement Jul 12, 2017
4f35448
ARM: dts: tango4: Request RGMII RX and TX clock delays
Jul 28, 2017
733d7ab
media: platform: davinci: return -EINVAL for VPFE_CMD_S_CCDC_RAW_PARA…
prabhakarlad Jul 20, 2017
bdabf09
iscsi-target: Fix initial login PDU asynchronous socket close OOPs
May 25, 2017
baf4ad0
mmc: dw_mmc: Use device_property_read instead of of_property_read
dwoods2 May 26, 2017
e92add2
mmc: core: Use device_property_read instead of of_property_read
dwoods2 May 26, 2017
c14e327
media: lirc: LIRC_GET_REC_RESOLUTION should return microseconds
seanyoung Jul 7, 2017
0f442c5
f2fs: sanity check checkpoint segno and blkoff
May 15, 2017
3a63729
Btrfs: fix early ENOSPC due to delalloc
osandov Jul 20, 2017
12d17d7
saa7164: fix double fetch PCIe access condition
stoth68000 Jun 6, 2017
73520d3
tcp_bbr: cut pacing rate only if filled pipe
nealcardwell Jul 14, 2017
ec78968
tcp_bbr: introduce bbr_bw_to_pacing_rate() helper
nealcardwell Jul 14, 2017
0c0ede3
tcp_bbr: introduce bbr_init_pacing_rate_from_rtt() helper
nealcardwell Jul 14, 2017
2e6b237
tcp_bbr: remove sk_pacing_rate=0 transient during init
nealcardwell Jul 14, 2017
0cd73c4
tcp_bbr: init pacing rate on first RTT sample
nealcardwell Jul 14, 2017
a62bc8d
ipv4: ipv6: initialize treq->txhash in cookie_v[46]_check()
ramosian-glider Jul 17, 2017
0b83249
net: Zero terminate ifr_name in dev_ifname().
davem330 Jul 19, 2017
4a2ffe1
ipv6: avoid overflow of offset in ip6_find_1stfragopt
qsn Jul 19, 2017
5a2d511
net: dsa: b53: Add missing ARL entries for BCM53125
ffainelli Jul 20, 2017
0c47f11
ipv4: initialize fib_trie prior to register_netdev_notifier call.
Jul 19, 2017
cda2bc9
rtnetlink: allocate more memory for dev_set_mac_address()
congwang Jul 20, 2017
59e76ed
mcs7780: Fix initialization when CONFIG_VMAP_STACK is enabled
thomasjfox Jul 22, 2017
d53ff38
openvswitch: fix potential out of bound access in parse_ct
Jul 23, 2017
47f3bf6
packet: fix use-after-free in prb_retire_rx_blk_timer_expired()
congwang Jul 24, 2017
23a91c8
ipv6: Don't increase IPSTATS_MIB_FRAGFAILS twice in ip6_fragment()
sbrivio-rh Jul 24, 2017
c0c8688
net: ethernet: nb8800: Handle all 4 RGMII modes identically
Jul 25, 2017
9ffa672
dccp: fix a memleak that dccp_ipv6 doesn't put reqsk properly
lxin Jul 26, 2017
4d938b6
dccp: fix a memleak that dccp_ipv4 doesn't put reqsk properly
lxin Jul 26, 2017
bb21d2e
dccp: fix a memleak for dccp_feat_init err process
lxin Jul 26, 2017
cc6f148
sctp: don't dereference ptr before leaving _sctp_walk_{params, errors}()
ramosian-glider Jul 14, 2017
df32d08
sctp: fix the check for _sctp_walk_params and _sctp_walk_errors
lxin Jul 26, 2017
fca84d6
net/mlx5: Consider tx_enabled in all modes on remap
Jul 2, 2017
d19d0ac
net/mlx5: Fix command bad flow on command entry allocation failure
Jun 25, 2017
d704979
net/mlx5e: Fix outer_header_zero() check size
ilantayari Jul 5, 2017
862ade9
net/mlx5e: Fix wrong delay calculation for overflow check scheduling
Jul 12, 2017
33e25b2
net/mlx5e: Schedule overflow check work to mlx5e workqueue
Jul 12, 2017
38e71ea
net: phy: Correctly process PHY_HALTED in phy_stop_machine()
ffainelli Jul 28, 2017
816843a
xen-netback: correctly schedule rate-limited queues
Jun 21, 2017
bfafa56
sparc64: Measure receiver forward progress to avoid send mondo timeout
jchu314atgithub Jul 11, 2017
b9d68cd
sparc64: Fix exception handling in UltraSPARC-III memcpy.
davem330 Aug 4, 2017
b871452
wext: handle NULL extra data in iwe_stream_add_point better
arndb Jan 11, 2017
2d4fef7
sh_eth: fix EESIPR values for SH77{34|63}
Jan 4, 2017
bfe384e
sh_eth: R8A7740 supports packet shecksumming
Jan 4, 2017
5f7eeee
net: phy: dp83867: fix irq generation
grygoriyS Jan 5, 2017
1042bd4
tg3: Fix race condition in tg3_get_stats64().
Jan 6, 2017
f897e9a
x86/boot: Add missing declaration of string functions
Jan 7, 2017
c77512d
spi: spi-axi: Free resources on error path
tititiou36 Jan 9, 2017
2e2a390
ASoC: rt5645: set sel_i2s_pre_div1 to 2
Dec 27, 2016
9acfb31
netfilter: use fwmark_reflect in nf_send_reset
pespin Jan 6, 2017
0bbbbae
phy state machine: failsafe leave invalid RUNNING state
zefir-kurtisi Jan 6, 2017
ee96797
ipv4: make tcp_notsent_lowat sysctl knob behave as true unsigned int
Snorch Jan 9, 2017
99eb27d
clk/samsung: exynos542x: mark some clocks as critical
mszyprow Dec 22, 2016
2a60965
scsi: qla2xxx: Get mutex lock before checking optrom_state
mpg-rh Dec 24, 2016
61cf0af
drm/virtio: fix framebuffer sparse warning
kraxel Nov 28, 2016
1e9e717
ARM: dts: sun8i: Support DTB build for NanoPi M1
woogyom Dec 12, 2016
984922f
ARM: dts: sunxi: Change node name for pwrseq pin on Olinuxino-lime2-emmc
evadot Dec 14, 2016
44d5283
iw_cxgb4: do not send RX_DATA_ACK CPLs after close/abort
Dec 22, 2016
952d07a
nbd: blk_mq_init_queue returns an error code on failure, not NULL
JeffMoyer Jan 9, 2017
e6d53f5
virtio_blk: fix panic in initialization error path
osandov Jan 9, 2017
bebbe84
ARM: 8632/1: ftrace: fix syscall name matching
vwax Nov 23, 2016
c736011
mm, slab: make sure that KMALLOC_MAX_SIZE will fit into MAX_ORDER
Jan 11, 2017
d12824c
lib/Kconfig.debug: fix frv build failure
sudipm-mukherjee Jan 11, 2017
916a05b
signal: protect SIGNAL_UNKILLABLE from unintentional clearing.
jamieiles Jan 11, 2017
22cccef
mm: don't dereference struct page fields of invalid pages
Jan 11, 2017
a69f0d5
net/mlx5: E-Switch, Re-enable RoCE on mode change only after FDB destroy
ogerlitz Jan 15, 2017
f102bb7
ipv4: Should use consistent conditional judgement for ip fragment in …
Dec 12, 2016
ef09c9f
net: account for current skb length when deciding about UFO
mkubecek Jun 19, 2017
c3c9471
net: phy: Fix PHY unbind crash
ffainelli Feb 18, 2017
f9636c9
workqueue: implicit ordered attribute should be overridable
htejun Jul 23, 2017
4c666b0
Linux 4.9.42
gregkh Aug 11, 2017
3b25bfc
ppp: Fix false xmit recursion detect with two ppp devices
gfreewind Jul 17, 2017
6ec6ec3
ppp: fix xmit recursion detection on ppp channels
Aug 8, 2017
3914a7e
tcp: avoid setting cwnd to invalid ssthresh after cwnd reduction states
yuchungcheng Aug 1, 2017
05046af
net: fix keepalive code vs TCP_FASTOPEN_CONNECT
Aug 3, 2017
1b582a2
bpf, s390: fix jit branch offset related to ldimm64
borkmann Aug 4, 2017
35d9014
net/mlx4_en: don't set CHECKSUM_COMPLETE on SCTP packets
dcaratti Aug 3, 2017
e392e30
net: sched: set xt_tgchk_param par.nft_compat as 0 in ipt_init_target
lxin Aug 9, 2017
87fdcfe
tcp: fastopen: tcp_connect() must refresh the route
Aug 8, 2017
69ffc96
net: avoid skb_warn_bad_offload false positives on UFO
wdebruij Aug 8, 2017
f628c9d
igmp: Fix regression caused by igmp sysctl namespace code.
lorddoskias Aug 9, 2017
e584135
packet: fix tp_reserve race in packet_set_ring
wdebruij Aug 10, 2017
53eed8a
revert "net: account for current skb length when deciding about UFO"
gregkh Aug 11, 2017
4688f04
revert "ipv4: Should use consistent conditional judgement for ip frag…
gregkh Aug 11, 2017
33dc6a6
udp: consistently apply ufo or fragmentation
wdebruij Aug 10, 2017
6309eb7
sparc64: Prevent perf from running during super critical sections
Jul 17, 2017
3f0075c
KVM: arm/arm64: Handle hva aging while destroying the vm
Jul 5, 2017
1166e3e
Revert "ARM: dts: sun8i: Support DTB build for NanoPi M1"
gregkh Aug 12, 2017
6da35f4
Linux 4.9.43
gregkh Aug 13, 2017
b56cd77
mm: ratelimit PFNs busy info message
Aug 10, 2017
e228691
mm: fix list corruptions on shmem shrinklist
congwang Aug 10, 2017
0041042
futex: Remove unnecessary warning from get_futex_key
Aug 9, 2017
03973c5
xtensa: fix cache aliasing handling code for WT cache
jcmvbkbc Jul 29, 2017
a3ab0f0
xtensa: mm/cache: add missing EXPORT_SYMBOLs
jcmvbkbc Aug 1, 2017
a311810
xtensa: don't limit csum_partial export by CONFIG_NET
jcmvbkbc Aug 1, 2017
ced271b
mtd: nand: Fix timing setup for NANDs that do not support SET FEATURES
Jul 31, 2017
e6a0599
iscsi-target: fix memory leak in iscsit_setup_text_cmd()
Jul 23, 2017
b51a716
iscsi-target: Fix iscsi_np reset hung task during parallel delete
Aug 5, 2017
1da30c2
target: Fix node_acl demo-mode + uncached dynamic shutdown regression
Aug 6, 2017
227559e
fuse: initialize the flock flag in fuse_file on allocation
j00ru Jun 7, 2017
160c365
nand: fix wrong default oob layout for small pages using soft ecc
miquelraynal Jul 5, 2017
0a205d8
mmc: mmc: correct the logic for setting HS400ES signal voltage
Aug 8, 2017
00f3c2a
nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays
westonandrosadamson Aug 1, 2017
4381e2c
drm/etnaviv: Fix off-by-one error in reloc checking
laanwj Jul 25, 2017
2b3bf20
drm/i915: Fix out-of-bounds array access in bdw_load_gamma_lut
mlankhorst Jul 24, 2017
e27f58c
USB: serial: option: add D-Link DWM-222 device ID
marcan Aug 1, 2017
5665164
USB: serial: cp210x: add support for Qivicon USB ZigBee dongle
t2000 Jun 30, 2017
4fd8c36
USB: serial: pl2303: add new ATEN device id
gregkh Aug 10, 2017
821ccbe
usb: musb: fix tx fifo flush handling again
liubiin Jul 25, 2017
199a3f2
USB: hcd: Mark secondary HCD as dead if the primary one died
rafaeljw Jul 25, 2017
c534739
staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read
arndb Jul 14, 2017
1ca3869
iio: accel: bmc150: Always restore device to normal mode after suspen…
jwrdegoede Jul 13, 2017
bbae082
iio: light: tsl2563: use correct event code
mita Jun 20, 2017
b189f8e
staging: comedi: comedi_fops: do not call blocking ops when !TASK_RUN…
ian-abbott Jul 28, 2017
a09ecc9
uas: Add US_FL_IGNORE_RESIDUE for Initio Corporation INIC-3069
alanswanson Jul 26, 2017
2db03a7
usb: gadget: udc: renesas_usb3: Fix usb_gadget_giveback_request() cal…
shimoday Aug 2, 2017
7f737f1
usb: renesas_usbhs: Fix UGCTRL2 value for R-Car Gen3
shimoday Aug 2, 2017
7c2beb1
USB: Check for dropped connection before switching to full speed
AlanStern Aug 1, 2017
42d65cc
usb: core: unlink urbs from the tail of the endpoint's urb_list
liubiin Jul 25, 2017
f4bbed5
usb: quirks: Add no-lpm quirk for Moshi USB to Ethernet Adapter
khfeng Aug 8, 2017
4cae4a2
usb:xhci:Add quirk for Certain failing HP keyboard on reset after resume
Aug 4, 2017
eda1b3d
iio: adc: vf610_adc: Fix VALT selection value for REFSEL bits
Jul 6, 2017
a68978b
pnfs/blocklayout: require 64-bit sector_t
Aug 5, 2017
7b6fff6
pinctrl: sunxi: add a missing function of A10/A20 pinctrl driver
Icenowy Jul 22, 2017
877fe62
pinctrl: intel: merrifield: Correct UART pin lists
andy-shev Aug 4, 2017
f642d29
pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD11
masahir0y Jun 14, 2017
8495ab6
pinctrl: uniphier: fix WARN_ON() of pingroups dump on LD20
masahir0y Jun 14, 2017
8cbc0b4
pinctrl: samsung: Remove bogus irq_[un]mask from resource management
KAGA-KOKO Jun 29, 2017
5e5a510
pinctrl: meson-gxbb: Add missing GPIODV_18 pin entry
superna9999 May 23, 2017
eea1ec0
MIPS: DEC: Fix an int-handler.S CPU_DADDI_WORKAROUNDS regression
Jul 30, 2017
a97a16f
Linux 4.9.44
gregkh Aug 16, 2017
5170d21
netfilter: nf_ct_ext: fix possible panic after nf_ct_extend_unregister
Mar 25, 2017
adcfbb2
audit: Fix use after free in audit_remove_watch_rule()
jankara Aug 15, 2017
93f5a03
parisc: pci memory bar assignment fails with 64bit kernels on dino/cujo
tsbogend Aug 12, 2017
24e7f54
crypto: ixp4xx - Fix error handling path in 'aead_perform()'
herbertx Aug 2, 2017
c3e8a12
crypto: x86/sha1 - Fix reads beyond the number of blocks passed
Aug 2, 2017
5dd141e
Input: elan_i2c - add ELAN0608 to the ACPI table
khfeng Aug 15, 2017
3f72921
Input: elan_i2c - Add antoher Lenovo ACPI ID for upcoming Lenovo NB
Aug 15, 2017
bafb25c
ALSA: seq: 2nd attempt at fixing race creating a queue
danielmentzgoogle Aug 14, 2017
f39f086
ALSA: usb-audio: Apply sample rate quirk to Sennheiser headset
tiwai Aug 14, 2017
d3e6e59
ALSA: usb-audio: Add mute TLV for playback volumes on C-Media devices
tiwai Aug 16, 2017
87395ee
mm: discard memblock data later
Aug 18, 2017
59ee25d
mm: fix double mmap_sem unlock on MMF_UNSTABLE enforced SIGBUS
Aug 18, 2017
91105f2
mm/mempolicy: fix use after free when calling get_mempolicy
xiongzhongjiang Aug 18, 2017
1f2347a
mm: revert x86_64 and arm64 ELF_ET_DYN_BASE base changes
kees Aug 18, 2017
6c7f375
xen: fix bio vec merging
royger Jul 18, 2017
d8c20af
blk-mq-pci: add a fallback when pci_irq_get_affinity returns NULL
Aug 17, 2017
7672f11
powerpc: Fix VSX enabling/flushing to also test MSR_FP and MSR_VEC
ozbenh Aug 16, 2017
1581d70
xen-blkfront: use a right index when checking requests
kamatam9 Aug 9, 2017
10d5bf2
x86/asm/64: Clear AC on NMI entries
amluto Aug 8, 2017
665d200
irqchip/atmel-aic: Fix unbalanced of_node_put() in aic_common_irq_fix…
Jul 4, 2017
4691f1c
irqchip/atmel-aic: Fix unbalanced refcount in aic_common_rtc_irq_fixup()
Jul 4, 2017
762ac49
genirq: Restore trigger settings in irq_modify_status()
Aug 18, 2017
f9497d5
genirq/ipi: Fixup checks against nr_cpu_ids
Aug 19, 2017
61332dc
Sanitize 'move_pages()' permission checks
torvalds Aug 20, 2017
322cd32
pids: make task_tgid_nr_ns() safe
oleg-nesterov Aug 21, 2017
edfe57b
usb: optimize acpi companion search for usb port devices
matnyman Jun 2, 2017
083d423
usb: qmi_wwan: add D-Link DWM-222 device ID
marcan Aug 1, 2017
4b904b2
Linux 4.9.45
gregkh Aug 25, 2017
0bebcbb
config: add upboard defconfig
jbeta Jul 3, 2017
427069b
drm/i915: Add headers for non-HDAudio HDMI interface
plbossart Mar 1, 2016
f1213bf
drm/i915: changes for non-HDAudio HDMI interface
plbossart Mar 1, 2016
ee1b908
drm/i915: power-related changes non-HDAudio HDMI interface
plbossart Mar 1, 2016
470804c
drm/i915: Add API code for non-HDAudio HDMI interface
plbossart Mar 3, 2016
da293fb
drm/i915: enable non-HDAudio HDMI interface Makefile
plbossart Mar 1, 2016
3828172
ALSA: Intel: Atom: add Atom non-HDAudio HDMI interface
plbossart Mar 3, 2016
c9158c0
add dependency on PM_RUNTIME
plbossart Feb 21, 2016
3da3d23
hdmi_audio: Improve position reporting
Aug 21, 2015
b69d9a0
hdmi_audio: Fixup some monitor
Aug 21, 2015
1b48705
hdmi_audio: Fix mishandling of AUD_HDMI_STATUS_v2 register.
toyoabe Mar 3, 2016
1288e5d
Create a platform device for hdmi audio driver and allocate full reso…
jeromean Apr 1, 2016
991f580
hdmi_audio: fix GCC compilation issues with inline functions
plbossart Oct 13, 2016
ee248c6
config: enable CHT HDMI audio on upboard_defconfig
jbeta Jul 13, 2017
ee4ed86
regulator: fixed: add support for ACPI interface
LuBaolu Jun 2, 2016
0351b25
usb: mux: add generic code for dual role port mux
LuBaolu Jun 2, 2016
9a8151c
usb: mux: add driver for Intel gpio controlled port mux
LuBaolu Jun 2, 2016
2fe798b
usb: mux: add driver for Intel drcfg controlled port mux
LuBaolu Jun 2, 2016
93f5681
mfd: intel_vuport: Add Intel virtual USB port MFD Driver
LuBaolu Jun 2, 2016
b8b3339
usb: pci-quirks: add Intel USB drcfg mux device
LuBaolu Jun 2, 2016
ff276f3
MAINTAINERS: add maintainer entry for Intel USB dual role mux drivers
LuBaolu Jun 2, 2016
2eb4652
config: add Intel USB Dual Role cfg reg support
jbeta Jul 19, 2017
93c7d9e
i2c: designware-platdrv: add ACPI method query to get default bus speed
Aug 17, 2017
94b8e67
disable RTS override on LPSS UART with Auto Flow Control
Dan-Lightsource Mar 15, 2017
431736a
serial: 8250_dw: add quirk to disable DMA on Cherry Trail SoC
Dan-Lightsource Mar 17, 2017
9e9c3b1
ACPI: Add support to map GPIO resources to ranges
Dan-Lightsource Mar 28, 2017
708a776
pinctrl: intel: Add intel_gpio_get_direction
jbeta Apr 26, 2017
5b7d40d
pinctrl: allow multiple pin controllers for a GPIO
jbeta Jul 3, 2017
c06e8a9
regmap: Expose regmap_writable function to check if a register is wri…
Jul 27, 2017
b215ed9
mfd: Add support for UP board CPLD/FPGA
jbeta Jul 7, 2017
f5ac7c7
up: pinctrl: Bring in legacy fpga and pinctrl driver
Jul 19, 2017
973c039
upboard: added support for UP core + CREX HAT
Aug 24, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ACPI: Add support to map GPIO resources to ranges
Add a function to gpiolib to facilitate registering a pin controller for
a range of GPIO pins, but using ACPI resource references and without
claiming the GPIO resource.

Nicola Lunghi: fixed a typo in include/linux/acpi.h

Signed-off-by: Dan O'Donovan <dan@emutex.com>
Signed-off-by: Nicola Lunghi <nicola.lunghi@emutex.com>
  • Loading branch information
Dan-Lightsource authored and Nicola Lunghi committed Sep 13, 2017
commit 9e9c3b162911f99c3c45f5396d79bd9914b9a720
88 changes: 71 additions & 17 deletions drivers/gpio/gpiolib-acpi.c
Original file line number Diff line number Diff line change
@@ -945,6 +945,32 @@ static int acpi_find_gpio_count(struct acpi_resource *ares, void *data)
return 1;
}

static int acpi_gpio_count_from_property(struct acpi_device *adev,
const char *propname)
{
const struct acpi_gpio_mapping *gm;
const union acpi_object *obj;
int count = -ENOENT;
int ret;

ret = acpi_dev_get_property(adev, propname, ACPI_TYPE_ANY,
&obj);
if (ret == 0) {
if (obj->type == ACPI_TYPE_LOCAL_REFERENCE)
count = 1;
else if (obj->type == ACPI_TYPE_PACKAGE)
count = acpi_gpio_package_count(obj);
} else if (adev->driver_gpios) {
for (gm = adev->driver_gpios; gm->name; gm++)
if (strcmp(propname, gm->name) == 0) {
count = gm->size;
break;
}
}

return count;
}

/**
* acpi_gpio_count - return the number of GPIOs associated with a
* device / function or -ENOENT if no GPIO has been
@@ -955,10 +981,7 @@ static int acpi_find_gpio_count(struct acpi_resource *ares, void *data)
int acpi_gpio_count(struct device *dev, const char *con_id)
{
struct acpi_device *adev = ACPI_COMPANION(dev);
const union acpi_object *obj;
const struct acpi_gpio_mapping *gm;
int count = -ENOENT;
int ret;
char propname[32];
unsigned int i;

@@ -971,20 +994,7 @@ int acpi_gpio_count(struct device *dev, const char *con_id)
snprintf(propname, sizeof(propname), "%s",
gpio_suffixes[i]);

ret = acpi_dev_get_property(adev, propname, ACPI_TYPE_ANY,
&obj);
if (ret == 0) {
if (obj->type == ACPI_TYPE_LOCAL_REFERENCE)
count = 1;
else if (obj->type == ACPI_TYPE_PACKAGE)
count = acpi_gpio_package_count(obj);
} else if (adev->driver_gpios) {
for (gm = adev->driver_gpios; gm->name; gm++)
if (strcmp(propname, gm->name) == 0) {
count = gm->size;
break;
}
}
count = acpi_gpio_count_from_property(adev, propname);
if (count >= 0)
break;
}
@@ -1046,3 +1056,47 @@ bool acpi_can_fallback_to_crs(struct acpi_device *adev, const char *con_id)
(lookup->con_id && con_id &&
strcmp(lookup->con_id, con_id) == 0));
}

/**
* acpi_node_add_pin_mapping - add a pin mapping for named GPIO resources
* @fwnode: pointer to an ACPI firmware node to get the GPIO information from
* @propname: Property name of the GPIO
* @pinctrl_name: the dev_name() of the pin controller to map to
* @pin_offset: the start offset in the pin controller number space
* @npins: the maximum number of pins from the offset of each pin space (GPIO
* and pin controller) to map
*
* Lookup the GPIO resources and map them individually to the specified pins.
*/
int acpi_node_add_pin_mapping(struct fwnode_handle *fwnode,
const char *propname,
const char *pinctl_name,
unsigned int pin_offset,
unsigned int npins)
{
struct acpi_device *adev = to_acpi_device_node(fwnode);
int count, i;

count = acpi_gpio_count_from_property(adev, propname);
if (count < 0)
return count;

for (i = 0; i < count && i < npins; i++) {
struct gpio_desc *desc;
int ret;

desc = acpi_node_get_gpiod(fwnode, propname, i, NULL);
if (IS_ERR(desc))
return PTR_ERR(desc);

/* The GPIOs may not be contiguous, so add them 1-by-1 */
ret = gpiochip_add_pin_range(gpiod_to_chip(desc), pinctl_name,
gpio_chip_hwgpio(desc),
pin_offset + i, 1);
if (ret)
return ret;
}

return 0;
}
EXPORT_SYMBOL_GPL(acpi_node_add_pin_mapping);
14 changes: 14 additions & 0 deletions include/linux/acpi.h
Original file line number Diff line number Diff line change
@@ -922,6 +922,11 @@ static inline void acpi_dev_remove_driver_gpios(struct acpi_device *adev)
}

int acpi_dev_gpio_irq_get(struct acpi_device *adev, int index);
int acpi_node_add_pin_mapping(struct fwnode_handle *fwnode,
const char *propname,
const char *pinctl_name,
unsigned int pin_offset,
unsigned int npins);
#else
static inline int acpi_dev_add_driver_gpios(struct acpi_device *adev,
const struct acpi_gpio_mapping *gpios)
@@ -934,6 +939,15 @@ static inline int acpi_dev_gpio_irq_get(struct acpi_device *adev, int index)
{
return -ENXIO;
}

static inline int acpi_node_add_pin_mapping(struct fwnode_handle *fwnode,
const char *propname,
const char *pinctl_name,
unsigned int pin_offset,
unsigned int npins)
{
return -ENXIO;
}
#endif

/* Device properties */