Currently ASoC core creates a static route b/w
playback/capture widgets of cpu and codec dai
if they are part of the same dai-link. However
this will cause codec path to get powered up
followed by the backend dai start during device
switch use-case where the front-end is not closed,
leading to audio playback failure if either bit-width
or sample rate is different.
Test: build
Bug: 151372815
Change-Id: Icd17677a73fdc4bd30e0918fcaa7e7f394245685
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
(cherry picked from commit 85a57fb9237c4021150e3a3ba9a274a7b78b79a5)
Signed-off-by: Hridya Valsaraju <hridya@google.com>
Allow DAI's to be hostless so that no PCM data is sent between DAI
and CPU. This allows for power savings as there is no DMA or CPU
interaction required.
TODO: we shouldn't need to allocate a PAGE for a dummy DMA buffer.
Test: build
Bug: 151372815
Change-Id: I8947f1ad2c4a7013e92e21078b35e3cad332cf6f
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Patrick Lai <plai@codeaurora.org>
Git-commit: b77e8f4fb684f8afd45d4276e3dba9edd4a0c4e0
Git-repo: https://source.codeaurora.org/quic/la/kernel/msm/log/?h=msm-2.6.38
[bgoswami@codeaurora.org: fix merge conflict by moving
code to the right source file. Fix checkpatch errors
for line over 80 character. Fix compilation errors.]
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Meng Wang <mwang@codeaurora.org>
(cherry picked from commit c009f70138e1b66c6ae9597947b56a761f92bc0d)
Signed-off-by: Hridya Valsaraju <hridya@google.com>
The following members are added to struct thermal_zone_device_ops:
int (*set_polling_delay)(struct thermal_zone_device *, int);
int (*set_passive_delay)(struct thermal_zone_device *, int);
Test: build and boot
Bug: 149945768
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
(cherry picked from commit f68eb1a39e07a296ff4424c594c0fcc9b48240bc)
[hridya: commit amended to only include ABI diff]
Signed-off-by: Hridya Valsaraju <hridya@google.com>
Change-Id: Iad25d6585a35ecb71fdef36e27b27bece93a7c11
Add support for the sensor drivers using of-thermal interface to support
reading the trip temperature from the hardware using a callback. This
can be used in case, when the hardware works on a pre-configured
threshold different from the threshold set by software.
Test: build
Bug: 149945768
Change-Id: Ic5aaf1586b8dcbb3da0dd775718407c257b2064f
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
(cherry picked from commit 8a12149c264c7b871932ad90f76e5981452bb4bb)
[hridya: added an extra null pointer check, partial cherry-pick]
Signed-off-by: Hridya Valsaraju <hridya@google.com>
These APIs handle thermal trips from sensors.
These are required to reduce ABI diff.
Test: build
Bug: 149945768
Change-Id: I2ba4e91c954c9b13a323ec729b0c5a99f51e8fc3
(cherry picked from commit 8a12149c264c7b871932ad90f76e5981452bb4bb)
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
[hridya: commit amended to only include ABI diff, some pointer checks
added, also squashed 'c379a963e6ce9 drivers: thermal: Evaluate based on
trip temperature']
Signed-off-by: Hridya Valsaraju <hridya@google.com>
Thermal core framework subscribes for suspend/resume notification.
On resume notification it re-evaluates each thermal zone for
temperature and cooling state update. For some devices,
a large number of thermal zones are enabled for different mitigations.
Re-evaluating each thermal zone during resume leads to multiple issues
including delay in back to back suspend resume scenario, power penalty
for frequent wake up due to re-setting trip threshold especially
during cold temperature usecases.
Add wake-capable-sensor property to thermal zone devicetree node to
denote that these sensors are wakeup capable. If a thermal zone has
this property defined, thermal framework ignores resume re-evaluation
and can service the threshold notification during the suspend/resume
path.
Test: build
Bug: 149945768
Change-Id: I07edf80ad29009378af4c70e750d01bde6f30806
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
(cherry picked from commit a915ed479e624a1be30e34720b07207136fca0a9)
[hridya: added some pointer checks]
Signed-off-by: Hridya Valsaraju <hridya@google.com>
__loop_update_dio() can be called as a part of loop_set_fd(), when the
block queue is not yet up and running; avoid freezing the block queue in
that case, since that is an expensive operation.
Bug: 148607611
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 0fbcf57982)
Change-Id: I17d8de6b6b54a667703d60ea1c62449bb14331da
Return early in loop_set_block_size() if the requested block size is
identical to the one we already have; this avoids expensive calls to
freeze the block queue.
Bug: 148607611
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martijn Coenen <maco@android.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
(cherry picked from commit 7e81f99afd)
Change-Id: I61778680579dbfeeb193133527a3926d376e0bac
A previous change added a test on the wrong config flag; rename
CFI to CFI_CLANG.
Bug: 145210207
Change-Id: Id8aead2eb2c75ad6442d10165f6cb86ccfb9c2f9
Signed-off-by: Alistair Delva <adelva@google.com>
For lots of good security reasons, this config option needs to be
enabled
Bug: 152470236
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I96a88bbee9c4d17be97ed63262dbab2ef31fee79
(cherry picked from commit ab789e8750)
Signed-off-by: Will McVicker <willmcvicker@google.com>
Remove condition for including struct sk_buff members based on
CONFIG_BRIDGE_NETFILTER config.
Bug: 151840548
Test: build
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Iee626843e107e8d64c3c6c4a1cc9c08f4e38f5af
Merged-In: Iee626843e107e8d64c3c6c4a1cc9c08f4e38f5af
Currently, PWM core driver provides interfaces for configuring PWM
period and duty length in nanoseconds with an integer data type, so
the max period can be only set to ~2.147 seconds. Add interfaces which
can set PWM period and duty with u64 data type to remove this
limitation.
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Bug: 152542675
Test: build and boot
(cherry picked from commit a691c36aef3f1123f41f12e8d508c5e3457fec7f)
[surenb: removed sysfs API changes, replaced 32-bit divisions with 64-bit
ones in the following drivers to fix allmodconfig build:
drivers/clk/clk-pwm.c
drivers/hwmon/pwm-fan.c
drivers/pwm/pwm-clps711x.c
drivers/pwm/pwm-sti.c
drivers/pwm/pwm-sun4i.c
]
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I149c14b2d59b181344e7bb77393c64bcd9998de5
Merged-In: I149c14b2d59b181344e7bb77393c64bcd9998de5
Since INCFS_IOC_GET_FILLED_BLOCKS potentially leaks information about usage
patterns, and is only useful to someone filling the file, best protect it in
the same way as INCFS_IOC_FILL_BLOCKS.
Add useful field data_block_out as well
Test: incfs_test passes
Bug: 152983639
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I126a8cf711e56592479093e9aadbfd0e7f700752
When read log is 0 sized, we still need to init the wait queue to avoid
kernel panics if someone does decide to poll on the read log.
Test: Added test for this condition, incfs_test crashes
With fix, incfs_test doesn't crash
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Bug: 152909243
Change-Id: Ic3250523bb7ddb1839f8e95852c17103e5ffb782
When returning incomplete results index_out has to be usable to
call the function again and resume from the same location. This
means that if the output buffer was too small the function needs
to check for that when encountering the _beginning_ of a next
output range, not the end of it. Otherwise resuming from the
end of the range that didn't fit into the buffer would cause
the call to never return that range
+ Make the backing file header flags update thread safe
Bug: 152691988
Test: libincfs-test, incfs_test passes
Signed-off-by: Yurii Zubrytskyi <zyy@google.com>
Change-Id: I351156beba0b74e1942a39117279d3fcdb5e0c78
Signed-off-by: Paul Lawrence <paullawrence@google.com>
The qcom,wrapper-dev property is used to indicate which QUPv3 wrapper
encapsulated different I2C, serial and SPI devices. The wrapper device
needs to be functional before the I2C, serial and SPI devices can probe.
So, parse this property and add device links.
Bug: 149092675
Change-Id: I19cc464917c9b15a93d7779a59800d6603220d5c
Signed-off-by: Saravana Kannan <saravanak@google.com>
(cherry picked from commit da793b2bddc2e3f72b09f101cc601172b9d83f2d)
Leaf changes summary: 23 artifacts changed
Changed leaf types summary: 10 leaf types changed
Removed/Changed/Added functions summary: 3 Removed, 0 Changed, 10 Added functions
Removed/Changed/Added variables summary: 0 Removed, 0 Changed, 0 Added variable
3 Removed functions:
[D] 'function int fb_register_client(notifier_block*)'
[D] 'function int fb_unregister_client(notifier_block*)'
[D] 'function int remove_conflicting_framebuffers(apertures_struct*, const char*, bool)'
10 Added functions:
[A] 'function void arch_timer_mem_get_cval(u32*, u32*)'
[A] 'function unsigned long int clk_aggregate_rate(clk_hw*, const clk_core*)'
[A] 'function void clk_debug_print_hw(clk_core*, seq_file*)'
[A] 'function int clk_set_flags(clk*, unsigned long int)'
[A] 'function void clk_unvote_rate_vdd(clk_core*, unsigned long int)'
[A] 'function int clk_unvote_vdd_level(clk_vdd_class*, int)'
[A] 'function int clk_vote_rate_vdd(clk_core*, unsigned long int)'
[A] 'function int clk_vote_vdd_level(clk_vdd_class*, int)'
[A] 'function napi_struct* get_current_napi_context()'
[A] 'function void regulator_sync_state(device*)'
'struct cfg80211_ap_settings at cfg80211.h:929:1' changed:
type size hasn't changed
1 data member insertion:
'u32 cfg80211_ap_settings::flags', at offset 3232 (in bits) at cfg80211.h:964:1
one impacted interface:
function wiphy* wiphy_new_nm(const cfg80211_ops*, int, const char*)
'struct cfg80211_external_auth_params at cfg80211.h:2871:1' changed:
type size changed from 416 to 512 (in bits)
1 data member insertion:
'const u8* cfg80211_external_auth_params::pmkid', at offset 448 (in bits) at cfg80211.h:2891:1
2 impacted interfaces:
function int cfg80211_external_auth_request(net_device*, cfg80211_external_auth_params*, gfp_t)
function wiphy* wiphy_new_nm(const cfg80211_ops*, int, const char*)
'struct clk_init_data at clk-provider.h:262:1' changed:
type size changed from 320 to 512 (in bits)
4 data member insertions:
'clk_vdd_class* clk_init_data::vdd_class', at offset 320 (in bits) at clk-provider.h:297:1
'unsigned long int* clk_init_data::rate_max', at offset 384 (in bits) at clk-provider.h:298:1
'int clk_init_data::num_rate_max', at offset 448 (in bits) at clk-provider.h:299:1
'unsigned int clk_init_data::bus_cl_id', at offset 480 (in bits) at clk-provider.h:300:1
there are data member changes:
type 'typedef u8' of 'clk_init_data::num_parents' changed:
entity changed from 'typedef u8' to compatible type 'unsigned int'
type size changed from 8 to 32 (in bits)
and size changed from 8 to 32 (in bits) (by +24 bits)
18 impacted interfaces:
function int __clk_determine_rate(clk_hw*, clk_rate_request*)
function clk_hw* __clk_get_hw(clk*)
function int __clk_mux_determine_rate_closest(clk_hw*, clk_rate_request*)
function unsigned long int clk_hw_get_flags(const clk_hw*)
function const char* clk_hw_get_name(const clk_hw*)
function unsigned int clk_hw_get_num_parents(const clk_hw*)
function clk_hw* clk_hw_get_parent(const clk_hw*)
function clk_hw* clk_hw_get_parent_by_index(const clk_hw*, unsigned int)
function unsigned long int clk_hw_get_rate(const clk_hw*)
function bool clk_hw_is_enabled(const clk_hw*)
function bool clk_hw_is_prepared(const clk_hw*)
function unsigned long int clk_hw_round_rate(clk_hw*, unsigned long int)
function int devm_clk_hw_register(device*, clk_hw*)
function clk* devm_clk_register(device*, clk_hw*)
function int devm_of_clk_add_hw_provider(device*, void ()*, void*)
function unsigned long int divider_recalc_rate(clk_hw*, unsigned long int, unsigned int, const clk_div_table*, unsigned long int, unsigned long int)
function long int divider_ro_round_rate_parent(clk_hw*, clk_hw*, unsigned long int, unsigned long int*, const clk_div_table*, u8, unsigned long int, unsigned int)
function long int divider_round_rate_parent(clk_hw*, clk_hw*, unsigned long int, unsigned long int*, const clk_div_table*, u8, unsigned long int)
'struct clk_ops at clk-provider.h:218:1' changed:
type size changed from 1408 to 1664 (in bits)
4 data member insertions:
'void ()* clk_ops::set_flags', at offset 1408 (in bits) at clk-provider.h:269:1
'void ()* clk_ops::list_registers', at offset 1472 (in bits) at clk-provider.h:270:1
'void ()* clk_ops::list_rate', at offset 1536 (in bits) at clk-provider.h:272:1
'void ()* clk_ops::bus_vote', at offset 1600 (in bits) at clk-provider.h:274:1
18 impacted interfaces:
function int __clk_determine_rate(clk_hw*, clk_rate_request*)
function clk_hw* __clk_get_hw(clk*)
function int __clk_mux_determine_rate_closest(clk_hw*, clk_rate_request*)
function unsigned long int clk_hw_get_flags(const clk_hw*)
function const char* clk_hw_get_name(const clk_hw*)
function unsigned int clk_hw_get_num_parents(const clk_hw*)
function clk_hw* clk_hw_get_parent(const clk_hw*)
function clk_hw* clk_hw_get_parent_by_index(const clk_hw*, unsigned int)
function unsigned long int clk_hw_get_rate(const clk_hw*)
function bool clk_hw_is_enabled(const clk_hw*)
function bool clk_hw_is_prepared(const clk_hw*)
function unsigned long int clk_hw_round_rate(clk_hw*, unsigned long int)
function int devm_clk_hw_register(device*, clk_hw*)
function clk* devm_clk_register(device*, clk_hw*)
function int devm_of_clk_add_hw_provider(device*, void ()*, void*)
function unsigned long int divider_recalc_rate(clk_hw*, unsigned long int, unsigned int, const clk_div_table*, unsigned long int, unsigned long int)
function long int divider_ro_round_rate_parent(clk_hw*, clk_hw*, unsigned long int, unsigned long int*, const clk_div_table*, u8, unsigned long int, unsigned int)
function long int divider_round_rate_parent(clk_hw*, clk_hw*, unsigned long int, unsigned long int*, const clk_div_table*, u8, unsigned long int)
'struct edac_device_ctl_info at edac_device.h:151:1' changed:
type size changed from 3008 to 3072 (in bits)
2 data member insertions:
'int edac_device_ctl_info::panic_on_ce', at offset 288 (in bits) at edac_device.h:162:1
'bool edac_device_ctl_info::defer_work', at offset 448 (in bits) at edac_device.h:166:1
there are data member changes:
'int edac_device_ctl_info::panic_on_ue' offset changed from 288 to 320 (in bits) (by +32 bits)
'unsigned int edac_device_ctl_info::poll_msec' offset changed from 320 to 352 (in bits) (by +32 bits)
'edac_dev_sysfs_attribute* edac_device_ctl_info::sysfs_attributes' offset changed from 448 to 512 (in bits) (by +64 bits)
'bus_type* edac_device_ctl_info::edac_subsys' offset changed from 512 to 576 (in bits) (by +64 bits)
'int edac_device_ctl_info::op_state' offset changed from 576 to 640 (in bits) (by +64 bits)
'delayed_work edac_device_ctl_info::work' offset changed from 640 to 704 (in bits) (by +64 bits)
'void ()* edac_device_ctl_info::edac_check' offset changed from 1344 to 1408 (in bits) (by +64 bits)
'device* edac_device_ctl_info::dev' offset changed from 1408 to 1472 (in bits) (by +64 bits)
'const char* edac_device_ctl_info::mod_name' offset changed from 1472 to 1536 (in bits) (by +64 bits)
'const char* edac_device_ctl_info::ctl_name' offset changed from 1536 to 1600 (in bits) (by +64 bits)
'const char* edac_device_ctl_info::dev_name' offset changed from 1600 to 1664 (in bits) (by +64 bits)
'void* edac_device_ctl_info::pvt_info' offset changed from 1664 to 1728 (in bits) (by +64 bits)
'unsigned long int edac_device_ctl_info::start_time' offset changed from 1728 to 1792 (in bits) (by +64 bits)
'completion edac_device_ctl_info::removal_complete' offset changed from 1792 to 1856 (in bits) (by +64 bits)
'char edac_device_ctl_info::name[32]' offset changed from 2048 to 2112 (in bits) (by +64 bits)
'u32 edac_device_ctl_info::nr_instances' offset changed from 2304 to 2368 (in bits) (by +64 bits)
'edac_device_instance* edac_device_ctl_info::instances' offset changed from 2368 to 2432 (in bits) (by +64 bits)
'edac_device_counter edac_device_ctl_info::counters' offset changed from 2432 to 2496 (in bits) (by +64 bits)
'kobject edac_device_ctl_info::kobj' offset changed from 2496 to 2560 (in bits) (by +64 bits)
6 impacted interfaces:
function int edac_device_add_device(edac_device_ctl_info*)
function edac_device_ctl_info* edac_device_alloc_ctl_info(unsigned int, char*, unsigned int, char*, unsigned int, unsigned int, edac_dev_sysfs_block_attribute*, unsigned int, int)
function edac_device_ctl_info* edac_device_del_device(device*)
function void edac_device_free_ctl_info(edac_device_ctl_info*)
function void edac_device_handle_ce(edac_device_ctl_info*, int, int, const char*)
function void edac_device_handle_ue(edac_device_ctl_info*, int, int, const char*)
'struct fb_info at fb.h:464:1' changed:
type size changed from 6912 to 6144 (in bits)
2 data member deletions:
'delayed_work fb_info::deferred_work', at offset 5376 (in bits) at fb.h:496:1
'fb_deferred_io* fb_info::fbdefio', at offset 6080 (in bits) at fb.h:497:1
there are data member changes:
'fb_ops* fb_info::fbops' offset changed from 6144 to 5376 (in bits) (by -768 bits)
'device* fb_info::device' offset changed from 6208 to 5440 (in bits) (by -768 bits)
'device* fb_info::dev' offset changed from 6272 to 5504 (in bits) (by -768 bits)
'int fb_info::class_flag' offset changed from 6336 to 5568 (in bits) (by -768 bits)
offset changed from 6400 to 5632 (in bits) (by -768 bits)
'unsigned long int fb_info::screen_size' offset changed from 6464 to 5696 (in bits) (by -768 bits)
'void* fb_info::pseudo_palette' offset changed from 6528 to 5760 (in bits) (by -768 bits)
'u32 fb_info::state' offset changed from 6592 to 5824 (in bits) (by -768 bits)
'void* fb_info::fbcon_par' offset changed from 6656 to 5888 (in bits) (by -768 bits)
'void* fb_info::par' offset changed from 6720 to 5952 (in bits) (by -768 bits)
'apertures_struct* fb_info::apertures' offset changed from 6784 to 6016 (in bits) (by -768 bits)
'bool fb_info::skip_vt_switch' offset changed from 6848 to 6080 (in bits) (by -768 bits)
97 impacted interfaces:
function backlight_device* devm_backlight_device_register(device*, const char*, device*, void*, const backlight_ops*, const backlight_properties*)
function int drm_atomic_helper_check(drm_device*, drm_atomic_state*)
function void drm_atomic_helper_cleanup_planes(drm_device*, drm_atomic_state*)
function int drm_atomic_helper_commit(drm_device*, drm_atomic_state*, bool)
function void drm_atomic_helper_commit_modeset_disables(drm_device*, drm_atomic_state*)
function void drm_atomic_helper_commit_modeset_enables(drm_device*, drm_atomic_state*)
function void drm_atomic_helper_commit_planes(drm_device*, drm_atomic_state*, unsigned int)
function drm_atomic_state* drm_atomic_helper_duplicate_state(drm_device*, drm_modeset_acquire_ctx*)
function int drm_atomic_helper_prepare_planes(drm_device*, drm_atomic_state*)
function void drm_atomic_helper_shutdown(drm_device*)
function void drm_atomic_helper_update_legacy_modeset_state(drm_device*, drm_atomic_state*)
function int drm_atomic_helper_wait_for_fences(drm_device*, drm_atomic_state*, bool)
function void drm_atomic_helper_wait_for_vblanks(drm_device*, drm_atomic_state*)
function drm_atomic_state* drm_atomic_state_alloc(drm_device*)
function int drm_atomic_state_init(drm_device*, drm_atomic_state*)
function int drm_connector_init(drm_device*, drm_connector*, const drm_connector_funcs*, int)
function void drm_connector_list_iter_begin(drm_device*, drm_connector_list_iter*)
function void drm_connector_list_iter_end(drm_connector_list_iter*)
function drm_connector* drm_connector_list_iter_next(drm_connector_list_iter*)
function int drm_crtc_init_with_planes(drm_device*, drm_crtc*, drm_plane*, drm_plane*, const drm_crtc_funcs*, const char*, ...)
function drm_display_mode* drm_cvt_mode(drm_device*, int, int, int, bool, bool, bool)
function drm_device* drm_dev_alloc(drm_driver*, device*)
function void drm_dev_put(drm_device*)
function int drm_dev_register(drm_device*, unsigned long int)
function int drm_dev_set_unique(drm_device*, const char*)
function void drm_dev_unregister(drm_device*)
function int drm_dp_atomic_find_vcpi_slots(drm_atomic_state*, drm_dp_mst_topology_mgr*, drm_dp_mst_port*, int)
function int drm_dp_atomic_release_vcpi_slots(drm_atomic_state*, drm_dp_mst_topology_mgr*, int)
function int drm_dp_check_act_status(drm_dp_mst_topology_mgr*)
function int drm_dp_find_vcpi_slots(drm_dp_mst_topology_mgr*, int)
function bool drm_dp_mst_allocate_vcpi(drm_dp_mst_topology_mgr*, drm_dp_mst_port*, int, int)
function void drm_dp_mst_deallocate_vcpi(drm_dp_mst_topology_mgr*, drm_dp_mst_port*)
function drm_connector_status drm_dp_mst_detect_port(drm_connector*, drm_dp_mst_topology_mgr*, drm_dp_mst_port*)
function edid* drm_dp_mst_get_edid(drm_connector*, drm_dp_mst_topology_mgr*, drm_dp_mst_port*)
function int drm_dp_mst_hpd_irq(drm_dp_mst_topology_mgr*, u8*, bool*)
function void drm_dp_mst_reset_vcpi_slots(drm_dp_mst_topology_mgr*, drm_dp_mst_port*)
function void drm_dp_mst_topology_mgr_destroy(drm_dp_mst_topology_mgr*)
function int drm_dp_mst_topology_mgr_init(drm_dp_mst_topology_mgr*, drm_device*, drm_dp_aux*, int, int, int)
function int drm_dp_mst_topology_mgr_set_mst(drm_dp_mst_topology_mgr*, bool)
function int drm_dp_send_power_updown_phy(drm_dp_mst_topology_mgr*, drm_dp_mst_port*, bool)
function int drm_dp_update_payload_part1(drm_dp_mst_topology_mgr*)
function int drm_dp_update_payload_part2(drm_dp_mst_topology_mgr*)
function int drm_encoder_init(drm_device*, drm_encoder*, const drm_encoder_funcs*, int, const char*, ...)
function int drm_event_reserve_init_locked(drm_device*, drm_file*, drm_pending_event*, drm_event*)
function int drm_framebuffer_init(drm_device*, drm_framebuffer*, const drm_framebuffer_funcs*)
function drm_framebuffer* drm_framebuffer_lookup(drm_device*, drm_file*, unsigned int)
function int drm_gem_create_mmap_offset(drm_gem_object*)
function drm_gem_object* drm_gem_fb_get_obj(drm_framebuffer*, unsigned int)
function void drm_gem_free_mmap_offset(drm_gem_object*)
function page** drm_gem_get_pages(drm_gem_object*)
function int drm_gem_handle_create(drm_file*, drm_gem_object*, unsigned int*)
function int drm_gem_mmap_obj(drm_gem_object*, unsigned long int, vm_area_struct*)
function int drm_gem_object_init(drm_device*, drm_gem_object*, size_t)
function drm_gem_object* drm_gem_object_lookup(drm_file*, unsigned int)
function void drm_gem_object_put(drm_gem_object*)
function void drm_gem_object_put_unlocked(drm_gem_object*)
function void drm_gem_object_release(drm_gem_object*)
function dma_buf* drm_gem_prime_export(drm_device*, drm_gem_object*, int)
function int drm_gem_prime_fd_to_handle(drm_device*, drm_file*, int, uint32_t*)
function int drm_gem_prime_handle_to_fd(drm_device*, drm_file*, uint32_t, uint32_t, int*)
function drm_gem_object* drm_gem_prime_import(drm_device*, dma_buf*)
function int drm_gem_prime_mmap(drm_gem_object*, vm_area_struct*)
function void drm_gem_private_object_init(drm_device*, drm_gem_object*, unsigned long int)
function void drm_gem_put_pages(drm_gem_object*, page**, bool, bool)
function bool drm_helper_hpd_irq_event(drm_device*)
function void drm_helper_mode_fill_fb_struct(drm_device*, drm_framebuffer*, const drm_mode_fb_cmd2*)
function int drm_irq_install(drm_device*, int)
function int drm_irq_uninstall(drm_device*)
function void drm_kms_helper_hotplug_event(drm_device*)
function void drm_kms_helper_poll_disable(drm_device*)
function void drm_kms_helper_poll_enable(drm_device*)
function void drm_kms_helper_poll_fini(drm_device*)
function void drm_kms_helper_poll_init(drm_device*)
function void drm_mode_config_cleanup(drm_device*)
function void drm_mode_config_init(drm_device*)
function void drm_mode_config_reset(drm_device*)
function int drm_mode_convert_umode(drm_device*, drm_display_mode*, const drm_mode_modeinfo*)
function drm_display_mode* drm_mode_create(drm_device*)
function drm_display_mode* drm_mode_duplicate(drm_device*, const drm_display_mode*)
function drm_mode_object* drm_mode_object_find(drm_device*, drm_file*, unsigned int, unsigned int)
function void drm_modeset_lock_all(drm_device*)
function int drm_modeset_lock_all_ctx(drm_device*, drm_modeset_acquire_ctx*)
function void drm_modeset_unlock_all(drm_device*)
function void drm_object_attach_property(drm_mode_object*, drm_property*, long long unsigned int)
function int drm_object_property_set_value(drm_mode_object*, drm_property*, long long unsigned int)
function void drm_prime_gem_destroy(drm_gem_object*, sg_table*)
function drm_property* drm_property_create(drm_device*, unsigned int, const char*, int)
function drm_property* drm_property_create_bitmask(drm_device*, unsigned int, const char*, const drm_prop_enum_list*, int, long long unsigned int)
function drm_property_blob* drm_property_create_blob(drm_device*, unsigned long int, void*)
function drm_property* drm_property_create_enum(drm_device*, unsigned int, const char*, const drm_prop_enum_list*, int)
function drm_property* drm_property_create_range(drm_device*, unsigned int, const char*, long long unsigned int, long long unsigned int)
function drm_property_blob* drm_property_lookup_blob(drm_device*, unsigned int)
function void drm_put_dev(drm_device*)
function void drm_send_event_locked(drm_device*, drm_pending_event*)
function int drm_universal_plane_init(drm_device*, drm_plane*, unsigned int, const drm_plane_funcs*, const unsigned int*, unsigned int, const long long unsigned int*, drm_plane_type, const char*, ...)
function int drm_vblank_init(drm_device*, unsigned int)
function void drm_wait_one_vblank(drm_device*, unsigned int)
'struct pwm_device at pwm.h:76:1' changed:
type size changed from 512 to 640 (in bits)
there are data member changes:
type 'struct pwm_state' of 'pwm_device::state' changed:
type size changed from 128 to 256 (in bits)
2 data member insertions:
'pwm_output_type pwm_state::output_type', at offset 96 (in bits) at pwm.h:85:1
'pwm_output_pattern* pwm_state::output_pattern', at offset 128 (in bits) at pwm.h:86:1
there are data member changes:
'bool pwm_state::enabled' offset changed from 96 to 192 (in bits) (by +96 bits)
4 impacted interfaces:
function pwm_device* devm_of_pwm_get(device*, device_node*, const char*)
function void devm_pwm_put(device*, pwm_device*)
function int pwmchip_add(pwm_chip*)
function int pwmchip_remove(pwm_chip*)
and size changed from 128 to 256 (in bits) (by +128 bits)
4 impacted interfaces:
function pwm_device* devm_of_pwm_get(device*, device_node*, const char*)
function void devm_pwm_put(device*, pwm_device*)
function int pwmchip_add(pwm_chip*)
function int pwmchip_remove(pwm_chip*)
'struct pwm_ops at pwm.h:260:1' changed:
type size changed from 640 to 832 (in bits)
3 data member insertions:
'void ()* pwm_ops::get_output_type_supported', at offset 448 (in bits) at pwm.h:319:1
'void ()* pwm_ops::set_output_type', at offset 512 (in bits) at pwm.h:321:1
'void ()* pwm_ops::set_output_pattern', at offset 576 (in bits) at pwm.h:323:1
there are data member changes:
'void ()* pwm_ops::apply' offset changed from 448 to 640 (in bits) (by +192 bits)
'void ()* pwm_ops::get_state' offset changed from 512 to 704 (in bits) (by +192 bits)
'module* pwm_ops::owner' offset changed from 576 to 768 (in bits) (by +192 bits)
4 impacted interfaces:
function pwm_device* devm_of_pwm_get(device*, device_node*, const char*)
function void devm_pwm_put(device*, pwm_device*)
function int pwmchip_add(pwm_chip*)
function int pwmchip_remove(pwm_chip*)
'struct pwm_state at pwm.h:58:1' changed:
details were reported earlier
'struct regulator_dev at driver.h:438:1' changed:
type size changed from 9280 to 9344 (in bits)
1 data member insertion:
'proxy_consumer* regulator_dev::proxy_consumer', at offset 9280 (in bits) at driver.h:479:1
29 impacted interfaces:
function int devm_regulator_bulk_get(device*, int, regulator_bulk_data*)
function regulator* devm_regulator_get(device*, const char*)
function regulator* devm_regulator_get_optional(device*, const char*)
function void devm_regulator_put(regulator*)
function regulator_dev* devm_regulator_register(device*, const regulator_desc*, const regulator_config*)
function regulator_init_data* of_get_regulator_init_data(device*, device_node*, const regulator_desc*)
function void* rdev_get_drvdata(regulator_dev*)
function int rdev_get_id(regulator_dev*)
function int regulator_bulk_disable(int, regulator_bulk_data*)
function int regulator_bulk_enable(int, regulator_bulk_data*)
function int regulator_count_voltages(regulator*)
function int regulator_disable_deferred(regulator*, int)
function int regulator_disable_regmap(regulator_dev*)
function int regulator_enable_regmap(regulator_dev*)
function regulator* regulator_get(device*, const char*)
function void* regulator_get_drvdata(regulator*)
function unsigned int regulator_get_mode(regulator*)
function int regulator_get_voltage_sel_regmap(regulator_dev*)
function int regulator_is_enabled(regulator*)
function int regulator_is_enabled_regmap(regulator_dev*)
function int regulator_list_voltage_linear(regulator_dev*, unsigned int)
function int regulator_map_voltage_linear(regulator_dev*, int, int)
function int regulator_notifier_call_chain(regulator_dev*, unsigned long int, void*)
function int regulator_register_notifier(regulator*, notifier_block*)
function int regulator_set_current_limit(regulator*, int, int)
function int regulator_set_load(regulator*, int)
function int regulator_set_mode(regulator*, unsigned int)
function int regulator_set_voltage_sel_regmap(regulator_dev*, unsigned int)
function int regulator_unregister_notifier(regulator*, notifier_block*)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I926c10dae8e7acce013c94d4713084de638d64bf
Changes in 4.19.114
mmc: core: Allow host controllers to require R1B for CMD6
mmc: core: Respect MMC_CAP_NEED_RSP_BUSY for erase/trim/discard
mmc: core: Respect MMC_CAP_NEED_RSP_BUSY for eMMC sleep command
mmc: sdhci-omap: Fix busy detection by enabling MMC_CAP_NEED_RSP_BUSY
mmc: sdhci-tegra: Fix busy detection by enabling MMC_CAP_NEED_RSP_BUSY
Revert "drm/dp_mst: Skip validating ports during destruction, just ref"
geneve: move debug check after netdev unregister
hsr: fix general protection fault in hsr_addr_is_self()
macsec: restrict to ethernet devices
mlxsw: spectrum_mr: Fix list iteration in error path
net: cbs: Fix software cbs to consider packet sending time
net: dsa: Fix duplicate frames flooded by learning
net: mvneta: Fix the case where the last poll did not process all rx
net/packet: tpacket_rcv: avoid a producer race condition
net: qmi_wwan: add support for ASKEY WWHC050
net_sched: cls_route: remove the right filter from hashtable
net_sched: keep alloc_hash updated after hash allocation
net: stmmac: dwmac-rk: fix error path in rk_gmac_probe
NFC: fdp: Fix a signedness bug in fdp_nci_send_patch()
slcan: not call free_netdev before rtnl_unlock in slcan_open
bnxt_en: fix memory leaks in bnxt_dcbnl_ieee_getets()
bnxt_en: Reset rings if ring reservation fails during open()
net: ip_gre: Separate ERSPAN newlink / changelink callbacks
net: ip_gre: Accept IFLA_INFO_DATA-less configuration
net: dsa: mt7530: Change the LINK bit to reflect the link status
net: phy: mdio-mux-bcm-iproc: check clk_prepare_enable() return value
r8169: re-enable MSI on RTL8168c
tcp: repair: fix TCP_QUEUE_SEQ implementation
vxlan: check return value of gro_cells_init()
hsr: use rcu_read_lock() in hsr_get_node_{list/status}()
hsr: add restart routine into hsr_get_node_list()
hsr: set .netnsok flag
cgroup-v1: cgroup_pidlist_next should update position index
nfs: add minor version to nfs_server_key for fscache
cpupower: avoid multiple definition with gcc -fno-common
drivers/of/of_mdio.c:fix of_mdiobus_register()
cgroup1: don't call release_agent when it is ""
dt-bindings: net: FMan erratum A050385
arm64: dts: ls1043a: FMan erratum A050385
fsl/fman: detect FMan erratum A050385
s390/qeth: handle error when backing RX buffer
scsi: ipr: Fix softlockup when rescanning devices in petitboot
mac80211: Do not send mesh HWMP PREQ if HWMP is disabled
dpaa_eth: Remove unnecessary boolean expression in dpaa_get_headroom
sxgbe: Fix off by one in samsung driver strncpy size arg
ftrace/x86: Anotate text_mutex split between ftrace_arch_code_modify_post_process() and ftrace_arch_code_modify_prepare()
i2c: hix5hd2: add missed clk_disable_unprepare in remove
Input: raydium_i2c_ts - fix error codes in raydium_i2c_boot_trigger()
Input: synaptics - enable RMI on HP Envy 13-ad105ng
Input: avoid BIT() macro usage in the serio.h UAPI header
ceph: check POOL_FLAG_FULL/NEARFULL in addition to OSDMAP_FULL/NEARFULL
ARM: dts: dra7: Add bus_dma_limit for L3 bus
ARM: dts: omap5: Add bus_dma_limit for L3 bus
perf probe: Do not depend on dwfl_module_addrsym()
tools: Let O= makes handle a relative path with -C option
scripts/dtc: Remove redundant YYLOC global declaration
scsi: sd: Fix optimal I/O size for devices that change reported values
nl80211: fix NL80211_ATTR_CHANNEL_WIDTH attribute type
mac80211: mark station unauthorized before key removal
gpiolib: acpi: Correct comment for HP x2 10 honor_wakeup quirk
gpiolib: acpi: Rework honor_wakeup option into an ignore_wake option
gpiolib: acpi: Add quirk to ignore EC wakeups on HP x2 10 BYT + AXP288 model
RDMA/core: Ensure security pkey modify is not lost
genirq: Fix reference leaks on irq affinity notifiers
xfrm: handle NETDEV_UNREGISTER for xfrm device
vti[6]: fix packet tx through bpf_redirect() in XinY cases
RDMA/mlx5: Block delay drop to unprivileged users
xfrm: fix uctx len check in verify_sec_ctx_len
xfrm: add the missing verify_sec_ctx_len check in xfrm_add_acquire
xfrm: policy: Fix doulbe free in xfrm_policy_timer
afs: Fix some tracing details
netfilter: flowtable: reload ip{v6}h in nf_flow_tuple_ip{v6}
netfilter: nft_fwd_netdev: validate family and chain type
bpf/btf: Fix BTF verification of enum members in struct/union
vti6: Fix memory leak of skb if input policy check fails
Revert "r8169: check that Realtek PHY driver module is loaded"
mac80211: add option for setting control flags
mac80211: set IEEE80211_TX_CTRL_PORT_CTRL_PROTO for nl80211 TX
USB: serial: option: add support for ASKEY WWHC050
USB: serial: option: add BroadMobi BM806U
USB: serial: option: add Wistron Neweb D19Q1
USB: cdc-acm: restore capability check order
USB: serial: io_edgeport: fix slab-out-of-bounds read in edge_interrupt_callback
usb: musb: fix crash with highmen PIO and usbmon
media: flexcop-usb: fix endpoint sanity check
media: usbtv: fix control-message timeouts
staging: rtl8188eu: Add ASUS USB-N10 Nano B1 to device table
staging: wlan-ng: fix ODEBUG bug in prism2sta_disconnect_usb
staging: wlan-ng: fix use-after-free Read in hfa384x_usbin_callback
ahci: Add Intel Comet Lake H RAID PCI ID
libfs: fix infoleak in simple_attr_read()
media: ov519: add missing endpoint sanity checks
media: dib0700: fix rc endpoint lookup
media: stv06xx: add missing descriptor sanity checks
media: xirlink_cit: add missing descriptor sanity checks
mac80211: Check port authorization in the ieee80211_tx_dequeue() case
mac80211: fix authentication with iwlwifi/mvm
vt: selection, introduce vc_is_sel
vt: ioctl, switch VT_IS_IN_USE and VT_BUSY to inlines
vt: switch vt_dont_switch to bool
vt: vt_ioctl: remove unnecessary console allocation checks
vt: vt_ioctl: fix VT_DISALLOCATE freeing in-use virtual console
vt: vt_ioctl: fix use-after-free in vt_in_use()
platform/x86: pmc_atom: Add Lex 2I385SW to critclk_systems DMI table
bpf: Explicitly memset the bpf_attr structure
bpf: Explicitly memset some bpf info structures declared on the stack
gpiolib: acpi: Add quirk to ignore EC wakeups on HP x2 10 CHT + AXP288 model
net: ks8851-ml: Fix IO operations, again
arm64: alternative: fix build with clang integrated assembler
perf map: Fix off by one in strncpy() size argument
ARM: dts: oxnas: Fix clear-mask property
ARM: bcm2835-rpi-zero-w: Add missing pinctrl name
ARM: dts: imx6: phycore-som: fix arm and soc minimum voltage
ARM: dts: N900: fix onenand timings
arm64: dts: ls1043a-rdb: correct RGMII delay mode to rgmii-id
arm64: dts: ls1046ardb: set RGMII interfaces to RGMII_ID mode
Linux 4.19.114
Change-Id: Icc165d2e49aba750e1b5a8856d9774c149e59ce7
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This allows adding fields to clk_init_data without having to explicitly
set those fields in all the drivers.
Bug: 150506629
Signed-off-by: Saravana Kannan <saravanak@google.com>
Change-Id: I0ff4e5108541b9f6e3e3e3f984a277b6954a629c
Sleep driver needs to program the absolute clock value for next expiry
into pdc register for system wake up. Add an API to read the cval low
and high counters.
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>
Bug: 152635062
Test: build
(cherry picked from commit ee514e9083c5d9f3312a54fd317786da7c9abdb1)
[surenb: replaced out-of-tree readl_relaxed_no_log with functionally
identical in-tree readl_relaxed]
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I1244c31c8a2717a6f2002cac3b26ee3526409058
Merged-In: I1244c31c8a2717a6f2002cac3b26ee3526409058
This change adds support for voltage voting in the clock framework. This
will NOT be carried over to newer kernels.
Bug: 150506629
Signed-off-by: David Collins <collinsd@codeaurora.org>
Signed-off-by: David Dai <daidavid1@codeaurora.org>
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
Signed-off-by: Shefali Jain <shefjain@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
[saravanak: Squashed the following commits and dropped some debug code
and code whose functionality that's replaced by clk_sync_state()
ff5ce501ba80 clk: do not vote for vdd_class level with 0 Hz rate_max
96f0596cc03a clk: provider: cleanup of unused use_max_uV
83d12e55ba9d clk: Always vote INT_MAX as maximum voltage for a rail
352850e65775 clk: handle reentrant clk_set_rate() calls from clock supply regulators
0d8060cd6b63 clk: add bus voting to rate_get, rate_set, enable_set debug functions
d4c36a3d1038 clk: remove prepare lock and bus voting in clk_debug_print_hw
813f66628115 clk: add bus voting ops for debug purposes
7e0561072d82 clk: qcom: Fix return value check for round rate during clock registration
c4540b8ee30c clk: fix conflicting bit for measure clock flag
fa9b30447f77 clk: correct vdd_class voting scheme used during clock rate changes
61dad2894f52 clk: Move VDD voltage voting from core clock to top clock
0cbef8b6fc58 clk: qcom: Add support to log PLL/RCGR values in case of failure
bcc43f7a193b clk: qcom: Add support for debugfs measure clock
1ac9516f7402 clk: Export the clock driver's voltage voting APIs
c4316254d2f9 clk: add/modify debugfs support for clocks
d30b895f2155 clk: move check for CLK_ENABLE_HAND_OFF at unused tree
11032174cac0 clk: Add support to provide OPP tables for clocks
f349485712d2 clk: Add support to vote to regulator framework from clk framework
81286aed669c clk: Check for failure at clk_change_rate
6a4951a8308c clk: qcom: clk-voter: Add support for voter clocks
b904878a04fb clk: Add support to set custom flags with clk_set_flags ]
Signed-off-by: Saravana Kannan <saravanak@google.com>
Change-Id: I95574f11053e8f3762c8d660183ce5004ff5cc5b
A module uses these symbols. So, export them to allow loading of that
module.
Bug: 149816871
Bug: 149256712
Signed-off-by: Saravana Kannan <saravanak@google.com>
Change-Id: I949da5d091894ea3d79a6c9244bfc2f8426eee71
(cherry picked from commit dc928ba3bdfb4527e0ffca7c491d946a02e5bd11)
[ qperret: made changes to commit message for AOSP compliance ]
Signed-off-by: Quentin Perret <qperret@google.com>
Regulator providers whose drivers have sync_state() implemented will
disable their regulators once all their consumers have probed. So during
late_initcall_sync(), don't disable unused regulators of these regulator
providers.
Also, provide a regulator_sync_state() API that regulator providers can
use to disable all their unused regulators once the get their
sync_state() callback.
Bug: 144127090
Bug: 150508586
Signed-off-by: Saravana Kannan <saravanak@google.com>
Change-Id: I5cc32730214c8e769c2a55cbe3b702cf6bb9016a
Add a call to regulator_proxy_consumer_register() at the end of
regulator_register() and a call to
regulator_proxy_consumer_unregister() at the beginning of
regulator_unregister(). These calls ensure that proxy consumer
features may be used by any type of regulator regardless of the
driver supporting it.
Bug: 150508586
Change-Id: Ia70da1df47042fa673c42f389136557f868d19a3
Signed-off-by: David Collins <collinsd@codeaurora.org>
(cherry picked from commit ff753edc6d60e1e1043931409e6d3ac6e01b8108)
[Fixed minor conflicts from dropping an earlier debugfs patch]
Signed-off-by: Saravana Kannan <saravanak@google.com>
Add a proxy consumer driver which can be used to ensure that a
given regulator maintains a certain minimum state during bootup.
Enable state, voltage, and current may be forced to specified
levels.
Bug: 150508586
Change-Id: I0ccc63a41684462684ac737fb2f4129a3e6e4aea
Signed-off-by: David Collins <collinsd@codeaurora.org>
(cherry picked from commit cf03466c074e912a8aa3e079e1b7ea1cc17b18ba)
[Also squashed e9a05bb4d3f0 "spdx: Modify spdx tag from GPL-2.0 to GPL-2.0-only"]
Signed-off-by: Saravana Kannan <saravanak@google.com>
The length 32 buffer in of_get_regulator() limits the maximum
possible supply name to 24 characters (32 - 1 [null terminator]
- 7 [strlen("-supply")]). This causes problems for device
nodes with longer supply property names.
Increase the size of the buffer to remove this artificial
restriction.
Bug: 150508586
Change-Id: Ic28ee290dcd7411ba8325a2b42c12173958a11d8
Signed-off-by: David Collins <collinsd@codeaurora.org>
(cherry picked from commit f6d207a3235617a4acffb246f3817c32bd30ee39)
Signed-off-by: Saravana Kannan <saravanak@google.com>
This reverts commit b2296bd43e ("regulator: Enable supply
regulator if child rail is enabled.").
The change results in the following incorrect behavior.
If a given regulator has a parent supply and the regulator is
enabled either before or during regulator_register(), then
regulator_enable() is called on the supply. Unfortunately, there
is no matching regulator_disable() call. This means that the
parent supply will stay enabled forever even if the child is
disabled later.
The stated goal of the change was to enable the parent of a
regulator which was enabled based on its machine constraints.
However, the only constraints that leads to enable() being called
for a regulator are boot-on or always-on. If these have been
specified for a child regulator then they should have also been
specified for its parent regulator. Therefore, there should be
no need to explicitly enable the parent when the child is
registered.
Bug: 150508586
Change-Id: Ib8e6db65dcd44c27ef99509ff0cfd2f8e16e9f65
Signed-off-by: David Collins <collinsd@codeaurora.org>
(cherry picked from commit 7a88f5efeab2059093e2398d57d6cd36220b6bc5)
Signed-off-by: Saravana Kannan <saravanak@google.com>
The regulator framework checks if the current mode is the same as the
one being requested inside of regulator_set_mode. However, when
DRMS changing is allowed, regulator_enable calls drms_uA_update.
This function does not check the value of get_mode before calling
set_mode.
Modify drms_uA_update so that set_mode is only called if the requested
mode is different from the current mode returned by get_mode.
Bug: 150508586
Change-Id: Ifb4f3069cf946e8474565ee82508c1ff45b36543
Signed-off-by: David Collins <collinsd@codeaurora.org>
(cherry picked from commit 4c40b0f70455f6207c0c26994a50a640160d2a69)
Signed-off-by: Saravana Kannan <saravanak@google.com>
Commit 69235aa80090 ("net: Remove the get current NAPI context API")
removed the definition of get_current_napi_context() as rmnet_data
was no longer using it. However, the rmnet_data change to use its
NAPI in multiple contexts was prone to race in hotplug scenarios.
Add back get_current_napi_context() and current_napi to the
softnet_data struct.
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
(cherry picked from commit 05b3252cf566eb04c7c5484c912ae6f8f9fb1dd5)
[surenb cherry-picked from
05b3252cf566 net: Add the get current NAPI context API
to fix ABI diffs caused by get_current_napi_context function]
Bug: 151108843
Test: build
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I4d5b81c734e4a5daa2fae3cb7d6538821d46ff64
Merged-In: I4d5b81c734e4a5daa2fae3cb7d6538821d46ff64
Add edac_device_ctl_info struct members causing ABI diffs. This
patch skips sysfs changes and ignores the deferrable flag from the
original patchset.
Bug: 152456530
Test: build and boot
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
[surenb: Squashed the following commits and kept only
edac_device_ctl_info struct changes:
117ab600649a edac: Allow panic on correctable errors (CE).
1b9a7044541d edac: Allow the option of creating a deferrable work for polling]
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: If301dd0134c819167c81004468082a68735d9bd7
Merged-In: If301dd0134c819167c81004468082a68735d9bd7
Normally, PWM channel has fixed output until software request to change
its settings. There are some PWM devices which their outputs could be
changed autonomously according to a predefined pattern programmed in
hardware. Add pwm_output_type enum type to identify these two different
PWM types and add relevant helper functions to set and get PWM output
types and pattern.
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
Bug: 152542675
Test: build and boot
(cherry picked from commit 9e880ec791d4b4ad9f9bc257d9e20c59c3c9d90f)
[surenb: removed sysfs changes and fixed checkpatch.pl error in
pwm_get_output_type_supported function from pwm.h]
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I4a457636547e3225d8f10cfb3237765f500d9cc7
Merged-In: I4a457636547e3225d8f10cfb3237765f500d9cc7
commit 40cbfa9021 ("cfg80211/nl80211: Optional authentication
offload to userspace")' introduced authentication offload to user
space by the host drivers in station mode. This commit extends
the same for the AP mode too.
Extend NL80211_ATTR_EXTERNAL_AUTH_SUPPORT to also claim the
support of external authentication from the user space in AP mode.
A new flag parameter is introduced in cfg80211_ap_settings to
intend the same while "start ap".
Host driver to use NL80211_CMD_FRAME interface to transmit and
receive the authentication frames to / from the user space.
Host driver to indicate the flag NL80211_RXMGMT_FLAG_EXTERNAL_AUTH
while sending the authentication frame to the user space. This
intends to the user space that the driver wishes it to process
the authentication frame for certain protocols, though it had
initially advertised the support for SME functionality.
User space shall accordingly do the authentication and indicate
its final status through the command NL80211_CMD_EXTERNAL_AUTH.
Allow the command even if userspace doesn't include the attribute
NL80211_ATTR_SSID for AP interface.
Host driver shall continue with the association sequence and
indicate the STA connection status through cfg80211_new_sta.
To facilitate the host drivers in AP mode for matching the pmkid
by the stations during the association, NL80211_CMD_EXTERNAL_AUTH
is also enhanced to include the pmkid to drivers after
the authentication.
This pmkid can also be used in the STA mode to include in the
association request.
Also modify nl80211_external_auth to not mandate SSID in AP mode.
Signed-off-by: Srinivas Dasari <dasaris@codeaurora.org>
[remove useless nla_get_flag() usage]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
(cherry picked from commit fe4943702c)
Bug: 153011874
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: Iecdd38a0b6fa7726938c905c4810b9879bc48530
Without these, you can't unmount a volume on which incfs was
mounted and the tests run.
Also incfs_tests would fail sporadically without the fix to
test_inode
Test: Run incfs_test and unmount underlying volume 1000 times
Bug: 152636070
Signed-off-by: Paul Lawrence <paullawrence@google.com>
Change-Id: I88f11f5d4269c22d9073e5eb671d0c7cc4629f6c
(cherry picked from commit c062bc8e76)
commit d79e9d7c1e upstream.
The correct setting for the RGMII ports on LS1046ARDB is to
enable delay on both Rx and Tx so the interface mode used must
be PHY_INTERFACE_MODE_RGMII_ID.
Since commit 1b3047b520 ("net: phy: realtek: add support for
configuring the RX delay on RTL8211F") the Realtek 8211F PHY driver
has control over the RGMII RX delay and it is disabling it for
RGMII_TXID. The LS1046ARDB uses two such PHYs in RGMII_ID mode but
in the device tree the mode was described as "rgmii".
Changing the phy-connection-type to "rgmii-id" to address the issue.
Fixes: 3fa395d2c4 ("arm64: dts: add LS1046A DPAA FMan nodes")
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit 4022d808c4 upstream.
The correct setting for the RGMII ports on LS1043ARDB is to
enable delay on both Rx and Tx so the interface mode used must
be PHY_INTERFACE_MODE_RGMII_ID.
Since commit 1b3047b520 ("net: phy: realtek: add support for
configuring the RX delay on RTL8211F") the Realtek 8211F PHY driver
has control over the RGMII RX delay and it is disabling it for
RGMII_TXID. The LS1043ARDB uses two such PHYs in RGMII_ID mode but
in the device tree the mode was described as "rgmii_txid".
This issue was not apparent at the time as the PHY driver took the
same action for RGMII_TXID and RGMII_ID back then but it became
visible (RX no longer working) after the above patch.
Changing the phy-connection-type to "rgmii-id" to address the issue.
Fixes: bf02f2ffe5 ("arm64: dts: add LS1043A DPAA FMan support")
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit 0c5220a3c1 upstream.
Commit a758f50f10 ("mtd: onenand: omap2: Configure driver from DT")
started using DT specified timings for GPMC, and as a result the
OneNAND stopped working on N900 as we had wrong values in the DT.
Fix by updating the values to bootloader timings that have been tested
to be working on Nokia N900 with OneNAND manufacturers: Samsung,
Numonyx.
Fixes: a758f50f10 ("mtd: onenand: omap2: Configure driver from DT")
Signed-off-by: Arthur Demchenkov <spinal.by@gmail.com>
Tested-by: Merlijn Wajer <merlijn@wizzup.org>
Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit 636b45b8ef upstream.
The current set minimum voltage of 730000µV seems to be wrong. I don't
know the document which specifies that but the imx6qdl datasheets says
that the minimum voltage should be 0.925V for VDD_ARM (LDO bypassed,
lowest opp) and 1.15V for VDD_SOC (LDO bypassed, lowest opp).
Fixes: ddec5d1c00 ("ARM: dts: imx6: Add initial support for phyCORE-i.MX 6 SOM")
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit 6687c201fd upstream.
Define the sdhci pinctrl state as "default" so it gets applied
correctly and to match all other RPis.
Fixes: 2c7c040c73 ("ARM: dts: bcm2835: Add Raspberry Pi Zero W")
Signed-off-by: Nick Hudson <skrll@netbsd.org>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
commit deeabb4c13 upstream.
Disable all rps-irq interrupts during driver initialization to prevent
an accidental interrupt on GIC.
Fixes: 84316f4ef1 ("ARM: boot: dts: Add Oxford Semiconductor OX810SE dtsi")
Fixes: 38d4a53733 ("ARM: dts: Add support for OX820 and Pogoplug V3")
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>