aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/drm_simple_kms_helper.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/gpu/drm/drm_simple_kms_helper.c b/drivers/gpu/drm/drm_simple_kms_helper.c
index 72989ed1baba..36633590ebf3 100644
--- a/drivers/gpu/drm/drm_simple_kms_helper.c
+++ b/drivers/gpu/drm/drm_simple_kms_helper.c
@@ -100,14 +100,12 @@ drm_simple_kms_crtc_mode_valid(struct drm_crtc *crtc,
static int drm_simple_kms_crtc_check(struct drm_crtc *crtc,
struct drm_atomic_state *state)
{
- struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state,
- crtc);
- bool has_primary = crtc_state->plane_mask &
- drm_plane_mask(crtc->primary);
+ struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, crtc);
+ int ret;
- /* We always want to have an active plane with an active CRTC */
- if (has_primary != crtc_state->enable)
- return -EINVAL;
+ ret = drm_atomic_helper_check_crtc_state(crtc_state, false);
+ if (ret)
+ return ret;
return drm_atomic_add_affected_planes(state, crtc);
}
@@ -227,7 +225,7 @@ static int drm_simple_kms_plane_atomic_check(struct drm_plane *plane,
ret = drm_atomic_helper_check_plane_state(plane_state, crtc_state,
DRM_PLANE_HELPER_NO_SCALING,
DRM_PLANE_HELPER_NO_SCALING,
- false, true);
+ false, false);
if (ret)
return ret;
591b316558&follow=1'>bonding: set xfrm feature flags more sanelyJarod Wilson1-6/+4 2020-12-07ibmvnic: add some debugsSukadev Bhattiprolu1-3/+22 2020-12-07s390/qeth: make qeth_qdio_handle_aob() more robustJulian Wiedmann1-0/+1 2020-12-07s390/qeth: remove QETH_QDIO_BUF_HANDLED_DELAYED stateJulian Wiedmann2-5/+2 2020-12-07s390/qeth: don't replace a fully completed async TX bufferJulian Wiedmann1-38/+51 2020-12-07s390/qeth: use dev->groups for common sysfs attributesJulian Wiedmann9-76/+30 2020-12-07s390/ccwgroup: use bus->dev_groups for bus-based sysfs attributesJulian Wiedmann1-9/+3 2020-12-07s390/qeth: don't call INIT_LIST_HEAD() on iob's list entryJulian Wiedmann2-6/+5 2020-12-06mlxsw: spectrum_router: Reduce mlxsw_sp_ipip_fib_entry_op_gre4()Jiri Pirko4-56/+19 2020-12-06mlxsw: spectrum: Bump minimum FW version to xx.2008.2018Petr Machata1-3/+3 2020-12-06mlxsw: core_acl: Use an array instead of a struct with a zero-length arrayIdo Schimmel1-15/+11 2020-12-06mlxsw: spectrum_mr: Use flexible-array member instead of zero-length arrayIdo Schimmel1-1/+1 2020-12-06mlxsw: core: Trace EMAD eventsIdo Schimmel1-0/+7 2020-12-06selftests: mlxsw: Test RIF's reference count when joining a LAGIdo Schimmel1-0/+43 2020-12-06mlxsw: spectrum: Apply RIF configuration when joining a LAGIdo Schimmel3-7/+45 2020-12-06RDMA/mlx5: Remove IB representors dead codeLeon Romanovsky2-55/+7 2020-12-06net/mlx5: Simplify eswitch mode checkLeon Romanovsky9-30/+16 2020-12-06net/mlx5: Delete custom device management logicLeon Romanovsky4-318/+18 2020-12-06RDMA/mlx5: Convert mlx5_ib to use auxiliary busLeon Romanovsky8-105/+254 2020-12-06net/mlx5e: Connect ethernet part to auxiliary busLeon Romanovsky8-89/+179 2020-12-06vdpa/mlx5: Connect mlx5_vdpa to auxiliary busLeon Romanovsky5-109/+72 2020-12-05r8169: make NUM_RX_DESC a signed intHeiner Kallweit1-3/+3 2020-12-05r8169: improve rtl_rxHeiner Kallweit1-10/+5 2020-12-05net: fix spelling mistake "wil" -> "will" in KconfigColin Ian King1-1/+1 2020-12-05enetc: Fix unused var build warning for CONFIG_OFArnd Bergmann1-11/+10 2020-12-05ptp: Add clock driver for the OpenCompute TimeCard.Jonathan Lemon3-0/+413 2020-12-04net/nfc/nci: Support NCI 2.x initial sequenceBongsu Jeon4-16/+138 2020-12-04selftests: forwarding: Add MPLS L2VPN testGuillaume Nault3-0/+196 2020-12-04net: bna: remove trailing semicolon in macro definitionTom Rix1-9/+9 2020-12-04tipc: support 128bit node identity for peer removingHoang Le1-3/+18 2020-12-04nfp: Replace zero-length array with flexible-array memberSimon Horman2-2/+2 2020-12-04nfc: s3fwrn5: skip the NFC bootloader modeBongsu Jeon3-12/+23 2020-12-04net-zerocopy: Defer vm zap unless actually needed.Arjun Roy2-50/+99 2020-12-04net-zerocopy: Set zerocopy hint when data is copiedArjun Roy1-0/+45 2020-12-04net-zerocopy: Introduce short-circuit small reads.Arjun Roy1-0/+36 2020-12-04net-zerocopy: Fast return if inq < PAGE_SIZEArjun Roy1-0/+8 2020-12-04net-zerocopy: Refactor frag-is-remappable test.Arjun Roy1-8/+26 2020-12-04net-zerocopy: Refactor skb frag fast-forward op.Arjun Roy1-9/+26 2020-12-04net-tcp: Introduce tcp_recvmsg_locked().Arjun Roy1-30/+39 2020-12-04net-zerocopy: Copy straggler unaligned data for TCP Rx. zerocopy.Arjun Roy2-16/+70